org.topbraid.spin.model
Interface Query

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

public interface Query
extends Command

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

Author:
Holger Knublauch

Method Summary
 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.Command
getComment
 
Methods inherited from interface org.topbraid.spin.model.print.Printable
print
 

Method Detail

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