org.openanzo.glitter
Class Engine

java.lang.Object
  extended by org.openanzo.glitter.Engine

public class Engine
extends java.lang.Object

The core Glitter engine. Provides the basic framework for parsing and executing SPARQL queries in Glitter.

Author:
lee

Constructor Summary
Engine(EngineConfig configuration)
           
 
Method Summary
 QueryResults executeQuery(java.io.InputStream query)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.net.URI g)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.net.URI g, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.net.URI g, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.InputStream query, java.net.URI g, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(QueryController controller, boolean includeInferredTriples, java.net.URI ontology)
          Executes a query.
 QueryResults executeQuery(java.io.Reader query)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.net.URI g)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.net.URI g, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.net.URI g, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.io.Reader query, java.net.URI g, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.net.URI g)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.net.URI g, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.net.URI g, java.net.URI baseUri)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 QueryResults executeQuery(java.lang.String query, java.net.URI g, java.net.URI baseUri, boolean includeInferredTriples, java.net.URI ontology)
          Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)
 EngineConfig getConfiguration()
           
 QueryController prepareQuery(java.io.InputStream query)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.InputStream query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.InputStream query, java.net.URI g)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.InputStream query, java.net.URI g, java.net.URI baseUri)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.Reader query)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.Reader query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.Reader query, java.net.URI g)
          See prepareQuery(String)
 QueryController prepareQuery(java.io.Reader query, java.net.URI g, java.net.URI baseUri)
          See prepareQuery(String)
 QueryController prepareQuery(java.lang.String query)
          Performs the following steps to prepare the query for execution:
1) parse the query
2) retrieve a query controller
2.5) rewrite the tree as specified in the configuration (this includes rewriting any BGPs that contain functional predicates)
2.6) validate that the query is acceptable as specified in the configuration
3) Load a SolutionGenerator and an RDFDataset
 QueryController prepareQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs)
          See prepareQuery(String)
 QueryController prepareQuery(java.lang.String query, java.util.Set<java.net.URI> defaultGraphs, java.util.Set<java.net.URI> namedGraphs, java.net.URI baseUri)
          See prepareQuery(String)
 QueryController prepareQuery(java.lang.String query, java.net.URI g)
          See prepareQuery(String)
 QueryController prepareQuery(java.lang.String query, java.net.URI g, java.net.URI baseUri)
          See prepareQuery(String)
 void setConfiguration(EngineConfig configuration)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Engine

public Engine(EngineConfig configuration)
Parameters:
configuration - Contains configuration settings for this Glitter Engine instance
Method Detail

getConfiguration

public EngineConfig getConfiguration()
Returns:
The EngineConfig for this Glitter engine.

setConfiguration

public void setConfiguration(EngineConfig configuration)
Parameters:
configuration - New EngineConfig for this Glitter engine.

prepareQuery

public QueryController prepareQuery(java.lang.String query)
                             throws ParseException,
                                    GlitterException
Performs the following steps to prepare the query for execution:
1) parse the query
2) retrieve a query controller
2.5) rewrite the tree as specified in the configuration (this includes rewriting any BGPs that contain functional predicates)
2.6) validate that the query is acceptable as specified in the configuration
3) Load a SolutionGenerator and an RDFDataset

Parameters:
query - The query to be executed.
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.Reader query)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.InputStream query)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.lang.String query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.Reader query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.InputStream query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.lang.String query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.Reader query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.InputStream query,
                                    java.util.Set<java.net.URI> defaultGraphs,
                                    java.util.Set<java.net.URI> namedGraphs,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.lang.String query,
                                    java.net.URI g)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.Reader query,
                                    java.net.URI g)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.InputStream query,
                                    java.net.URI g)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.lang.String query,
                                    java.net.URI g,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.Reader query,
                                    java.net.URI g,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

prepareQuery

public QueryController prepareQuery(java.io.InputStream query,
                                    java.net.URI g,
                                    java.net.URI baseUri)
                             throws ParseException,
                                    GlitterException
See prepareQuery(String)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
A QueryController that summarizes the parsed and prepared query.
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.net.URI g)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.net.URI g)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.net.URI g)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.net.URI g,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.net.URI g,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.net.URI g,
                                 java.net.URI baseUri)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.util.Set<java.net.URI> defaultGraphs,
                                 java.util.Set<java.net.URI> namedGraphs,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
defaultGraphs - Identifies the graphs that will be merged to form the default graph in the query's RDF Dataset
namedGraphs - Identifies the named graph components of the query's RDF Dataset
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.net.URI g,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.net.URI g,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.net.URI g,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.lang.String query,
                                 java.net.URI g,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.Reader query,
                                 java.net.URI g,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(java.io.InputStream query,
                                 java.net.URI g,
                                 java.net.URI baseUri,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws ParseException,
                                 GlitterException
Combines preparing and executing a query as per prepareQuery(String) and executeQuery(QueryController, boolean, URI)

Parameters:
query - Provides the query to be executed
g - The default graph for the query
baseUri - The base URI against which relative URI references in the query are resolved
includeInferredTriples - Whether or not the query should go against a virtual graph containing triples inferred by ontology
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query
Throws:
ParseException
GlitterException

executeQuery

public QueryResults executeQuery(QueryController controller,
                                 boolean includeInferredTriples,
                                 java.net.URI ontology)
                          throws GlitterException
Executes a query. An overload of prepareQuery(String) must be called first.
4) create a query executor
5) execute the query
6) Apply query modifiers (ORDER BY, LIMIT, OFFSET)
7) Produce and return a result form

Parameters:
controller - The QueryController that contains information about a parsed and prepared query.
includeInferredTriples - Should inferred triples be considered when evaluating query results?
ontology - Identifies an ontology to use in inferring triples when answering the query
Returns:
The results of executing the query.
Throws:
GlitterException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.