org.topbraid.spin.model
Interface Query

All Superinterfaces:
Printable
All Known Subinterfaces:
Ask, Construct, Describe, Select, SolutionModifierQuery

public interface Query
extends Printable

Base interface of the various SPARQL query types such as Ask, Construct, Describe and Select.

Author:
Holger Knublauch

Method Summary
 java.lang.String getComment()
          Gets the comment if any has been stored as rdfs:comment.
 java.util.List<java.lang.String> getFrom()
          Gets the list of URIs specified in FROM clauses.
 java.util.List<java.lang.String> getFromNamed()
          Gets the list of URIs specified in FROM NAMED clauses.
 ElementList getWhere()
          Gets the ElementList of the WHERE clause of this query.
 java.util.List<Element> getWhereElements()
          Gets the elements in the WHERE clause of this query.
 
Methods inherited from interface org.topbraid.spin.model.print.Printable
print
 

Method Detail

getComment

java.lang.String getComment()
Gets the comment if any has been stored as rdfs:comment.

Returns:
the comment or null

getFrom

java.util.List<java.lang.String> getFrom()
Gets the list of URIs specified in FROM clauses.

Returns:
a List of URI Strings

getFromNamed

java.util.List<java.lang.String> getFromNamed()
Gets the list of URIs specified in FROM NAMED clauses.

Returns:
a List of URI Strings

getWhere

ElementList getWhere()
Gets the ElementList of the WHERE clause of this query. Might be null or RDF.nil.

Returns:
the WHERE clause as an ElementList

getWhereElements

java.util.List<Element> getWhereElements()
Gets the elements in the WHERE clause of this query. The Elements will be typecast into the best suitable subclass.

Returns:
a List of Elements