0
如果我使用selector.select
按時間戳&選擇歷史帖子,則嘗試使用歷史帖子創建新的標記關係,結果發現歷史帖子未實際標記!然而,包含與歷史帖子相同信息的灰色圓圈出現在我的圖&中,最終被標記爲標記而不是歷史帖子...爲什麼更重要的是& - 我如何標記歷史帖子?在py2neo中標記歷史帖子
>>> import py2neo
>>> from py2neo import Graph, Node, Relationship
>>> from pandas import DataFrame
>>> graph = Graph(user='neo4j', password='notmypassword')
>>> t = Node("Tag", name="ANOTHER_TAG")
>>> graph.merge(t) # put the Tag into the graph
>>> selected = selector.select("Post", timestamp=1505826314)
>>> list(selected)
>>> [(deefe72:Post {date:"2017-09-19",id:"e0f08d21-afeb-49b7-b841-c6c366d11b62",text:"30 years in the building trade have injured my back & my joints",timestamp:1505826314,title:"building is bad for my back"})]
>>> rel=Relationship(t, "TAGGED", selected)
>>> graph.create(rel)