|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.query.SPARQLQueryImpl
public class SPARQLQueryImpl
SPARQLQueryImpl is the default SPARQLQuery implementation.
Constructor Summary | |
---|---|
SPARQLQueryImpl(java.lang.String query)
Constructor of the class. |
|
SPARQLQueryImpl(java.lang.String query,
java.lang.String ns)
Constructor of the class. |
Method Summary | |
---|---|
DataSet |
getDataSet()
Gets the SPARQL dataset of this query. |
org.openrdf.model.URI |
getLabelledGroup()
Gets the labeled group this query to be executed against. |
org.openrdf.query.parser.ParsedQuery |
getParsedQuery()
|
boolean |
isAsk()
Checks whether this query is ASK. |
boolean |
isConstruct()
Checks whether this query is CONSTRUCT |
boolean |
isDescribe()
Checks whether this query is DESCRIBE |
boolean |
isSelect()
Checks whether this query is SELECT |
void |
setDataSet(DataSet ds)
Sets the SPARQL dataset of this query. |
void |
setLabelledGroup(org.openrdf.model.URI label)
Sets the labeled group this query to be executed against.SPARQL syntax does not support this feature and it is currently accessible only via this the API. |
SetOfStatements |
toRDF()
Returns an RDF representation of the query |
SetOfStatements |
toRDF(SetOfStatements data)
Returns this query represented as a SetOfStatements |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SPARQLQueryImpl(java.lang.String query, java.lang.String ns)
query
- SPARQL queryns
- default namespace to be appliedpublic SPARQLQueryImpl(java.lang.String query)
query
- SPARQL queryMethod Detail |
---|
public boolean isAsk()
SPARQLQuery
isAsk
in interface SPARQLQuery
public boolean isDescribe()
SPARQLQuery
isDescribe
in interface SPARQLQuery
public boolean isConstruct()
SPARQLQuery
isConstruct
in interface SPARQLQuery
public boolean isSelect()
SPARQLQuery
isSelect
in interface SPARQLQuery
public DataSet getDataSet()
SPARQLQuery
getDataSet
in interface SPARQLQuery
public void setDataSet(DataSet ds)
SPARQLQuery
setDataSet
in interface SPARQLQuery
ds
- dataset (may be null)public SetOfStatements toRDF()
SPARQLQuery
toRDF
in interface Query
toRDF
in interface SPARQLQuery
public org.openrdf.model.URI getLabelledGroup()
SPARQLQuery
getLabelledGroup
in interface SPARQLQuery
public void setLabelledGroup(org.openrdf.model.URI label)
SPARQLQuery
setLabelledGroup
in interface SPARQLQuery
label
- of the labeled group (may be null)public org.openrdf.query.parser.ParsedQuery getParsedQuery()
public java.lang.String toString()
toString
in class java.lang.Object
public SetOfStatements toRDF(SetOfStatements data)
Query
toRDF
in interface Query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |