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

All Superinterfaces:
Query, QueryWithSolutionModifier
All Known Implementing Classes:
SimpleSelectQuery

public interface SelectQuery
extends QueryWithSolutionModifier

This interface represents a SPARQL SELECT query.

Author:
hasan
See Also:
SPARQL Query Language: 10.1 SELECT

Method Summary
 List<Variable> getSelection()
          Gets the list of Variables to project the solution to.
 boolean isDistinct()
          Tests if this query should return distinct results.
 boolean isReduced()
          Tests if this query should return reduced results.
 boolean isSelectAll()
          Tests if this query returns all its variables, and not a projected subset.
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.QueryWithSolutionModifier
getLimit, getOffset, getOrderConditions
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.Query
getDataSet, getQueryPattern, toString
 

Method Detail

isDistinct

boolean isDistinct()

Tests if this query should return distinct results.

Returns:
true if the query should return distinct results.
See Also:
SPARQL Query Language: 9.3.1 DISTINCT

isReduced

boolean isReduced()

Tests if this query should return reduced results.

Returns:
true if the query should return reduced results.
See Also:
SPARQL Query Language: 9.3.2 REDUCED

isSelectAll

boolean isSelectAll()

Tests if this query returns all its variables, and not a projected subset.

Returns:
true if the query should return all variables.
See Also:
SPARQL Query Language: 9 Solution Sequences and Modifiers, SPARQL Query Language: 9.2 Projection

getSelection

List<Variable> getSelection()

Gets the list of Variables to project the solution to. If isSelectAll() returns true then this list contains all the variables from the query.

Returns:
A list of Variables to return from the query.
See Also:
SPARQL Query Language: 10.1 SELECT, SPARQL Query Language: 9.2 Projection


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