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

Tinkerpop SPARQL-Gremlin plugin not using Janusgraph indices #2

Open
thevalzo opened this issue Nov 26, 2019 · 2 comments
Open

Tinkerpop SPARQL-Gremlin plugin not using Janusgraph indices #2

thevalzo opened this issue Nov 26, 2019 · 2 comments

Comments

@thevalzo
Copy link

I have loaded into Janusgraph an RDF dataset, creating a node for each entity having "uri" property over which has been defined a Janusgraph index. However, when I write a query like :
g.sparql("" "SELECT? x WHERE {? x v: uri" http://dbpedia.org/resource/Barack_Obama ".}." "")
i receive the following message: "WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx
    - Query requires iterating over all vertices [()]. For better performance, use indexes ".
This is strange even because in the Gremlinator paper the benchmark is done with use of indexes. How can i make the indexes be used in the query?

@harsh9t
Copy link
Member

harsh9t commented Nov 26, 2019

You will probably have to explicitly create indexes in JanusGraph before executing the queries. You could do this via the tool itself or by a groovy script. In the Gremlinator paper, explicit indexes were created for all graph dbs that were included in the experiments.

@thevalzo
Copy link
Author

thevalzo commented Dec 10, 2019

I have create a composite index, in fact as you can see below the gremlin query give back the result immediately, instead the sparql query doesn't find the index (in this example I use the force-index option). Is it possible that I have this issue because I use sparql-gremlin 3.4.0 with janusgraph 0.3.1 (probably containing tinkerpop 3.3.3)?
indexes

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

2 participants