GraphML is used by other tools, like Gephi and CytoScape to read graph data.
YIELD file, source, format, nodes, relationships, properties, time
|
imports graphml into the graph |
|
exports whole database as graphml to the provided file |
|
exports given nodes and relationships as graphml to the provided file |
|
exports given graph object as graphml to the provided file |
|
exports nodes and relationships from the Cypher statement as graphml to the provided file |
All Point
or Temporal
data types are exported formatted as a String
e.g:
|
{"crs":"wgs-84-3d","latitude":56.7,"longitude":12.78,"height":100.0} |
|
{"crs":"wgs-84-3d","latitude":56.7,"longitude":12.78,"height":null} |
|
2018-10-10 |
|
2018-10-10T00:00 |
param | default | description |
---|---|---|
format |
In export to Graphml script define the export format. Possible value is: "gephi" |
|
caption |
It’s an array of string (i.e. ['name','title']) that define an ordered set of properties eligible as value for the |
|
useTypes |
false |
Write the attribute type information to the graphml output |
The labels exported are ordered alphabetically.
The output of labels()
function is not sorted, use it in combination with apoc.coll.sort()
.
param | default | description |
---|---|---|
batchSize |
20000 |
define the batch size |
delim |
"," |
define the delimiter character (export csv) |
arrayDelim |
";" |
define the delimiter character for arrays (used in the bulk import) |
quotes |
'always' |
quote-character used for CSV, possible values are: 'always', 'none', 'ifNeeded' |
useTypes |
false |
add type on file header (export csv and graphml export) |
format |
"neo4j-shell" |
In export to Cypher script define the export format. Possible values are: "cypher-shell","neo4j-shell" and "plain" |
nodesOfRelationships |
false |
if enabled add relationship between nodes (export Cypher) |
storeNodeIds |
false |
set nodes' ids (import/export graphml) |
readLabels |
false |
read nodes' labels (import/export graphml) |
defaultRelationshipType |
"RELATED" |
set relationship type (import/export graphml) |
separateFiles |
false |
export results in separated file by type (nodes, relationships..) |
cypherFormat |
create |
In export to cypher script, define the cypher format (for example use |
bulkImport |
true |
In export it creates files for Neo4j Admin import |
separateHeader |
false |
In export it creates two file one for header and one for data |
Values for the quotes
configuration:
* none
: the same behaviour of the current false
* always
: the same behaviour of the current true
* ifNeeded
: it applies quotes only when it’s necessary;
When the config bulkImport
is enable it create a list of file that can be used for Neo4j Bulk Import.
This config can be used only with apoc.export.csv.all
and apoc.export.csv.graph
All file create are named as follow:
.nodes.[LABEL_NAME].csv
.relationships.[TYPE_NAME].csv
If Node or Relationship have more than one Label/Type it will create one file for Label/Type.