com.ontotext.ordi.tripleset.impl
Class TQueryConnectionImpl

java.lang.Object
  extended by com.ontotext.ordi.tripleset.WarningAwareImpl
      extended by com.ontotext.ordi.tripleset.ConnectionImpl
          extended by com.ontotext.ordi.tripleset.impl.TConnectionImpl
              extended by com.ontotext.ordi.tripleset.impl.TQueryConnectionImpl
All Implemented Interfaces:
Connection, TConnection, WarningAware, Wrapper
Direct Known Subclasses:
RDBMSConnection, TRREEConnection

public abstract class TQueryConnectionImpl
extends TConnectionImpl

This class implements the evaluation of TupleExpr against the TConnection's search method.

Author:
vassil

Nested Class Summary
 class TQueryConnectionImpl.ORDITripleSource
           
 
Field Summary
protected  TSource tsource
           
 
Fields inherited from class com.ontotext.ordi.tripleset.impl.TConnectionImpl
listeners
 
Fields inherited from class com.ontotext.ordi.tripleset.ConnectionImpl
isAutoCommit, isolationLevel, source
 
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
warning
 
Constructor Summary
TQueryConnectionImpl(TSource source)
           
 
Method Summary
 CloseableIterator<? extends BindingSet> evaluate(TupleExpr tupleExpr, BindingSet bindings, boolean includeInferred)
          Evaluates abstract query expression and executes it.
 CloseableIterator<? extends BindingSet> evaluate(TupleExpr tupleExpr, BindingSet bindings, Dataset dataset, boolean includeInferred, URI tripleset)
           
 
Methods inherited from class com.ontotext.ordi.tripleset.impl.TConnectionImpl
addListener, close, commit, listListeners, removeListener, rollback
 
Methods inherited from class com.ontotext.ordi.tripleset.ConnectionImpl
getDataSource, getTransactionIsolationLevel, isAutoCommit, isWrapperFor, setAutoCommit, setTransactionIsolationLevel, unwrap
 
Methods inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
clearWarnings, getWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ontotext.ordi.tripleset.TConnection
addStatement, addStatement, associateTripleset, deassociateTripleset, getValuesOfType, removeStatement, search
 
Methods inherited from interface com.ontotext.ordi.Connection
getDataSource, getTransactionIsolationLevel, isAutoCommit, isOpen, isReadOnly, setAutoCommit, setTransactionIsolationLevel
 
Methods inherited from interface com.ontotext.ordi.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Field Detail

tsource

protected final TSource tsource
Constructor Detail

TQueryConnectionImpl

public TQueryConnectionImpl(TSource source)
Method Detail

evaluate

public CloseableIterator<? extends BindingSet> evaluate(TupleExpr tupleExpr,
                                                        BindingSet bindings,
                                                        boolean includeInferred)
                                                 throws ORDIException
Description copied from interface: TConnection
Evaluates abstract query expression and executes it.

Parameters:
tupleExpr - abstract query expression
bindings - the keys reference variables to be bound to result values
includeInferred - to include inferred statements in the result
Returns:
result object
Throws:
ORDIException

evaluate

public CloseableIterator<? extends BindingSet> evaluate(TupleExpr tupleExpr,
                                                        BindingSet bindings,
                                                        Dataset dataset,
                                                        boolean includeInferred,
                                                        URI tripleset)
                                                 throws ORDIException
Throws:
ORDIException


Copyright © 2008. All Rights Reserved.