-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphML import doesn't work as expected when the metadata key ID id different from attribute name #4151
Comments
I created a temporary script to unblock myself, by replacing |
Hey! I was unable to reproduce this (or I have misunderstood the problem). With this graphml file:
I have the keys at the top which map the id prop1 and prop2 to their real names of born and name. When I import I end up with a node:
As you can see, the properties aer called born and name as I had mapped them. |
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
Let's take the sample GraphML file (took from https://neo4j.com/labs/apoc/4.1/overview/apoc.import/apoc.import.graphml/)
In the example, the Key ID is the same as attr.name
i.e
However, if the key
id
is different fromattr.name
, the neo4j doesn't take the property name asattr.name
, but rather takesid
. This defeats the purpose for which we haveattr.name
which is to have human-readable names.I'm using jgrapht to export the graph to graphML to finally use in neo4j and jgrapht makes excessive use of
attr.name
.Actual Behavior (Mandatory)
if the key
id
is different fromattr.name
, the neo4j takes the property name asid
instead ofattr.name
. This defeats the purpose for which we haveattr.name
which is to have human-readable names.How to Reproduce the Problem
Simple Dataset (where it's possibile)
Steps (Mandatory)
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions
The text was updated successfully, but these errors were encountered: