Class TrivialInferencerConnection

java.lang.Object
org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
it.uniroma2.art.semanticturkey.trivialinference.sail.TrivialInferencerConnection
All Implemented Interfaces:
AutoCloseable, org.eclipse.rdf4j.query.algebra.evaluation.federation.FederatedServiceResolverClient, org.eclipse.rdf4j.sail.features.ThreadSafetyAware, org.eclipse.rdf4j.sail.NotifyingSailConnection, org.eclipse.rdf4j.sail.SailConnection

public class TrivialInferencerConnection extends org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
A SailConnection for TrivialInferencer.
Author:
Manuel Fiorelli
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrivialInferencerConnection(TrivialInferencer sail, org.eclipse.rdf4j.sail.NotifyingSailConnection wrappedCon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
     
    void
    addStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
     
    void
     
    void
    begin(org.eclipse.rdf4j.common.transaction.IsolationLevel level)
     
    void
     
    void
     
    org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException>
    evaluate(org.eclipse.rdf4j.query.algebra.TupleExpr tupleExpr, org.eclipse.rdf4j.query.Dataset dataset, org.eclipse.rdf4j.query.BindingSet bindings, boolean includeInferred)
     
    void
     
    org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Resource,org.eclipse.rdf4j.sail.SailException>
     
    org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,org.eclipse.rdf4j.sail.SailException>
    getStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contexts)
     
    boolean
    hasStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contexts)
     
    boolean
    isPredicateInteresting(org.eclipse.rdf4j.model.IRI pred)
     
    void
     
    void
    removeStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
     
    void
    removeStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
     
    void
     

    Methods inherited from class org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper

    addConnectionListener, getWrappedConnection, removeConnectionListener

    Methods inherited from class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper

    clear, clearNamespaces, endUpdate, explain, getFederatedServiceResolver, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, setFederatedServiceResolver, setNamespace, setTransactionSettings, size, size, startUpdate, supportsConcurrentReads

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.rdf4j.sail.SailConnection

    clear, clearNamespaces, endUpdate, explain, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, setNamespace, setTransactionSettings, size, startUpdate
  • Constructor Details

    • TrivialInferencerConnection

      public TrivialInferencerConnection(TrivialInferencer sail, org.eclipse.rdf4j.sail.NotifyingSailConnection wrappedCon)
  • Method Details

    • isPredicateInteresting

      public boolean isPredicateInteresting(org.eclipse.rdf4j.model.IRI pred)
    • addStatement

      public void addStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      addStatement in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      addStatement in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • addStatement

      public void addStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      addStatement in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      addStatement in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • removeStatement

      public void removeStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      removeStatement in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      removeStatement in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • removeStatements

      public void removeStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      removeStatements in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      removeStatements in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • getStatements

      public org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,org.eclipse.rdf4j.sail.SailException> getStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      getStatements in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      getStatements in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • evaluate

      public org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> evaluate(org.eclipse.rdf4j.query.algebra.TupleExpr tupleExpr, org.eclipse.rdf4j.query.Dataset dataset, org.eclipse.rdf4j.query.BindingSet bindings, boolean includeInferred) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      evaluate in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      evaluate in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • hasStatement

      public boolean hasStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contexts) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      hasStatement in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      hasStatement in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • getContextIDs

      public org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Resource,org.eclipse.rdf4j.sail.SailException> getContextIDs() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      getContextIDs in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      getContextIDs in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • begin

      public void begin() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      begin in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      begin in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • begin

      public void begin(org.eclipse.rdf4j.common.transaction.IsolationLevel level) throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      begin in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      begin in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • flush

      public void flush() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      flush in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      flush in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • prepare

      public void prepare() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      prepare in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      prepare in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • commit

      public void commit() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      commit in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      commit in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • rollback

      public void rollback() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      rollback in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      rollback in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException
    • close

      public void close() throws org.eclipse.rdf4j.sail.SailException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.eclipse.rdf4j.sail.SailConnection
      Overrides:
      close in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
      Throws:
      org.eclipse.rdf4j.sail.SailException