Is there a way to link nodes between two titan graphs in different keyspace

34 צפיות
מעבר להודעה הראשונה שלא נקראה

Sridhar Rangarajan

לא נקראה,
18 במרץ 2017, 9:50:5018.3.2017
עד Aurelius
Hi,
I am looking in to creating many graphs in different keyspaces and link these graph together with edge between the nodes in different keyspace. The purpose of doing this is to create a hierarchy of graphs. This will give me the flexibility to reload only one graph which is essential in my application. Is there any way to do it ?

For example:

Graph1 is loaded in to keyspace1 having nodes n11, n12 etc.


Graph2 is loaded in to keyspace2  having nodes n21, n22 etc.

I want  to create a edge between say ...

n11 -> n21. 
How do I do that? Any help is appreciated.


Regards,
Sridhar



 

HadoopMarc

לא נקראה,
19 במרץ 2017, 10:04:5719.3.2017
עד Aurelius
Hi Sridhar,

I think you can just put all keyspaces in one graph and implement the keyspaces by marking their nodes and/or edges with a vertex property, vertex label, edge property or edge label.
One keyspace can be retrieved with gremlin's subgraph step, but if your total graph is large you will have to plan how you provide your queries with an entry point into each keyspace. E.g. you could give the first node in a keyspace a property with the keyspace's name. If you index that property, it will be fast to enter the keyspace and move on with the subgraph step.

Cheers,    Marc


Op zaterdag 18 maart 2017 14:50:50 UTC+1 schreef Sridhar Rangarajan:
השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות