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:
java.lang.AutoCloseable
,FederatedServiceResolverClient
,ThreadSafetyAware
,InferencerConnection
,NotifyingSailConnection
,SailConnection
,SailConnectionListener
@Deprecated(since="2.5") class ForwardChainingRDFSInferencerConnection extends AbstractForwardChainingInferencerConnection
Deprecated.This inferencer implementation will be phased out. Consider switching to theSchemaCachingRDFSInferencer
instead.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 returnsInferencerConnection
s from theirSail.getConnection()
method.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean[]
checkRule
Deprecated.Flags indicating which rules should be evaluated.private boolean[]
checkRuleNextIter
Deprecated.Flags indicating which rules should be evaluated next iteration.private static org.slf4j.Logger
logger
Deprecated.private Model
newThisIteration
Deprecated.private int[]
ruleCount
Deprecated.The number of inferred statements per rule.-
Fields inherited from class org.eclipse.rdf4j.sail.inferencer.fc.AbstractForwardChainingInferencerConnection
totalInferred
-
-
Constructor Summary
Constructors Constructor Description ForwardChainingRDFSInferencerConnection(Sail sail, InferencerConnection con)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addAxiomStatements()
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
applyRuleRdf1()
Deprecated.private int
applyRuleRdfs10()
Deprecated.private int
applyRuleRdfs11_1()
Deprecated.private int
applyRuleRdfs11_2()
Deprecated.private int
applyRuleRdfs12()
Deprecated.private int
applyRuleRdfs13()
Deprecated.private int
applyRuleRdfs2_1()
Deprecated.private int
applyRuleRdfs2_2()
Deprecated.private int
applyRuleRdfs3_1()
Deprecated.private int
applyRuleRdfs3_2()
Deprecated.private int
applyRuleRdfs4a()
Deprecated.private int
applyRuleRdfs4b()
Deprecated.private int
applyRuleRdfs5_1()
Deprecated.private int
applyRuleRdfs5_2()
Deprecated.private int
applyRuleRdfs6()
Deprecated.private int
applyRuleRdfs7_1()
Deprecated.private int
applyRuleRdfs7_2()
Deprecated.private int
applyRuleRdfs8()
Deprecated.private int
applyRuleRdfs9_1()
Deprecated.private int
applyRuleRdfs9_2()
Deprecated.protected int
applyRules(Model iteration)
Deprecated.Returns the number of newly inferred statements.private int
applyRuleX1()
Deprecated.protected Model
createModel()
Deprecated.protected void
doInferencing()
Deprecated.private boolean
isValidPredicateNumber(java.lang.String str)
Deprecated.Util method forapplyRuleX1()
.protected Model
prepareIteration()
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 Detail
-
logger
private static final org.slf4j.Logger logger
Deprecated.
-
newThisIteration
private Model newThisIteration
Deprecated.
-
checkRule
private final boolean[] checkRule
Deprecated.Flags indicating which rules should be evaluated.
-
checkRuleNextIter
private final boolean[] checkRuleNextIter
Deprecated.Flags indicating which rules should be evaluated next iteration.
-
ruleCount
private final int[] ruleCount
Deprecated.The number of inferred statements per rule.
-
-
Constructor Detail
-
ForwardChainingRDFSInferencerConnection
public ForwardChainingRDFSInferencerConnection(Sail sail, InferencerConnection con)
Deprecated.
-
-
Method Detail
-
createModel
protected Model createModel()
Deprecated.- Specified by:
createModel
in classAbstractForwardChainingInferencerConnection
-
addAxiomStatements
protected void addAxiomStatements() throws SailException
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
protected void doInferencing() throws SailException
Deprecated.- Overrides:
doInferencing
in classAbstractForwardChainingInferencerConnection
- Throws:
SailException
-
applyRules
protected int applyRules(Model iteration) throws SailException
Deprecated.Description copied from class:AbstractForwardChainingInferencerConnection
Returns the number of newly inferred statements.- Specified by:
applyRules
in classAbstractForwardChainingInferencerConnection
- Throws:
SailException
-
prepareIteration
protected Model prepareIteration()
Deprecated.- Overrides:
prepareIteration
in classAbstractForwardChainingInferencerConnection
-
updateTriggers
protected void updateTriggers(int ruleNo, int nofInferred)
Deprecated.
-
applyRule
protected int applyRule(int rule) throws SailException
Deprecated.- Throws:
SailException
-
applyRuleInternal
protected int applyRuleInternal(int rule) throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdf1
private int applyRuleRdf1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs2_1
private int applyRuleRdfs2_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs2_2
private int applyRuleRdfs2_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs3_1
private int applyRuleRdfs3_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs3_2
private int applyRuleRdfs3_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs4a
private int applyRuleRdfs4a() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs4b
private int applyRuleRdfs4b() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs5_1
private int applyRuleRdfs5_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs5_2
private int applyRuleRdfs5_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs6
private int applyRuleRdfs6() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs7_1
private int applyRuleRdfs7_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs7_2
private int applyRuleRdfs7_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs8
private int applyRuleRdfs8() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs9_1
private int applyRuleRdfs9_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs9_2
private int applyRuleRdfs9_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs10
private int applyRuleRdfs10() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs11_1
private int applyRuleRdfs11_1() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs11_2
private int applyRuleRdfs11_2() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs12
private int applyRuleRdfs12() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleRdfs13
private int applyRuleRdfs13() throws SailException
Deprecated.- Throws:
SailException
-
applyRuleX1
private int applyRuleX1() throws SailException
Deprecated.- Throws:
SailException
-
isValidPredicateNumber
private boolean isValidPredicateNumber(java.lang.String str)
Deprecated.Util method forapplyRuleX1()
.
-
-