Class AbstractForwardChainingInferencerConnection

    • Field Detail

      • totalInferred

        protected int totalInferred
    • Constructor Detail

      • AbstractForwardChainingInferencerConnection

        public AbstractForwardChainingInferencerConnection​(Sail sail,
                                                           InferencerConnection con)
    • Method Detail

      • createModel

        protected abstract org.eclipse.rdf4j.model.Model createModel()
      • begin

        public void begin​(org.eclipse.rdf4j.common.transaction.IsolationLevel level)
                   throws SailException
        Specified by:
        begin in interface SailConnection
        Overrides:
        begin in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
        Throws:
        SailException
      • addAxiomStatements

        protected abstract void addAxiomStatements()
                                            throws SailException
        Adds all basic set of axiom statements from which the complete set can be inferred to the underlying Sail.
        Throws:
        SailException
      • applyRules

        protected abstract int applyRules​(org.eclipse.rdf4j.model.Model iteration)
                                   throws SailException
        Returns the number of newly inferred statements.
        Throws:
        SailException
      • prepareIteration

        protected org.eclipse.rdf4j.model.Model prepareIteration()
      • hasNewStatements

        protected boolean hasNewStatements()
      • needsFullRecomputation

        protected boolean needsFullRecomputation()
        Indicates if a full recomputation of the deductive closure is needed.