Neo4j推出基於Python的嵌入式圖資料存放區

來源:互聯網
上載者:User

Neo4j很早就在說,會推出一個嵌入Python中的圖資料庫模組,讓Python可以通過圖資料庫的API操作本地檔案以儲存圖結構的資料(類似於很多支援SQLite的類庫)。而今天Neo4j終於在官方部落格上兌現了其承諾,並為自己的多次跳票表示抱歉。

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.

先看一下使用方法

#import相應的包from neo4j import GraphDatabase#建立基於本地檔案的圖資料庫db = GraphDatabase('/my/db/location')#儲存資料with db.transaction:    oscar = db.node(name=’Oscar Wilde’)    jacob = db.node(name=’Jacob’)    # Create a relationship    oscar.impressed_by_blogging_skills_of(jacob)#關閉資料庫db.shutdown()

目前最新版本在CPython2.7.2  Windows和Linux下都經過測試,在Python2.6版本下也可以正常工作。你需要安裝JPype以在Python和Java間建立橋樑。更多詳細介紹及使用說明見neo4j的官方文檔:docs.neo4j.org

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.