Class ConfiguredReasonerListener

  • All Implemented Interfaces:
    org.apache.jena.rdf.model.ModelChangedListener

    public class ConfiguredReasonerListener
    extends Object
    implements org.apache.jena.rdf.model.ModelChangedListener
    Listens for changes on a model. When a change is announced, it is checked for worthiness. If worthy, it is added to a change set. When an ending EditEvent is received, the current change set is passed along to the reasoner driver, and a new change set is begun. Among the criteria for deciding on worthiness is the driving pattern set. In the constructor, a map is made from this set, to reduce the number of tests made against each statement. I don't know whether this optimization is justified. It is possible to "suspend" the listener, so it will ignore any changes. This is useful when the reasoner itself makes changes to the models, so those changes do not trigger additional reasoning.
    • Method Detail

      • addedStatement

        public void addedStatement​(org.apache.jena.rdf.model.Statement s)
        Specified by:
        addedStatement in interface org.apache.jena.rdf.model.ModelChangedListener
      • addedStatements

        public void addedStatements​(org.apache.jena.rdf.model.Statement[] statements)
        Specified by:
        addedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • addedStatements

        public void addedStatements​(List<org.apache.jena.rdf.model.Statement> statements)
        Specified by:
        addedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • addedStatements

        public void addedStatements​(org.apache.jena.rdf.model.StmtIterator statements)
        Specified by:
        addedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • addedStatements

        public void addedStatements​(org.apache.jena.rdf.model.Model m)
        Specified by:
        addedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • removedStatement

        public void removedStatement​(org.apache.jena.rdf.model.Statement s)
        Specified by:
        removedStatement in interface org.apache.jena.rdf.model.ModelChangedListener
      • removedStatements

        public void removedStatements​(org.apache.jena.rdf.model.Statement[] statements)
        Specified by:
        removedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • removedStatements

        public void removedStatements​(List<org.apache.jena.rdf.model.Statement> statements)
        Specified by:
        removedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • removedStatements

        public void removedStatements​(org.apache.jena.rdf.model.StmtIterator statements)
        Specified by:
        removedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • removedStatements

        public void removedStatements​(org.apache.jena.rdf.model.Model m)
        Specified by:
        removedStatements in interface org.apache.jena.rdf.model.ModelChangedListener
      • notifyEvent

        public void notifyEvent​(org.apache.jena.rdf.model.Model m,
                                Object event)
        Specified by:
        notifyEvent in interface org.apache.jena.rdf.model.ModelChangedListener
      • tryAdd

        public void tryAdd​(org.apache.jena.rdf.model.Statement stmt)
      • tryRemove

        public void tryRemove​(org.apache.jena.rdf.model.Statement stmt)