Open JannisBush opened 2 months ago
Hi! Thanks for reporting, from what I can see it is because the relationship is before the node, so the node is not found. The error message was not clear though, so I will make sure that is updated :)
Thanks for the explanation. After I rewrote the file such that all the edges occur only after the nodes, the import worked successfully.
Does the GraphML specification state that edges can only reference nodes that already occur earlier in the file? I could not find anything regarding the order of nodes and edges.
Hi again! I believe it is not a bug for a graphml file to be ordered as such, but more lacking functionality inside APOC. I have added a more useful error message to it, and will create a ticket for APOC to be updated to handle the other cases. However, APOC is under maintenance mode, and allowing any order would require a more in-depth update to the procedure, so I can't promise that that part will be worked on any time soon. Sorry for the inconvenience, and thanks for the report :)
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)
The GraphML file is successfully imported. The file successfully opens in other programs supporting GraphML (Gephi, yEd)
Actual Behavior (Mandatory)
An error during the importing process occurs:
How to Reproduce the Problem
CALL apoc.import.graphml("https://sub.headers.websec.saarland/_hp/common/pagegraph.xml", {})
Simple Dataset (where it's possibile)
Same as
pagegraph.xml
above:Specifications (Mandatory)
Currently used versions
Versions