|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topbraid.spin.arq.ARQ2SPIN
public class ARQ2SPIN
Takes a ARQ SPARQL Query as input and creates a corresponding SPIN data structure from it.
Constructor Summary | |
---|---|
ARQ2SPIN(Model model)
Constructs a new ARQ2SPIN engine for a given Model, equivalent with ARQ2SPIN(model, true) . |
|
ARQ2SPIN(Model model,
boolean addPrefixes)
Constructs a new ARQ2SPIN engine for a given Model. |
Method Summary | |
---|---|
ElementList |
createElementList(Element pattern)
Creates a SPIN ElementList from a given ARQ Element pattern. |
Query |
createQuery(Query arq,
java.lang.String uri)
Constructs a new SPIN Query from a given ARQ query, possibly with a URI. |
java.lang.String |
getVarNamespace()
Gets the (optional) variable namespace. |
void |
setVarNamespace(java.lang.String value)
Sets the variable namespace which is used to prevent the creation of too many blank nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ARQ2SPIN(Model model)
ARQ2SPIN(model, true)
.
model
- the Model to operate onpublic ARQ2SPIN(Model model, boolean addPrefixes)
model
- the Model to operate onaddPrefixes
- true to also let the system add missing
prefixes mentioned in SPARQL expressions
(e.g. the afn namespace if afn:now() is used)Method Detail |
---|
public ElementList createElementList(Element pattern)
pattern
- the ARQ pattern to convert to SPIN
public Query createQuery(Query arq, java.lang.String uri)
arq
- the ARQ queryuri
- the URI of the new Query resource or null for a blank node
public java.lang.String getVarNamespace()
public void setVarNamespace(java.lang.String value)
value
- the new namespace (might be null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |