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

[Feature] Intergrate with Alibaba/GraphAr #574

Open
3 tasks done
liuxiaocs7 opened this issue Feb 4, 2024 · 7 comments
Open
3 tasks done

[Feature] Intergrate with Alibaba/GraphAr #574

liuxiaocs7 opened this issue Feb 4, 2024 · 7 comments
Labels
enhancement New feature or request feature tools hugegraph-tools

Comments

@liuxiaocs7
Copy link
Member

liuxiaocs7 commented Feb 4, 2024

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Feature Description (功能描述)

The graph data migration between HugeGraph and GraphAr could be important. This can be implemented based on the HugeGraph Spark connector and the GraphAr Spark library, including reading graph data from HugeGraph to generate GAR files, and reading from GraphAr to create/update instances in HugeGraph.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Copy link

dosubot bot commented Feb 4, 2024

🤖

Hey there, @liuxiaocs7! 👋 I'm Dosu, a friendly bot here to help you navigate through bug squashing, answer your queries, and guide you on your journey to becoming a contributor while we wait for a human maintainer to chime in. Just wanted to say hi and let you know I'll be taking a closer look at your feature request about integrating with Alibaba/GraphAr. Hang tight! 🚀

@liuxiaocs7
Copy link
Member Author

CC: @acezen and @imbajin

@dosubot dosubot bot added enhancement New feature or request tools hugegraph-tools labels Feb 4, 2024
Copy link

dosubot bot commented Feb 4, 2024

🤖

Thank you for your feature request. The integration of Alibaba's GraphAr with HugeGraph could indeed be a valuable addition to the HugeGraph toolchain.

Based on the current structure of the incubator-hugegraph-toolchain codebase, the integration could be implemented in a few steps:

  1. Reading from HugeGraph: This could be done using the existing Graph class methods. The Graph class already has methods for retrieving vertices and edges, which could be used to read the graph data from HugeGraph.

  2. Generating GAR files: Once the graph data is read from HugeGraph, it could be converted into GAR files using the GraphAr Spark library. This would require writing a new method in the Graph class that takes the retrieved vertices and edges, and generates a GAR file.

  3. Reading from GraphAr: This would involve reading the GAR files using the GraphAr Spark library, and converting the data into a format that can be used to create or update instances in HugeGraph. This could be done in a new method in the Graph class.

  4. Creating/Updating instances in HugeGraph: The HugeGraphOutputFormat class could be used for this purpose. The writeRecord method in this class could be used to write the data read from the GAR files to HugeGraph.

Please note that these are just initial thoughts on how the integration could be implemented. The actual implementation might require additional steps or modifications based on the specifics of the GraphAr Spark library and the GAR file format.

Since you have expressed willingness to submit a PR, I would suggest starting with the steps outlined above. Please feel free to ask if you have any questions or need further clarification.

As per the Code of Conduct, please ensure to maintain a positive and respectful environment while contributing to this project.

CC: @acezen and @imbajin for visibility and additional input.

Source Code

-Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@acezen
Copy link

acezen commented Feb 4, 2024

Thanks to @liuxiaocs7, we also has a discussion about integrate GraphAr through Loader, we can discuss more details in the future.

@liuxiaocs7
Copy link
Member Author

Thanks to @liuxiaocs7, we also has a discussion about integrate GraphAr through Loader, we can discuss more details in the future.

I see, thanks for starting this discussion!

@liuxiaocs7
Copy link
Member Author

Thanks to @liuxiaocs7, we also has a discussion about integrate GraphAr through Loader, we can discuss more details in the future.

Hi, you mean this => apache/incubator-graphar#343?

@acezen
Copy link

acezen commented Feb 4, 2024

Thanks to @liuxiaocs7, we also has a discussion about integrate GraphAr through Loader, we can discuss more details in the future.

Hi, you mean this => alibaba/GraphAr#343?

Yes, sorry for the wrong link...

@imbajin imbajin pinned this issue Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature tools hugegraph-tools
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants