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();