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
ConstructorDescriptionTrivialInferencerConnection
(TrivialInferencer sail, org.eclipse.rdf4j.sail.NotifyingSailConnection wrappedCon) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
begin()
void
begin
(org.eclipse.rdf4j.common.transaction.IsolationLevel level) void
close()
void
commit()
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
flush()
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
prepare()
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
rollback()
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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
addStatement
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
addStatement
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
removeStatement
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
removeStatements
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
getStatements
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
evaluate
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
hasStatement
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
getContextIDs
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
begin
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
begin
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
flush
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
prepare
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
commit
in classorg.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 interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
rollback
in classorg.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 interfaceAutoCloseable
- Specified by:
close
in interfaceorg.eclipse.rdf4j.sail.SailConnection
- Overrides:
close
in classorg.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
- Throws:
org.eclipse.rdf4j.sail.SailException
-