@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } return change.getAxiom() instanceof SWRLRule; }
@Override protected boolean isMetricInvalidated(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange chg : changes) { if (chg.isAxiomChange() && chg.getAxiom() instanceof OWLSubClassOfAxiom) { return true; } } return false; } }
@Override protected boolean isMetricInvalidated(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes) { if (change.isAxiomChange() && change.getAxiom() instanceof OWLSubClassOfAxiom) { return true; } } return false; } }
@Deprecated protected void handleChanges(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes) { if (change.isAxiomChange()) { change.getAxiom().accept(AbstractOWLFrameSection.this); } } }
@Override public OWLAPIProjectMetricState getStateAfterChanges(List<? extends OWLOntologyChange> changes) { for(OWLOntologyChange change : changes) { if(change.isAxiomChange()) { if(change.getAxiom().isOfType(type)) { return OWLAPIProjectMetricState.DIRTY; } } } return OWLAPIProjectMetricState.CLEAN; } }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLSubPropertyChainOfAxiom) { return ((OWLSubPropertyChainOfAxiom) axiom).getSuperProperty().equals(getRootObject()); } return false; } }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLObjectPropertyAssertionAxiom) { return ((OWLObjectPropertyAssertionAxiom) axiom).getSubject().equals(getRootObject()); } return false; }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLSameIndividualAxiom) { return ((OWLSameIndividualAxiom) axiom).getIndividuals().contains(getRootObject()); } return false; }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLNegativeDataPropertyAssertionAxiom) { return ((OWLNegativeDataPropertyAssertionAxiom) axiom).getSubject().equals(getRootObject()); } return false; }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLSubAnnotationPropertyOfAxiom) { return ((OWLSubAnnotationPropertyOfAxiom) axiom).getSubProperty().equals(getRootObject()); } return false; }
@Override protected boolean isResettingChange(OWLOntologyChange change) { if (!change.isAxiomChange()) { return false; } OWLAxiom axiom = change.getAxiom(); if (axiom instanceof OWLHasKeyAxiom) { return ((OWLHasKeyAxiom) axiom).getClassExpression().equals(getRootObject()); } return false; }