org.nsdl.mptstore.query.provider
Interface SQLProvider

All Known Subinterfaces:
SQLBuilder
All Known Implementing Classes:
GraphQuerySQLProvider, TriplePatternSQLProvider

public interface SQLProvider

Provides a list of SELECT statements and targets (column names) for RDF query.

Author:
cwilper@cs.cornell.edu

Method Summary
 java.util.List<java.lang.String> getSQL()
          Get the sequence of SELECT statements.
 java.util.List<java.lang.String> getTargets()
          Get the names of the values that are being selected.
 

Method Detail

getTargets

java.util.List<java.lang.String> getTargets()
Get the names of the values that are being selected. These should be in the same order specified in the original RDF query, and should match the order of the associated values in the SQL.

Returns:
the target names.

getSQL

java.util.List<java.lang.String> getSQL()
                                        throws QueryException
Get the sequence of SELECT statements.

Returns:
the SELECT statements.
Throws:
QueryException - if the SQL could not be generated for any reason.