BharatSahAIyak / kg-markdown-enhancer

3 stars 14 forks source link

Updated neo4j integration #9

Closed vsvishalsharma closed 8 months ago

vsvishalsharma commented 8 months ago

Fixes #4 Added the Neo4j configration Dyanim updation enabled Clicked node displayed along with its relationships Added Labels to the nodes

vsvishalsharma commented 8 months ago

to access the visualization just navigate to http://localhost:3000/ReadNodes

for dataset:

// Create 10 person nodes
UNWIND range(1, 10) AS id
CREATE (:Person {name: 'Person ' + id});

// Create random "knows" relationships between persons
MATCH (p1:Person), (p2:Person)
WHERE p1 <> p2 AND rand() < 0.5 // Adjust the probability as needed
CREATE (p1)-[:KNOWS]->(p2);

Kindly generate your dataset with this cypher to fit in the code cypher query