简体   繁体   English

将多个 graphml 文件加载到 JanusGraph 中

[英]Load multiple graphml files into JanusGraph

I have 2 heavy graphml files (which is why I don't want to combine them if not absolutely necessary).我有 2 个沉重的 graphml 文件(这就是为什么如果不是绝对必要的话我不想将它们组合起来的原因)。 Additionally, the nodes ids are coherent between the two files, and there is no reference to any node from the second file in the first one.此外,两个文件之间的节点 ID 是一致的,并且在第一个文件中没有对第二个文件中的任何节点的引用。

Would there be a way to load the first file into JanusGraph, and then load the second as an addition to the first?有没有办法将第一个文件加载到 JanusGraph 中,然后加载第二个文件作为第一个文件的补充? (If it needs a little reformatting, it is not an issue, I can process the files as I want.) (如果需要重新格式化,这不是问题,我可以根据需要处理文件。)

If it isn't possible that way, how can I load big amounts of data into JanusGraph?如果不可能,我如何将大量数据加载到 JanusGraph 中?

It doesn't seem as though there is a way to load multiple graphml files into JanusGraph.似乎没有办法将多个graphml文件加载到 JanusGraph 中。 This being said, one can use personalized groovy scripts to load data from csv , txt , ... files.话虽如此,可以使用个性化的groovy脚本从csvtxt 、 ... 文件中加载数据。
This is easier and allows to handle large amount of data, split into smaller files.这更容易,并且允许处理大量数据,拆分成更小的文件。 (One way to proceed would be to do one file per type of node / type of relationship. This makes the process relatively easy) (一种方法是为每种类型的节点/关系类型创建一个文件。这使得该过程相对容易)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM