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

Can unipop support multi mappings for different graph models running at the same time? #117

Open
sorryya opened this issue Nov 17, 2017 · 5 comments

Comments

@sorryya
Copy link

sorryya commented Nov 17, 2017

Can unipop support multi mappings for different graph models running at the same time?
If yes, how should I configure?
If no, will you plan to support it?

@seanbarzilay
Copy link
Member

Do you mean something like this:

UniGraph graph1 = UniGraph.open(conf1);
UniGraph graph2 = UniGraph.open(conf2);

@baozengkai
Copy link

@seanbarzilay This is unipop-console and JVM way, But unipop-server how to configure?

@seanbarzilay
Copy link
Member

You can simply add

graphs: {
    graph: path/to/properties/file,
    graph2: path/to/properties/file2
}

to your gremlin-server.yaml file.

@baozengkai
Copy link

@seanbarzilay
Hi,Appreciate for your help. It worked when I booting tinkerpop-server by thie configure. But I have another question: I try to dynamically create UniGraph instead of loading UniGraph at boot time. First I booting the tinkerpop-server ,and then I :remote the tinkerpop-server by tinkerpop-console(session way). The command like this:

:remote connect tinkerpop.server conf/remote.yaml session (1)
:> conf = new BaseConfiguration() (2)
:> conf.addProperty("providers","/company/tinkerpop-server/groovy") (3)
:>graph3=UniGraph.open(conf) (4)

In the (4) step,It shows me this message:

No such property: UniGraph for class: Script8

I have already configure the org.unipop.plugin.UnipopPlugin:{} in gremlin-server.yaml and install unipop-elastic plugin in tinkerpop-server,but why can't find UniGraph?

@seanbarzilay
Copy link
Member

I don't know if this is possible but try importing import org.unipop.structure.UniGraph before creating a graph with the remote console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants