|
||||||||||
| 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 query| Method Detail |
|---|
public boolean isAsk()
SPARQLQuery
isAsk in interface SPARQLQuerypublic boolean isDescribe()
SPARQLQuery
isDescribe in interface SPARQLQuerypublic boolean isConstruct()
SPARQLQuery
isConstruct in interface SPARQLQuerypublic boolean isSelect()
SPARQLQuery
isSelect in interface SPARQLQuerypublic DataSet getDataSet()
SPARQLQuery
getDataSet in interface SPARQLQuerypublic void setDataSet(DataSet ds)
SPARQLQuery
setDataSet in interface SPARQLQueryds - dataset (may be null)public SetOfStatements toRDF()
SPARQLQuery
toRDF in interface QuerytoRDF in interface SPARQLQuerypublic org.openrdf.model.URI getLabelledGroup()
SPARQLQuery
getLabelledGroup in interface SPARQLQuerypublic void setLabelledGroup(org.openrdf.model.URI label)
SPARQLQuery
setLabelledGroup in interface SPARQLQuerylabel - of the labeled group (may be null)public org.openrdf.query.parser.ParsedQuery getParsedQuery()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||