J'ai essayé sandbox avec neo4j. Je l'ai frappé de python.
pip install neo4j-driver
from neo4j import GraphDatabase, basic_auth
driver = GraphDatabase.driver("bolt://54.*.*.222:32939", auth=basic_auth("neo4j", "****"))
session = driver.session()
cypher_query = '''
MATCH (n)
RETURN n
'''
results = session.run(cypher_query, parameters = {})
for record in results:
print(record)
<Record n=<Node id=0 labels=frozenset({'Point'}) properties={'name': 'p1'}>>
<Record n=<Node id=1 labels=frozenset({'Point'}) properties={'name': 'p2'}>>
<Record n=<Node id=2 labels=frozenset({'Point'}) properties={'name': 'p3'}>>
<Record n=<Node id=3 labels=frozenset({'Point'}) properties={'name': 'p4'}>>
<Record n=<Node id=4 labels=frozenset({'Point'}) properties={'name': 'p5'}>>
c'est tout.
Recommended Posts