com.clarkparsia.pellet.sparqldl.jena
Class SparqlDLExecutionFactory

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.jena.SparqlDLExecutionFactory

public class SparqlDLExecutionFactory
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Nested Class Summary
static class SparqlDLExecutionFactory.QueryEngineType
          Different types of query engine that can be used for answering queries.
 
Constructor Summary
SparqlDLExecutionFactory()
           
 
Method Summary
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset)
          Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset, com.hp.hpl.jena.query.QuerySolution initialBinding)
          Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset, com.hp.hpl.jena.query.QuerySolution initialBinding, SparqlDLExecutionFactory.QueryEngineType queryEngineType)
          Creates a QueryExecution with the given SparqlDLExecutionFactory.QueryEngineType.
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset, com.hp.hpl.jena.query.QuerySolution initialBinding, SparqlDLExecutionFactory.QueryEngineType queryEngineType, boolean handleVariableSPO)
          Creates a QueryExecution with the given SparqlDLExecutionFactory.QueryEngineType.
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model)
          Creates a QueryExecution object where the Basic Graph Patterns (BGPs) will be answered by native Pellet query engine whenever possible.
static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.query.QuerySolution initialBinding)
          Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.
static com.hp.hpl.jena.query.QueryExecution createBasicExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset)
          Deprecated. Use createPelletExecution(Query, Dataset) instead
static com.hp.hpl.jena.query.QueryExecution createBasicExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model)
          Deprecated. Use createPelletExecution(Query, Model) instead
static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset)
          Creates a Pellet query engine that will answer the given query.
static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.Dataset dataset, com.hp.hpl.jena.query.QuerySolution initialBinding)
          Creates a Pellet query engine that will answer the given query.
static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model)
          Creates a Pellet query engine that will answer the given query.
static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.query.QuerySolution initialBinding)
          Creates a Pellet query engine that will answer the given query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparqlDLExecutionFactory

public SparqlDLExecutionFactory()
Method Detail

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.query.Dataset dataset,
                                                          com.hp.hpl.jena.query.QuerySolution initialBinding)
Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.

Parameters:
query - the query
dataset - the target of the query
initialBinding - initial binding that will be applied before query execution or null if there is no initial binding
Returns:
a QueryExecution that will answer the query with the given dataset
See Also:
SparqlDLExecutionFactory.QueryEngineType

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.query.Dataset dataset,
                                                          com.hp.hpl.jena.query.QuerySolution initialBinding,
                                                          SparqlDLExecutionFactory.QueryEngineType queryEngineType)
Creates a QueryExecution with the given SparqlDLExecutionFactory.QueryEngineType. If the query engine cannot handle the given query a QueryException may be thrown during query execution. Users are recommended to use create(Query, Dataset, QuerySolution)

Parameters:
query - the query
dataset - the target of the query
initialBinding - used for parametrized queries
queryEngineType - type of the query engine that will be used to answer the query
Returns:
a QueryExecution that will answer the query with the given dataset

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.query.Dataset dataset,
                                                          com.hp.hpl.jena.query.QuerySolution initialBinding,
                                                          SparqlDLExecutionFactory.QueryEngineType queryEngineType,
                                                          boolean handleVariableSPO)
                                                   throws com.hp.hpl.jena.query.QueryException
Creates a QueryExecution with the given SparqlDLExecutionFactory.QueryEngineType. If the query engine cannot handle the given query a QueryException may be thrown during query execution. Users are recommended to use create(Query, Dataset, QuerySolution)

Parameters:
query - the query
dataset - the target of the query
initialBinding - used for parametrized queries
queryEngineType - type of the query engine that will be used to answer the query
handleVariableSPO - If this variable is true then queries with variable SPO statements are not handled by the SPARQL-DL engine but fall back to ARQ
Returns:
a QueryExecution that will answer the query with the given dataset
Throws:
com.hp.hpl.jena.query.QueryException

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.rdf.model.Model model)
Creates a QueryExecution object where the Basic Graph Patterns (BGPs) will be answered by native Pellet query engine whenever possible. The unsupported BGPs, i.e. the ones that are not in the SPARQL-DL fragment, will be answered by the Jena query engine. With this fall-back model all types of SPARQL queries are supported.

Parameters:
query - the query
model - the target of the query
Returns:
a QueryExecution that will answer the query with the given model
Throws:
com.hp.hpl.jena.query.QueryException - if the given model is not associated with Pellet reasoner

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.query.Dataset dataset)
Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.

Parameters:
query - the query
dataset - the target of the query
Returns:
a QueryExecution that will answer the query with the given dataset
See Also:
SparqlDLExecutionFactory.QueryEngineType

create

public static com.hp.hpl.jena.query.QueryExecution create(com.hp.hpl.jena.query.Query query,
                                                          com.hp.hpl.jena.rdf.model.Model model,
                                                          com.hp.hpl.jena.query.QuerySolution initialBinding)
Creates a QueryExecution by selecting the most appropriate SparqlDLExecutionFactory.QueryEngineType that can answer the given query.

Parameters:
query - the query
model - the target of the query
initialBinding - initial binding that will be applied before query execution or null if there is no initial binding
Returns:
a QueryExecution that will answer the query with the given dataset
See Also:
SparqlDLExecutionFactory.QueryEngineType

createPelletExecution

public static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query,
                                                                         com.hp.hpl.jena.rdf.model.Model model)
Creates a Pellet query engine that will answer the given query. This function should be used only if it is known that Pellet query engine can handle the given query. Otherwise query execution will result in an exception. for arbitrary queries it is safer to use the create functions.

Parameters:
query - the query
model - the target of the query
Returns:
a QueryExecution that will answer the query with the given model
See Also:
SparqlDLExecutionFactory.QueryEngineType

createPelletExecution

public static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query,
                                                                         com.hp.hpl.jena.rdf.model.Model model,
                                                                         com.hp.hpl.jena.query.QuerySolution initialBinding)
Creates a Pellet query engine that will answer the given query. This function should be used only if it is known that Pellet query engine can handle the given query. Otherwise query execution will result in an exception. for arbitrary queries it is safer to use the create functions.

Parameters:
query - the query
model - the target of the query
initialBinding - initial binding that will be applied before query execution or null if there is no initial binding
Returns:
a QueryExecution that will answer the query with the given model
See Also:
SparqlDLExecutionFactory.QueryEngineType

createPelletExecution

public static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query,
                                                                         com.hp.hpl.jena.query.Dataset dataset)
Creates a Pellet query engine that will answer the given query. This function should be used only if it is known that Pellet query engine can handle the given query. Otherwise query execution will result in an exception. for arbitrary queries it is safer to use the create functions.

Parameters:
query - the query
dataset - the target of the query
initialBinding - initial binding that will be applied before query execution or null if there is no initial binding
Returns:
a QueryExecution that will answer the query with the given dataset
See Also:
SparqlDLExecutionFactory.QueryEngineType

createPelletExecution

public static com.hp.hpl.jena.query.QueryExecution createPelletExecution(com.hp.hpl.jena.query.Query query,
                                                                         com.hp.hpl.jena.query.Dataset dataset,
                                                                         com.hp.hpl.jena.query.QuerySolution initialBinding)
Creates a Pellet query engine that will answer the given query. This function should be used only if it is known that Pellet query engine can handle the given query. Otherwise query execution will result in an exception. for arbitrary queries it is safer to use the create functions.

Parameters:
query - the query
dataset - the target of the query
initialBinding - initial binding that will be applied before query execution or null if there is no initial binding
Returns:
a QueryExecution that will answer the query with the given dataset
See Also:
SparqlDLExecutionFactory.QueryEngineType

createBasicExecution

public static com.hp.hpl.jena.query.QueryExecution createBasicExecution(com.hp.hpl.jena.query.Query query,
                                                                        com.hp.hpl.jena.rdf.model.Model model)
Deprecated. Use createPelletExecution(Query, Model) instead


createBasicExecution

public static com.hp.hpl.jena.query.QueryExecution createBasicExecution(com.hp.hpl.jena.query.Query query,
                                                                        com.hp.hpl.jena.query.Dataset dataset)
Deprecated. Use createPelletExecution(Query, Dataset) instead



Copyright © 2004 Evren Sirin. All Rights Reserved.