Hi Brian, for that dataset you don't need the import tool, it would also work with LOAD CSV, which you can run directly from your browser:
I think using camel case for property names makes it easier to read. Also try to use names that are easy to understand, both ATTRA as well as INTERA sound like coming from limited size relational database columns and table names: Also please add a label to your nodes, not sure what the type is. So the minimal example would look like: http://gist.asciidoctor.org/?dropbox-14493611%2Fblog%2Fadoc%2Fsimplest_import_example.adoc Shutdown the server first. > bin/neo4j-import --into path/to/neo/data/graph.db \ > --nodes:Person nodes.csv \ > --relationships:INTERACTED_WITH rels.csv --id-type long > nodes.csv > ---- > userId:ID > 1 > 10 > 100 > 1000 > 10000 > rels.csv > ----- > :START_ID,:END_ID > 100290337,4214 > 122704,54460 > 4790,79155 > after starting your database run: create constraint on (p:Person) assert p.userId is unique; Not sure what you mean with SELECT ALL. Please don't forget WITH LOAD CSV it would look like: create constraint on (p:Person) assert p.userId is unique; load csv with headers from "file:nodes.csv" as row create (:Person {userId: row.userId}); using periodic commit load csv with headers from "file:rels.csv" as row match (p1:Person {userId: row.`:START_ID`}), (p2:Person {userId: row.`:END_ID`}) create (p1)-[:INTERACTED_WITH]->(p2); > Am 18.04.2015 um 05:26 schrieb Brian M Hamlin <[email protected]>: > > Hi All - I am new to neo4j, and would like to make the ultimate simple > example... > ( I did see this blog post.. this is the simplest thing I could find.. I > want something even simpler ! ) > http://www.intelliwareness.org/2014/12/neo4j-new-neo4j-import/ > > I *suspect* that I am not creating an index on import, but I have no proof... > I have had a successful load in that I can see a "size" for the database, but > a "SELECT ALL" query returns nothing > I am trying many small variations of headers but no progress.. > Hints, tips etc much appreciated !! make a super-simple example from scratch > !! > > ##------------------------------ > > node_a [INTERA] node_b > > INTERA is a trivial placeholder .. the data set is 13,000 nodes, 141,000 > edges > > bin/neo4j-import --into data/import0.db \ > --nodes /Users/Shared/c_assets/neo4j_import_work/nodes.csv \ > --relationships /Users/Shared/c_assets/neo4j_import_work/rels.csv > > > my setup is .. disable these > > neo4j.properties > ---------------------- > ... > # Autoindexing > > #node_auto_indexing=true > > #node_keys_indexable=ATTRA > > #relationship_auto_indexing=true > > #relationship_keys_indexable=INTERA > > > > ## input files > > nodes.csv > ---- > ID:int,ATTRA > 1,1 > 10,10 > 100,100 > 1000,1000 > 10000,10000 > 10001,10001 > 10002,10002 > 100049587,100049587 > 10005,10005 > 10006,10006 > 10007,10007 > 10008,10008 > 10009,10009 > 1001,1001 > 10010,10010 > 100101267,100101267 > 100101629,100101629 > ... > > rels.csv > > ----- > > :START_ID,:END_ID,:TYPE > > 100290337,4214,INTERA > > 122704,54460,INTERA > > 4790,79155,INTERA > > 2597,70,INTERA > > 5923,7157,INTERA > > 509,6122,INTERA > > 4067,933,INTERA > > 398,998,INTERA > > ... > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
