opencypher / cypher-for-gremlin

Cypher for Gremlin adds Cypher support to any Gremlin graph database.
Apache License 2.0
359 stars 48 forks source link

Accessing Graphs Created using ConfiguredGraphFactory #304

Closed VINAYAK179 closed 5 years ago

VINAYAK179 commented 5 years ago

Hello,

How can we access the graphs created using ConfiguredGraphFactory? Actually the problem is I have more than one graphs created using ConfiguredGraphFactory. How I can select the graph dynamically and access graph using plugin. Currently I am getting the following error : java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: No such property: g for class: Script21

dwitry commented 5 years ago

Hello,

if I understand your requirement correctly, you will need to use aliases for console:

:remote connect ...
:remote config alias g yourGraphName

And for Java API:

Client gremlinClient = cluster.connect().alias(singletonMap("g", "yourGraphName"));
CypherGremlinClient cypherGremlinClient = CypherGremlinClient.plugin(gremlinClient);
...
VINAYAK179 commented 5 years ago

Tried the first one getting the following error: java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Could not alias [g] to [graph2] as [graph2] not in the Graph or TraversalSource global bindings

dwitry commented 5 years ago

Hello,

does this error appear without Cypher for Gremlin plugin?

Currently, it looks like JanusGraph configuration issue.

VINAYAK179 commented 5 years ago

Hello,

Its giving the same error without Cypher for Gremlin Plugin. I think we have make some changes in create_sample.groovy file. Can you please confirm the same.

VINAYAK179 commented 5 years ago

Hello, I have some questions related to janusgraph deployment on server. I tried it on janusgraph group's but no replies. Can you please help me.

dwitry commented 5 years ago

Hello,

This is issue tracker for Cypher for Gremlin project.

I can only provide support related to Cypher for Gremlin.

Please address questions about other projects to its respective support channels.