org.openanzo.model.impl.query
Class CoreEngineConfig

java.lang.Object
  extended by org.openanzo.glitter.DefaultEngineConfig
      extended by org.openanzo.model.impl.query.CoreEngineConfig
All Implemented Interfaces:
EngineConfig
Direct Known Subclasses:
BasicGraphEngineConfig, ContainerEngineConfig, RdbEngineConfig, ServerEngineConfig

public abstract class CoreEngineConfig
extends DefaultEngineConfig
implements EngineConfig

SuperType for Engine configs that use the same functional predicates and have an includeInferredTriples flag

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
CoreEngineConfig()
          Create CoreEngineConfig
 
Method Summary
 java.lang.Class<? extends RDFDataset<?>> getDatasetClass()
           
 java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> getFunctionalPredicates()
           
 java.lang.Class<? extends QueryExecutionPlan> getQueryExecutionPlan()
           
 java.lang.Iterable<QueryValidator> getQueryValidators()
           
 java.lang.Iterable<TreeRewriter> getTreeRewriters()
           
 boolean includeInferredTriples()
          Should query results include inferred triples Note:Not yet implemented
 void registerFunctionalPredicate(java.lang.String predicate, java.lang.Class<? extends FunctionalPredicate> clazz)
          Register FunctionalPredicate with this engine config
 void setIncludeInferredTriples(boolean includeInferredTriples)
          Set if query results should include inferred triples Note:Not yet implemented
 
Methods inherited from class org.openanzo.glitter.DefaultEngineConfig
allowNaryUnion, substituteFixedBindings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.glitter.EngineConfig
allowNaryUnion, getSolutionGeneratorFactory, substituteFixedBindings
 

Constructor Detail

CoreEngineConfig

public CoreEngineConfig()
Create CoreEngineConfig

Method Detail

getDatasetClass

public java.lang.Class<? extends RDFDataset<?>> getDatasetClass()
Specified by:
getDatasetClass in interface EngineConfig
Returns:
The RDFDataset subclass to use for identifying and retrieving data graphs to query against.

getTreeRewriters

public java.lang.Iterable<TreeRewriter> getTreeRewriters()
Specified by:
getTreeRewriters in interface EngineConfig
Overrides:
getTreeRewriters in class DefaultEngineConfig
Returns:
An enumeration of TreeRewriters that will be applied sequentially to transform the SPARQL query tree before query execution.

getQueryValidators

public java.lang.Iterable<QueryValidator> getQueryValidators()
Specified by:
getQueryValidators in interface EngineConfig
Returns:
An enumeration of QueryValidators that will be invoked sequentially to determine if the engine will execute the given query.

getQueryExecutionPlan

public java.lang.Class<? extends QueryExecutionPlan> getQueryExecutionPlan()
Specified by:
getQueryExecutionPlan in interface EngineConfig
Returns:
The QueryExecutionPlan class to use for putting together a plan of access for executing the query.

registerFunctionalPredicate

public void registerFunctionalPredicate(java.lang.String predicate,
                                        java.lang.Class<? extends FunctionalPredicate> clazz)
Register FunctionalPredicate with this engine config

Parameters:
predicate - to register
clazz - to instantiate

getFunctionalPredicates

public java.util.Map<java.net.URI,java.lang.Class<? extends FunctionalPredicate>> getFunctionalPredicates()
Specified by:
getFunctionalPredicates in interface EngineConfig
Returns:
A map associating predicate URIs with FunctionalPredicates that implement special semantics for that URI.

includeInferredTriples

public boolean includeInferredTriples()
Should query results include inferred triples Note:Not yet implemented

Specified by:
includeInferredTriples in interface EngineConfig
Returns:
the includeInferredTriples

setIncludeInferredTriples

public void setIncludeInferredTriples(boolean includeInferredTriples)
Set if query results should include inferred triples Note:Not yet implemented

Parameters:
includeInferredTriples - the includeInferredTriples to set


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