How can I bind variables for Blazegraph SELECT SPARQL query for remote repository?

224 views Asked by At

I can't find how to bind SELECT variables for Blazegraph SPARQL query for remote Repository.

Examples exist only for a local repository and with different classes.

IPreparedTupleQuery does not have a bindParameters method.

Doing Prepare every time takes a lot of time.

https://wiki.blazegraph.com/wiki/index.php/RDR

RemoteRepository r = repositoryManager.getRepositoryForNamespace(namespace);
IPreparedTupleQuery query = r.prepareTupleQuery("SELECT ?age ?src WHERE {?bob foaf:name \"Bob\" . <<?bob foaf:age ?age>> dc:source ?src .}");
TupleQueryResult result = query.evaluate();
0

There are 0 answers