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
InferencerConnections 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.LoggerDeprecated.private ModelDeprecated.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 voidDeprecated.Adds all basic set of axiom statements from which the complete set can be inferred to the underlying Sail.protected intapplyRule(int rule) Deprecated.protected intapplyRuleInternal(int rule) Deprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.protected intapplyRules(Model iteration) Deprecated.Returns the number of newly inferred statements.private intDeprecated.protected ModelDeprecated.protected voidDeprecated.private booleanDeprecated.Util method forapplyRuleX1().protected ModelDeprecated.protected voidupdateTriggers(int ruleNo, int nofInferred) Deprecated.Methods inherited from class org.eclipse.rdf4j.sail.inferencer.fc.AbstractForwardChainingInferencerConnection
begin, begin, flushUpdates, hasNewStatements, needsFullRecomputation, rollback, statementAdded, statementRemovedMethods inherited from class org.eclipse.rdf4j.sail.inferencer.InferencerConnectionWrapper
addInferredStatement, clearInferred, commit, evaluate, flush, getContextIDs, getStatements, getWrappedConnection, hasStatement, prepare, removeInferredStatement, sizeMethods inherited from class org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
addConnectionListener, removeConnectionListenerMethods 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, supportsConcurrentReadsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.sail.NotifyingSailConnection
addConnectionListener, removeConnectionListenerMethods 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:
createModelin classAbstractForwardChainingInferencerConnection
-
addAxiomStatements
Deprecated.Adds all basic set of axiom statements from which the complete set can be inferred to the underlying Sail.- Specified by:
addAxiomStatementsin classAbstractForwardChainingInferencerConnection- Throws:
SailException
-
doInferencing
Deprecated.- Overrides:
doInferencingin classAbstractForwardChainingInferencerConnection- Throws:
SailException
-
applyRules
Deprecated.Description copied from class:AbstractForwardChainingInferencerConnectionReturns the number of newly inferred statements.- Specified by:
applyRulesin classAbstractForwardChainingInferencerConnection- Throws:
SailException
-
prepareIteration
Deprecated.- Overrides:
prepareIterationin 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().
-
SchemaCachingRDFSInferencerinstead.