public class SPARQLQueryStringUtil extends Object
Constructor and Description |
---|
SPARQLQueryStringUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
buildSPARQLQuery(org.openrdf.query.algebra.TupleExpr expr,
Collection<String> projection)
Construct a SPARQL query string for the provided tuple exprossion.
|
static String |
buildSPARQLQueryUNION(org.openrdf.query.algebra.TupleExpr expr,
List<org.openrdf.query.BindingSet> bindings,
Collection<String> relevantBindingNames)
Construct a bind join subquery for the provided tuple exprossion and a set of relevant input bindings,
using the UNION operator.
|
static String |
buildSPARQLQueryVALUES(org.openrdf.query.algebra.TupleExpr expr,
List<org.openrdf.query.BindingSet> bindings,
Set<String> relevantBindingNames)
Construct a bind join subquery for the provided tuple exprossion and a set of relevant input bindings,
using the SPARQL 1.1 VALUES operator.
|
static String |
tupleExpr2Str(org.openrdf.query.algebra.TupleExpr expr) |
public static String buildSPARQLQuery(org.openrdf.query.algebra.TupleExpr expr, Collection<String> projection) throws Exception
expr
- projection
- Exception
public static String buildSPARQLQueryVALUES(org.openrdf.query.algebra.TupleExpr expr, List<org.openrdf.query.BindingSet> bindings, Set<String> relevantBindingNames) throws Exception
expr
- bindings
- relevantBindingNames
- Exception
public static String buildSPARQLQueryUNION(org.openrdf.query.algebra.TupleExpr expr, List<org.openrdf.query.BindingSet> bindings, Collection<String> relevantBindingNames) throws Exception
expr
- bindings
- relevantBindingNames
- Exception
public static String tupleExpr2Str(org.openrdf.query.algebra.TupleExpr expr)
Copyright © 2015 SemaGrow - FP7. All rights reserved.