public final class SPARQLUtil extends Object
Collection of utility methods for working with SPARQL strings
| Modifier and Type | Class and Description |
|---|---|
static class |
SPARQLUtil.QueryType |
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_LIMIT |
static long |
NO_OFFSET |
static long |
NO_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildRemoveQuery(org.openrdf.model.Statement theStmtPattern)
Builds a SPARQL Update remove query based on a Statement Pattern
|
static Iterable<org.openrdf.model.Namespace> |
getNamespaces(String theQuery)
Creates an iterable of namespaces by parsing the prefix declarations in a query string but does so lazily.
|
static String |
getString(String theQuery,
long theOffset,
long theLimit,
Map<String,org.openrdf.model.Value> theBindings,
org.openrdf.query.Dataset theDataset) |
static SPARQLUtil.QueryType |
getType(String theQuery)
Return the type of SPARQL query contained in the string.
|
static String |
removeSPARQLQueryProlog(String theQuery)
Forked from Sesame's
QueryParserUtil#removeSPARQLQueryProlog to use pre-compiled Patterns. |
public static final long NO_LIMIT
public static final long NO_OFFSET
public static final long NO_TIMEOUT
public static SPARQLUtil.QueryType getType(String theQuery)
QueryParserUtil class.theQuery - the query stringpublic static String getString(String theQuery, long theOffset, long theLimit, Map<String,org.openrdf.model.Value> theBindings, org.openrdf.query.Dataset theDataset)
public static String removeSPARQLQueryProlog(String theQuery)
QueryParserUtil#removeSPARQLQueryProlog to use pre-compiled Patterns.theQuery - the original query stringpublic static Iterable<org.openrdf.model.Namespace> getNamespaces(String theQuery)
public static String buildRemoveQuery(org.openrdf.model.Statement theStmtPattern)
theStmtPattern - the Statement SPOC pattern to fill up the SPARQL queryCopyright © 2010-2016 Stardog Union. All Rights Reserved.