org.apache.clerezza.rdf.core.sparql.query
Interface Query

All Known Subinterfaces:
AskQuery, ConstructQuery, DescribeQuery, QueryWithSolutionModifier, SelectQuery
All Known Implementing Classes:
SimpleAskQuery, SimpleConstructQuery, SimpleDescribeQuery, SimpleQuery, SimpleQueryWithSolutionModifier, SimpleSelectQuery

public interface Query

This interface represents a SPARQL query.

There are four types of SPARQL queries: SelectQuery, ConstructQuery, DescribeQuery, and AskQuery.

Author:
hasan

Method Summary
 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.
 String toString()
           
 

Method Detail

getDataSet

DataSet getDataSet()

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

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

GroupGraphPattern getQueryPattern()

Gets the query pattern of the WHERE clause for the 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

toString

String toString()
Overrides:
toString in class Object
Returns:
A valid String representation of the query.


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