|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topbraid.spin.system.ARQFactory
public class ARQFactory
A singleton that can create ARQ SPARQL Queries and QueryExecution objects. SPIN API users should use the provided methods here.
Constructor Summary | |
---|---|
ARQFactory()
|
Method Summary | |
---|---|
java.lang.String |
createPrefixDeclarations(Model model)
Same as createPrefixDeclarations(model, true) . |
java.lang.String |
createPrefixDeclarations(Model model,
boolean includeExtraPrefixes)
Creates SPARQL prefix declarations for a given Model. |
Query |
createQuery(Model model,
java.lang.String partialQuery)
Creates a new Query from a partial query (possibly lacking PREFIX declarations), using the ARQ syntax specified by getSyntax . |
QueryExecution |
createQueryExecution(Query query,
Model model)
Creates a QueryExecution for a given Query in a given Model. |
QueryEngineHTTP |
createRemoteQueryExecution(Query query)
Creates a remote QueryExecution on a given Query. |
static ARQFactory |
get()
Gets the singleton instance of this class. |
Dataset |
getDataset()
Specifies a Dataset that shall be used for query execution. |
static java.util.List<java.lang.String> |
getNamedGraphURIs(Query query)
Gets a list of named graphs (GRAPH elements) mentioned in a given Query. |
Syntax |
getSyntax()
The ARQ Syntax used by default: Syntax.syntaxARQ. |
static void |
set(ARQFactory value)
Changes the singleton to some subclass. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ARQFactory()
Method Detail |
---|
public static ARQFactory get()
public static void set(ARQFactory value)
value
- the new ARQFactory (not null)public java.lang.String createPrefixDeclarations(Model model)
createPrefixDeclarations(model, true)
.
model
- the Model to create prefix declarations for
public java.lang.String createPrefixDeclarations(Model model, boolean includeExtraPrefixes)
model
- the Model to get the prefixes fromincludeExtraPrefixes
- true to also include implicit prefixes like afn
public Query createQuery(Model model, java.lang.String partialQuery)
getSyntax
.
model
- the Model to operate onpartialQuery
- the (partial) query string
public QueryExecution createQueryExecution(Query query, Model model)
query
- the Querymodel
- the Model to query
public QueryEngineHTTP createRemoteQueryExecution(Query query)
query
- the Query to execute
public Dataset getDataset()
public static java.util.List<java.lang.String> getNamedGraphURIs(Query query)
query
- the Query to traverse
public Syntax getSyntax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |