public class SPARQLSubstitutions extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
useGraphPrefixes |
| Constructor and Description |
|---|
SPARQLSubstitutions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMessageVarNames(String labelTemplate,
Set<String> results) |
static org.apache.jena.query.QueryExecution |
createQueryExecution(org.apache.jena.query.Query query,
org.apache.jena.query.Dataset dataset,
org.apache.jena.query.QuerySolution bindings) |
static org.apache.jena.query.Query |
substitutePaths(org.apache.jena.query.Query query,
String pathString,
org.apache.jena.rdf.model.Model model) |
static String |
withPrefixes(String str,
org.apache.jena.rdf.model.Resource executable)
Gets a parsable SPARQL string based on a fragment and prefix declarations.
|
static org.apache.jena.rdf.model.Literal |
withSubstitutions(org.apache.jena.rdf.model.Literal template,
org.apache.jena.query.QuerySolution bindings,
Function<org.apache.jena.rdf.model.RDFNode,String> labelFunction) |
public static org.apache.jena.query.QueryExecution createQueryExecution(org.apache.jena.query.Query query,
org.apache.jena.query.Dataset dataset,
org.apache.jena.query.QuerySolution bindings)
public static org.apache.jena.query.Query substitutePaths(org.apache.jena.query.Query query,
String pathString,
org.apache.jena.rdf.model.Model model)
public static org.apache.jena.rdf.model.Literal withSubstitutions(org.apache.jena.rdf.model.Literal template,
org.apache.jena.query.QuerySolution bindings,
Function<org.apache.jena.rdf.model.RDFNode,String> labelFunction)
public static String withPrefixes(String str, org.apache.jena.rdf.model.Resource executable)
str - the query fragment (e.g. starting with SELECT)executable - the sh:SPARQLExecutable potentially holding the sh:prefixesCopyright © 2017 TopQuadrant, Inc.. All rights reserved.