py2neo

    0熱度

    1回答

    我想創建一個基於在func中傳遞的參數的節點。在這個createRelation函數中,一個節點是已知的「用戶」,但其他節點可能存在也可能不存在。根據我想要創建的關係類型,我檢查該類型的節點是否存在,如果不創建並創建關係。例如,新節點可能是一本書或一輛汽車。 def createRelationship(self, nodeName, value): query = """

    0熱度

    2回答

    我試圖運行代碼: from py2neo import Graph graph = Graph(config['DATABASE']['ENDPOINT']) graph.data("MATCH (u:Users) return u.id, u.email LIMIT 4") 但我得到的錯誤信息: AttributeError: 'Graph' object has no attribut

    0熱度

    1回答

    我使用Py2neo 3.0和Neo4j 3.0創建節點。跟隨事務語句創建節點但失敗。 語法: tx = graph.begin() a= Node("Person1", name="Alicedemo") tx.create(a) tx.commit 而且,當時做了同樣的無交易,並取得了成功。 語法: a= Node("Person1", name="Alicedemo") graph

    0熱度

    2回答

    我已經試過尋找所有,但無濟於事。以下是我在py2neo中的密碼查詢: graph = Graph() In [6]: query = """Match (C:Customer)-[r:Customer_Send]->(Send:Customer) where C.Galactic_ID = '2000000000084001287' return Send.Galactic_ID """

    0熱度

    1回答

    我有以下代碼,我正在獲取節點。我如何將它傳遞給graph.evaluate作爲參數。如果這是不正確的,是否有可能的方法?還是上面的一些替代方法 user_node = selector.select("User", user_id=95) lib_node = graph.evaluate("match {param}-[:LISTENS_TO]->(p) return p", param=di

    0熱度

    2回答

    這裏是我的名字代碼文件CreateNode.py #!/usr/bin/python import py2neo from py2neo import Graph, Node def createNodeWithLabelProperties(): print("Start Create label with prperties") py2neo.authenti

    0熱度

    2回答

    我試圖Neo4j的連接從py2neo到的Neo4j: from py2neo.server import GraphServer server=GraphServer() server.start() 在這個階段,當我檢查我看到日誌服務器已經啓動並運行: 2016-06-10 09:41:09.928-0600 INFO Initiating metrics..

    0熱度

    1回答

    我一直在使用下面的委託方法,並正確地附加委託(用斷點來看這個方法確實會觸發)。 func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool { r

    0熱度

    2回答

    在Py2neo有追加的交易,然後提交它們作爲一個塊到服務器 from py2neo import Graph graph = Graph() tx = graph.cypher.begin() stmt1 = "CREATE (:Person {name: 'Guinevere'})" stmt2 = "CREATE (:Person {name: 'Tom'})" stmt3 = "C

    0熱度

    2回答

    我正在嘗試使用htaccess文件將舊的WordPress博客重定向到新的博客博客,並且我使用下面的代碼;問題是我無法讓舊的個人博客文章重定向到新的博客文章 - 他們在新域名上具有相同的名稱結構(例如:olddomain.com/post-1現在是newdomain.com/post- 1),但如果我輸入其中一箇舊的帖子,我會得到一個500錯誤。我的主頁,類別和索引頁面都是重定向的,以及舊word