com.tinkerpop.blueprints.oupls.sail
Class GraphSailConnection

java.lang.Object
  extended by org.openrdf.sail.helpers.SailConnectionBase
      extended by org.openrdf.sail.helpers.NotifyingSailConnectionBase
          extended by com.tinkerpop.blueprints.oupls.sail.GraphSailConnection
All Implemented Interfaces:
org.openrdf.sail.inferencer.InferencerConnection, org.openrdf.sail.NotifyingSailConnection, org.openrdf.sail.SailConnection

public class GraphSailConnection
extends org.openrdf.sail.helpers.NotifyingSailConnectionBase
implements org.openrdf.sail.inferencer.InferencerConnection

A stateful connection to a BlueprintsSail RDF store interface.

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
 
Fields inherited from class org.openrdf.sail.helpers.SailConnectionBase
connectionLock, logger, updateLock
 
Constructor Summary
GraphSailConnection(com.tinkerpop.blueprints.oupls.sail.GraphSail.DataStore store)
           
 
Method Summary
 boolean addInferredStatement(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object, org.openrdf.model.Resource... contexts)
           
 void addStatementInternal(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object, org.openrdf.model.Resource... contexts)
           
 void clearInferred(org.openrdf.model.Resource... contexts)
           
 void clearInternal(org.openrdf.model.Resource... contexts)
           
 void clearNamespacesInternal()
           
 void closeInternal()
           
 void commitInternal()
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluateInternal(org.openrdf.query.algebra.TupleExpr query, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings, boolean includeInferred)
           
 void flushUpdates()
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDsInternal()
           
 String getNamespaceInternal(String prefix)
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespacesInternal()
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatementsInternal(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object, boolean includeInferred, org.openrdf.model.Resource... contexts)
           
 boolean removeInferredStatement(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object, org.openrdf.model.Resource... contexts)
           
 void removeNamespaceInternal(String prefix)
           
 void removeStatementsInternal(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object, org.openrdf.model.Resource... contexts)
           
 void rollbackInternal()
           
 void setNamespaceInternal(String prefix, String uri)
           
 long sizeInternal(org.openrdf.model.Resource... contexts)
           
protected  void startTransactionInternal()
           
 
Methods inherited from class org.openrdf.sail.helpers.NotifyingSailConnectionBase
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListener
 
Methods inherited from class org.openrdf.sail.helpers.SailConnectionBase
addStatement, autoStartTransaction, clear, clearNamespaces, close, commit, evaluate, executeInternal, executeUpdate, finalize, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionLock, isOpen, iterationClosed, registerIteration, removeNamespace, removeStatements, rollback, setNamespace, size, transactionActive, verifyIsOpen
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sail.NotifyingSailConnection
addConnectionListener, removeConnectionListener
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, clear, clearNamespaces, close, commit, evaluate, executeUpdate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size
 

Constructor Detail

GraphSailConnection

public GraphSailConnection(com.tinkerpop.blueprints.oupls.sail.GraphSail.DataStore store)
Method Detail

startTransactionInternal

protected void startTransactionInternal()
                                 throws org.openrdf.sail.SailException
Specified by:
startTransactionInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

commitInternal

public void commitInternal()
                    throws org.openrdf.sail.SailException
Specified by:
commitInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

rollbackInternal

public void rollbackInternal()
                      throws org.openrdf.sail.SailException
Specified by:
rollbackInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

closeInternal

public void closeInternal()
                   throws org.openrdf.sail.SailException
Specified by:
closeInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

evaluateInternal

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluateInternal(org.openrdf.query.algebra.TupleExpr query,
                                                                                                                                                   org.openrdf.query.Dataset dataset,
                                                                                                                                                   org.openrdf.query.BindingSet bindings,
                                                                                                                                                   boolean includeInferred)
                                                                                                                                            throws org.openrdf.sail.SailException
Specified by:
evaluateInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getContextIDsInternal

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDsInternal()
                                                                                                                                   throws org.openrdf.sail.SailException
Specified by:
getContextIDsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getStatementsInternal

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatementsInternal(org.openrdf.model.Resource subject,
                                                                                                                                           org.openrdf.model.URI predicate,
                                                                                                                                           org.openrdf.model.Value object,
                                                                                                                                           boolean includeInferred,
                                                                                                                                           org.openrdf.model.Resource... contexts)
                                                                                                                                    throws org.openrdf.sail.SailException
Specified by:
getStatementsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

sizeInternal

public long sizeInternal(org.openrdf.model.Resource... contexts)
                  throws org.openrdf.sail.SailException
Specified by:
sizeInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

addStatementInternal

public void addStatementInternal(org.openrdf.model.Resource subject,
                                 org.openrdf.model.URI predicate,
                                 org.openrdf.model.Value object,
                                 org.openrdf.model.Resource... contexts)
                          throws org.openrdf.sail.SailException
Specified by:
addStatementInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

removeStatementsInternal

public void removeStatementsInternal(org.openrdf.model.Resource subject,
                                     org.openrdf.model.URI predicate,
                                     org.openrdf.model.Value object,
                                     org.openrdf.model.Resource... contexts)
                              throws org.openrdf.sail.SailException
Specified by:
removeStatementsInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

clearInternal

public void clearInternal(org.openrdf.model.Resource... contexts)
                   throws org.openrdf.sail.SailException
Specified by:
clearInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getNamespacesInternal

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespacesInternal()
                                                                                                                                    throws org.openrdf.sail.SailException
Specified by:
getNamespacesInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

getNamespaceInternal

public String getNamespaceInternal(String prefix)
                            throws org.openrdf.sail.SailException
Specified by:
getNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

setNamespaceInternal

public void setNamespaceInternal(String prefix,
                                 String uri)
                          throws org.openrdf.sail.SailException
Specified by:
setNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

removeNamespaceInternal

public void removeNamespaceInternal(String prefix)
                             throws org.openrdf.sail.SailException
Specified by:
removeNamespaceInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

clearNamespacesInternal

public void clearNamespacesInternal()
                             throws org.openrdf.sail.SailException
Specified by:
clearNamespacesInternal in class org.openrdf.sail.helpers.SailConnectionBase
Throws:
org.openrdf.sail.SailException

addInferredStatement

public boolean addInferredStatement(org.openrdf.model.Resource subject,
                                    org.openrdf.model.URI predicate,
                                    org.openrdf.model.Value object,
                                    org.openrdf.model.Resource... contexts)
                             throws org.openrdf.sail.SailException
Specified by:
addInferredStatement in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

removeInferredStatement

public boolean removeInferredStatement(org.openrdf.model.Resource subject,
                                       org.openrdf.model.URI predicate,
                                       org.openrdf.model.Value object,
                                       org.openrdf.model.Resource... contexts)
                                throws org.openrdf.sail.SailException
Specified by:
removeInferredStatement in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

clearInferred

public void clearInferred(org.openrdf.model.Resource... contexts)
                   throws org.openrdf.sail.SailException
Specified by:
clearInferred in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException

flushUpdates

public void flushUpdates()
                  throws org.openrdf.sail.SailException
Specified by:
flushUpdates in interface org.openrdf.sail.inferencer.InferencerConnection
Throws:
org.openrdf.sail.SailException


Copyright © 2010-2012 David Wu. All Rights Reserved.