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 theSchemaCachingRDFSInferencerinstead.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 returnsInferencerConnections from theirSail.getConnection()method.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean[]checkRuleDeprecated.Flags indicating which rules should be evaluated.private boolean[]checkRuleNextIterDeprecated.Flags indicating which rules should be evaluated next iteration.private static org.slf4j.LoggerloggerDeprecated.private ModelnewThisIterationDeprecated.private int[]ruleCountDeprecated.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 voidaddAxiomStatements()Deprecated.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 intapplyRuleRdf1()Deprecated.private intapplyRuleRdfs10()Deprecated.private intapplyRuleRdfs11_1()Deprecated.private intapplyRuleRdfs11_2()Deprecated.private intapplyRuleRdfs12()Deprecated.private intapplyRuleRdfs13()Deprecated.private intapplyRuleRdfs2_1()Deprecated.private intapplyRuleRdfs2_2()Deprecated.private intapplyRuleRdfs3_1()Deprecated.private intapplyRuleRdfs3_2()Deprecated.private intapplyRuleRdfs4a()Deprecated.private intapplyRuleRdfs4b()Deprecated.private intapplyRuleRdfs5_1()Deprecated.private intapplyRuleRdfs5_2()Deprecated.private intapplyRuleRdfs6()Deprecated.private intapplyRuleRdfs7_1()Deprecated.private intapplyRuleRdfs7_2()Deprecated.private intapplyRuleRdfs8()Deprecated.private intapplyRuleRdfs9_1()Deprecated.private intapplyRuleRdfs9_2()Deprecated.protected intapplyRules(Model iteration)Deprecated.Returns the number of newly inferred statements.private intapplyRuleX1()Deprecated.protected ModelcreateModel()Deprecated.protected voiddoInferencing()Deprecated.private booleanisValidPredicateNumber(java.lang.String str)Deprecated.Util method forapplyRuleX1().protected ModelprepareIteration()Deprecated.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, 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:
createModelin classAbstractForwardChainingInferencerConnection
-
addAxiomStatements
protected void addAxiomStatements() throws SailExceptionDeprecated.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
protected void doInferencing() throws SailExceptionDeprecated.- Overrides:
doInferencingin classAbstractForwardChainingInferencerConnection- Throws:
SailException
-
applyRules
protected int applyRules(Model iteration) throws SailException
Deprecated.Description copied from class:AbstractForwardChainingInferencerConnectionReturns the number of newly inferred statements.- Specified by:
applyRulesin classAbstractForwardChainingInferencerConnection- Throws:
SailException
-
prepareIteration
protected Model prepareIteration()
Deprecated.- Overrides:
prepareIterationin classAbstractForwardChainingInferencerConnection
-
updateTriggers
protected void updateTriggers(int ruleNo, int nofInferred)Deprecated.
-
applyRule
protected int applyRule(int rule) throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleInternal
protected int applyRuleInternal(int rule) throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdf1
private int applyRuleRdf1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs2_1
private int applyRuleRdfs2_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs2_2
private int applyRuleRdfs2_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs3_1
private int applyRuleRdfs3_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs3_2
private int applyRuleRdfs3_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs4a
private int applyRuleRdfs4a() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs4b
private int applyRuleRdfs4b() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs5_1
private int applyRuleRdfs5_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs5_2
private int applyRuleRdfs5_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs6
private int applyRuleRdfs6() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs7_1
private int applyRuleRdfs7_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs7_2
private int applyRuleRdfs7_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs8
private int applyRuleRdfs8() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs9_1
private int applyRuleRdfs9_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs9_2
private int applyRuleRdfs9_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs10
private int applyRuleRdfs10() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs11_1
private int applyRuleRdfs11_1() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs11_2
private int applyRuleRdfs11_2() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs12
private int applyRuleRdfs12() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleRdfs13
private int applyRuleRdfs13() throws SailExceptionDeprecated.- Throws:
SailException
-
applyRuleX1
private int applyRuleX1() throws SailExceptionDeprecated.- Throws:
SailException
-
isValidPredicateNumber
private boolean isValidPredicateNumber(java.lang.String str)
Deprecated.Util method forapplyRuleX1().
-
-