org.apache.clerezza.rdf.core.sparql.query.impl
Class SimpleQuery

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
All Implemented Interfaces:
Query
Direct Known Subclasses:
SimpleAskQuery, SimpleQueryWithSolutionModifier

public abstract class SimpleQuery
extends Object
implements Query

Author:
hasan

Constructor Summary
SimpleQuery()
           
 
Method Summary
 void addDefaultGraph(UriRef defaultGraph)
           
 void addNamedGraph(UriRef namedGraph)
           
 DataSet getDataSet()
          Gets DataSet containing the specification of the default graph and named graphs, if any.
 GroupGraphPattern getQueryPattern()
          Gets the query pattern of the WHERE clause for the query.
 void setQueryPattern(GroupGraphPattern queryPattern)
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleQuery

public SimpleQuery()
Method Detail

getDataSet

public DataSet getDataSet()
Description copied from interface: Query

Gets DataSet containing the specification of the default graph and named graphs, if any.

Specified by:
getDataSet in interface Query
Returns:
null if no data set is specified, indicating the use of system default graph. Otherwise a DataSet object is returned.
See Also:
SPARQL Query Language: 8.2 Specifying RDF Datasets

getQueryPattern

public GroupGraphPattern getQueryPattern()
Description copied from interface: Query

Gets the query pattern of the WHERE clause for the query.

Specified by:
getQueryPattern in interface Query
Returns:
the GroupGraphPattern of the WHERE clause for this query. If the WHERE clause is not specified, null is returned.
See Also:
SPARQL Query Language: 5 Graph Patterns

addDefaultGraph

public void addDefaultGraph(UriRef defaultGraph)

addNamedGraph

public void addNamedGraph(UriRef namedGraph)

setQueryPattern

public void setQueryPattern(GroupGraphPattern queryPattern)

toString

public abstract String toString()
Specified by:
toString in interface Query
Overrides:
toString in class Object
Returns:
A valid String representation of the query.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.