Skip to content

Instantly share code, notes, and snippets.

rich-biker

Block or report user

Report or block rich-biker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rich-biker
rich-biker / Load_CSV_To_NEO4J.cql
Created Jan 22, 2018
Cypher query to load data from the three Archi tool CSV extracts to create properly labeled nodes and relationships into a blank NEO4J database. Needs APOC plugin.
View Load_CSV_To_NEO4J.cql
// Load the Archi CSV export elements as labeled nodes
using periodic commit
load csv with headers from "file:/elements.csv" as e
call apoc.create.node([e.Type], {name: e.Name, doc: e.Documentation, uid: e.ID})
yield node
return count(*);
// Create the uid indexes for my main objects
create index on :ApplicationComponent(uid);
create index on :ApplicationFunction(uid);
You can’t perform that action at this time.