Neo4j introduces Python-Based Embedded Graph Data Storage

Source: Internet
Author: User
Tags neo4j

Neo4jIt was said thatEmbeddedInPythonInGraph databaseModule, allowing Python to operate local files through graph database APIs to store graph structure data (similar to many libraries that support SQLite ). Today, Neo4j finally fulfilled its promise on the official blog and expressed its sorry for its repeated pass jumps.

First of all, we're really sorry. we have been saying that Python support for the embedded database is coming in "a few weeks" or "next month" for over half a year now, and so far, you have waited patiently, and you have waited in vain.

Let's take a look at the usage.

# Import the corresponding package from neo4j import GraphDatabase # create a local file-based graph database db = GraphDatabase ('/my/db/location') # store data with db. transaction: oscar = db. node (name = 'oscar wilde') jacob = db. node (name = 'Jacob ') # Create a relationship oscar. impressed_by_blogging_skills_of (jacob) # disable database db. shutdown ()

Currently, the latest version has been tested in CPython2.7.2 Windows and Linux, and works properly in Python2.6. You need to install JPype to build a bridge between Python and Java. For more details and instructions, see the official documentation of neo4j: docs.neo4j.org.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.