Octetful Notes - Graphs - Neo4J
This section covers details on the neo4j graph database.
- Neo4j cypher manual v4.1 authored by the Neo4j team.
- Using Neo4j Browser with Embedded Neo4j
Subgraphs
Data Import Guides
Dynamic Relationship Loading
To create dynamic relationship labels in Neo4j, you could call a stored proc as follows:
LOAD CSV WITH HEADERS FROM "file:///relations.csv" AS row
MATCH (f:Node), (s:Node)
WHERE f.Name = row.FromNode
AND s.Name = row.ToNode
CALL apoc.create.relationship(f, row.RelationType,{}, s) YIELD rel
REMOVE rel.noOp