-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring back neo4jcsv import/export, and also: (#182)
* Schema.getNodePropertyNames(nodeLabel: String) * Schema.getEdgePropertyName(edgeLabel: String) * various refactorings
- Loading branch information
1 parent
be0df23
commit 5df6d1a
Showing
48 changed files
with
573 additions
and
1,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
formats-tests/src/test/resources/neo4jcsv/edges_connected_to_cypher.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LOAD CSV FROM 'file:/edges_connected_to_data.csv' AS line | ||
MATCH (a), (b) | ||
WHERE a.id = toInteger(line[0]) AND b.id = toInteger(line[1]) | ||
CREATE (a)-[r:connected_to {string_mandatory: line[3]}]->(b); |
1 change: 1 addition & 0 deletions
1
formats-tests/src/test/resources/neo4jcsv/edges_connected_to_data.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0,1,connected_to,edge property |
1 change: 1 addition & 0 deletions
1
formats-tests/src/test/resources/neo4jcsv/edges_connected_to_header.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:START_ID,:END_ID,:TYPE,string_mandatory:string |
10 changes: 10 additions & 0 deletions
10
formats-tests/src/test/resources/neo4jcsv/nodes_node_a_cypher.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
LOAD CSV FROM 'file:/nodes_node_a_data.csv' AS line | ||
CREATE (:node_a { | ||
id: toInteger(line[0]), | ||
int_list: toIntegerList(split(line[2], ";")), | ||
int_mandatory: toInteger(line[3]), | ||
int_optional: toInteger(line[4]), | ||
string_list: toStringList(split(line[5], ";")), | ||
string_mandatory: line[6], | ||
string_optional: line[7] | ||
}); |
2 changes: 2 additions & 0 deletions
2
formats-tests/src/test/resources/neo4jcsv/nodes_node_a_data.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0,node_a,,42,,node 3 c1;node 3 c2,node 2 a,node 2 b | ||
1,node_a,10;11;12,1,2,,<empty>, |
1 change: 1 addition & 0 deletions
1
formats-tests/src/test/resources/neo4jcsv/nodes_node_a_header.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:ID,:LABEL,int_list:int[],int_mandatory:int,int_optional:int,string_list:string[],string_mandatory:string,string_optional:string |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.