eu.larkc.core.query
Interface SPARQLQuery

All Superinterfaces:
Query, Resource, java.io.Serializable
All Known Implementing Classes:
SPARQLQueryImpl

public interface SPARQLQuery
extends Query

The class represent a SPARQL query that might be executed by a SPARQL endpoint.

Author:
vassil

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.
 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
 
Methods inherited from interface eu.larkc.core.query.Query
toRDF
 

Method Detail

isAsk

boolean isAsk()
Checks whether this query is ASK.

Returns:
true if it is ASK query

isDescribe

boolean isDescribe()
Checks whether this query is DESCRIBE

Returns:
true if it is DESCRIBE query

isConstruct

boolean isConstruct()
Checks whether this query is CONSTRUCT

Returns:
true if it is CONSTRUCT query

isSelect

boolean isSelect()
Checks whether this query is SELECT

Returns:
true if it is SELECT query

getDataSet

DataSet getDataSet()
Gets the SPARQL dataset of this query. The SPARQL dataset is defined by FROM and FROM NAMED clauses.

Returns:
dataset (may be null)

setDataSet

void setDataSet(DataSet ds)
Sets the SPARQL dataset of this query. The SPARQL dataset is defined by FROM and FROM NAMED clauses.

Parameters:
ds - dataset (may be null)

getLabelledGroup

org.openrdf.model.URI getLabelledGroup()
Gets 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.

Returns:
URI of the labeled group (may be null)

setLabelledGroup

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.

Parameters:
label - of the labeled group (may be null)

toRDF

SetOfStatements toRDF()
Returns an RDF representation of the query

Specified by:
toRDF in interface Query
Returns:
representation of the query in RDF