neo4j - py2neo graph.node(ID) throws "Unsupported URI scheme" -
i iterating on record returned cypher.execute():
| p ---+---------------------------- 1 | (:a)-[:r]->(:b)-[:r]->(:c) the code use iterate on this:
recordlist = graph.cypher.execute(<some query>) record in recordlist: rel in record[0]: print self.graph.node(rel.start_node) but following error:
file "/usr/local/lib/python2.7/dist-packages/py2neo/packages/httpstream/http.py", line 943, in __get_or_head return rq.submit(redirect_limit=redirect_limit, **kwargs) file "/usr/local/lib/python2.7/dist-packages/py2neo/packages/httpstream/http.py", line 433, in submit http, rs = submit(self.method, uri, self.body, self.headers) file "/usr/local/lib/python2.7/dist-packages/py2neo/packages/httpstream/http.py", line 302, in submit raise valueerror("unsupported uri scheme " + repr(uri.scheme)) valueerror: unsupported uri scheme 'node/(n4979' what doing wrong here?
why not just
print(rel.start_node) your code takes node , uses node select same node graph. redundant.
Comments
Post a Comment