Skip to content
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

Fixes #4138: Add support for loading Gephi GEXF file format #4177

Merged
merged 4 commits into from
Sep 2, 2024

Conversation

vga91
Copy link
Contributor

@vga91 vga91 commented Aug 30, 2024

Fixes #4138

  • Added procedures for reading GEXF files.
  • Copied and pasted code from APOC Core and put it into XmlUtil.java
  • Changed parseXML method to be able to handle properties of gexf files. To handle the name of relations we parse the kind tag. While for node properties we change from doing the parse of the data tag to the attvalue tag. Also, to parse the label in the node tag you parse labels instead of labels as compared to how it is done for graphml.
  • Multiple label support for nodes. Example <node id=“0” label=“:Gephi:Webatlas”>.
  • Types tested: string, integer, long, foat, double, boolean, liststring, listboolean
  • Improved ExtendedUtil.convertValue with toLowerCase(), to be used by both Parquet/Arrow and Gefx formats
  • Improved ExtendedTestUtil
    • added arrays assertion to assertMapEquals
    • added assertRelationship




Many existing applications and data integrations use GEXF to describes a graph with nodes and edges.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nodes and relationships OR vertices and edges

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add also documentation example for malformed GEXF files

@RobertoSannino RobertoSannino merged commit 01f4d95 into 5.23 Sep 2, 2024
5 checks passed
@RobertoSannino RobertoSannino deleted the issue-4138-5.23 branch September 2, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants