public class RemoteSparql11QueryBuilder extends Object implements IRemoteSparqlQueryBuilder
SPARQL 1.1
using the VALUES
clause to vector
solutions into that remote end point.Modifier and Type | Field and Description |
---|---|
protected String |
exprImage
The text "image" of the SERVICE clause.
|
protected Map<String,String> |
prefixDecls
The prefix declarations used within the SERVICE clause (from the original
query).
|
protected Set<IVariable<?>> |
projectedVars
The distinct variables "projected" by the SERVICE group graph pattern.
|
protected AST2SPARQLUtil |
util |
Constructor and Description |
---|
RemoteSparql11QueryBuilder(ServiceNode serviceNode) |
Modifier and Type | Method and Description |
---|---|
protected static Map<org.openrdf.model.BNode,Set<String>> |
getCorrelatedVariables(org.openrdf.query.BindingSet[] bindingSets)
Return a correlated blank node / variables map.
|
protected LinkedHashSet<String> |
getDistinctVars(org.openrdf.query.BindingSet[] bindingSets)
Return an ordered collection of the distinct variable names used in the
given caller's solution set.
|
String |
getSparqlQuery(org.openrdf.query.BindingSet[] bindingSets)
Return the SPARQL query that will be sent to the remote SPARQL end point.
|
protected final String exprImage
protected final Map<String,String> prefixDecls
protected final AST2SPARQLUtil util
public RemoteSparql11QueryBuilder(ServiceNode serviceNode)
serviceNode
- The SERVICE clause.protected LinkedHashSet<String> getDistinctVars(org.openrdf.query.BindingSet[] bindingSets)
bindingSets
- The solution set.public String getSparqlQuery(org.openrdf.query.BindingSet[] bindingSets)
IRemoteSparqlQueryBuilder
getSparqlQuery
in interface IRemoteSparqlQueryBuilder
bindingSets
- The solutions to flow into the remote SPARQL end point.protected static Map<org.openrdf.model.BNode,Set<String>> getCorrelatedVariables(org.openrdf.query.BindingSet[] bindingSets)
Note: This is necessary because the BINDINGS clause does not permit blank nodes.
null
iff
there are no variables which are correlated through shared blank
nodes.UnsupportedOperationException
- If there are correlated variables and there is more than one
source solution (for this case you need to use the SPARQL 1.0
compatible query generator).RemoteSparql10QueryBuilder
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.