Class ForwardChainingRDFSInferencerConnection
java.lang.Object
org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
org.eclipse.rdf4j.sail.inferencer.InferencerConnectionWrapper
org.eclipse.rdf4j.sail.inferencer.fc.AbstractForwardChainingInferencerConnection
org.eclipse.rdf4j.sail.inferencer.fc.ForwardChainingRDFSInferencerConnection
- All Implemented Interfaces:
AutoCloseable
,FederatedServiceResolverClient
,ThreadSafetyAware
,InferencerConnection
,NotifyingSailConnection
,SailConnection
,SailConnectionListener
@Deprecated(since="2.5")
class ForwardChainingRDFSInferencerConnection
extends AbstractForwardChainingInferencerConnection
Deprecated.
Forward-chaining RDF Schema inferencer, using the rules from the
RDF Semantics Recommendation (10 February 2004). This
inferencer can be used to add RDF Schema semantics to any Sail that returns
InferencerConnection
s from their
Sail.getConnection()
method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean[]
Deprecated.Flags indicating which rules should be evaluated.private final boolean[]
Deprecated.Flags indicating which rules should be evaluated next iteration.private static final org.slf4j.Logger
Deprecated.private Model
Deprecated.private final int[]
Deprecated.The number of inferred statements per rule.Fields inherited from class org.eclipse.rdf4j.sail.inferencer.fc.AbstractForwardChainingInferencerConnection
totalInferred
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.Adds all basic set of axiom statements from which the complete set can be inferred to the underlying Sail.protected int
applyRule
(int rule) Deprecated.protected int
applyRuleInternal
(int rule) Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.protected int
applyRules
(Model iteration) Deprecated.Returns the number of newly inferred statements.private int
Deprecated.protected Model
Deprecated.protected void
Deprecated.private boolean
Deprecated.Util method forapplyRuleX1()
.protected Model
Deprecated.protected void
updateTriggers
(int ruleNo, int nofInferred) Deprecated.Methods inherited from class org.eclipse.rdf4j.sail.inferencer.fc.AbstractForwardChainingInferencerConnection
begin, begin, flushUpdates, hasNewStatements, needsFullRecomputation, rollback, statementAdded, statementRemoved
Methods inherited from class org.eclipse.rdf4j.sail.inferencer.InferencerConnectionWrapper
addInferredStatement, clearInferred, commit, evaluate, flush, getContextIDs, getStatements, getWrappedConnection, hasStatement, prepare, removeInferredStatement, size
Methods inherited from class org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
addConnectionListener, removeConnectionListener
Methods inherited from class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
addStatement, addStatement, clear, clearNamespaces, close, endUpdate, explain, getFederatedServiceResolver, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, removeStatement, removeStatements, setFederatedServiceResolver, setNamespace, setTransactionSettings, 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.NotifyingSailConnection
addConnectionListener, removeConnectionListener
Methods inherited from interface org.eclipse.rdf4j.sail.SailConnection
addStatement, addStatement, clear, clearNamespaces, close, endUpdate, explain, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, removeStatement, removeStatements, setNamespace, setTransactionSettings, startUpdate
-
Field Details
-
logger
private static final org.slf4j.Logger loggerDeprecated. -
newThisIteration
Deprecated. -
checkRule
private final boolean[] checkRuleDeprecated.Flags indicating which rules should be evaluated. -
checkRuleNextIter
private final boolean[] checkRuleNextIterDeprecated.Flags indicating which rules should be evaluated next iteration. -
ruleCount
private final int[] ruleCountDeprecated.The number of inferred statements per rule.
-
-
Constructor Details
-
ForwardChainingRDFSInferencerConnection
Deprecated.
-
-
Method Details
-
createModel
Deprecated.- Specified by:
createModel
in classAbstractForwardChainingInferencerConnection
-
addAxiomStatements
Deprecated.Adds all basic set of axiom statements from which the complete set can be inferred to the underlying Sail.- Specified by:
addAxiomStatements
in classAbstractForwardChainingInferencerConnection
- Throws:
SailException
-
doInferencing
Deprecated.- Overrides:
doInferencing
in classAbstractForwardChainingInferencerConnection
- Throws:
SailException
-
applyRules
Deprecated.Description copied from class:AbstractForwardChainingInferencerConnection
Returns the number of newly inferred statements.- Specified by:
applyRules
in classAbstractForwardChainingInferencerConnection
- Throws:
SailException
-
prepareIteration
Deprecated.- Overrides:
prepareIteration
in classAbstractForwardChainingInferencerConnection
-
updateTriggers
protected void updateTriggers(int ruleNo, int nofInferred) Deprecated. -
applyRule
Deprecated.- Throws:
SailException
-
applyRuleInternal
Deprecated.- Throws:
SailException
-
applyRuleRdf1
Deprecated.- Throws:
SailException
-
applyRuleRdfs2_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs2_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs3_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs3_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs4a
Deprecated.- Throws:
SailException
-
applyRuleRdfs4b
Deprecated.- Throws:
SailException
-
applyRuleRdfs5_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs5_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs6
Deprecated.- Throws:
SailException
-
applyRuleRdfs7_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs7_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs8
Deprecated.- Throws:
SailException
-
applyRuleRdfs9_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs9_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs10
Deprecated.- Throws:
SailException
-
applyRuleRdfs11_1
Deprecated.- Throws:
SailException
-
applyRuleRdfs11_2
Deprecated.- Throws:
SailException
-
applyRuleRdfs12
Deprecated.- Throws:
SailException
-
applyRuleRdfs13
Deprecated.- Throws:
SailException
-
applyRuleX1
Deprecated.- Throws:
SailException
-
isValidPredicateNumber
Deprecated.Util method forapplyRuleX1()
.
-
SchemaCachingRDFSInferencer
instead.