/** * Gets the changes to remove the specified entity from the specified ontology. * * @param object The entity. Not {@code null}. * @return The changes. */ public List<OWLOntologyChange> getChangesToRemoveObject(OWLEntity object, final OWLOntology ontology) { return getChangesToRemoveObject((OWLObject) object, ontology); }
private List<OWLOntologyChange> getChangesForEntity(OWLEntity entity, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAxiom ax : ont.getReferencingAxioms(entity)) { changes.add(new RemoveAxiom(ont, ax)); } IRI entityIRI = entity.getIRI(); changes.addAll(getChangesForAnnotationSubject(entityIRI, ont)); changes.addAll(getChangesForAnnotationValue(entityIRI, ont)); changes.addAll(getChangesForOntologyAnnotations(entityIRI, ont)); return changes; }
private List<OWLOntologyChange> getChangesForAnonymousIndividual(OWLAnonymousIndividual individual, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAxiom ax : ont.getReferencingAxioms(individual)) { changes.add(new RemoveAxiom(ont, ax)); } changes.addAll(getChangesForAnnotationSubject(individual, ont)); changes.addAll(getChangesForAnnotationValue(individual, ont)); return changes; }
private List<OWLOntologyChange> getChangesForEntity(OWLEntity entity, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAxiom ax : ont.getReferencingAxioms(entity)) { changes.add(new RemoveAxiom(ont, ax)); } IRI entityIRI = entity.getIRI(); changes.addAll(getChangesForAnnotationSubject(entityIRI, ont)); changes.addAll(getChangesForAnnotationValue(entityIRI, ont)); changes.addAll(getChangesForOntologyAnnotations(entityIRI, ont)); return changes; }
private List<OWLOntologyChange> getChangesForAnonymousIndividual(OWLAnonymousIndividual individual, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAxiom ax : ont.getReferencingAxioms(individual)) { changes.add(new RemoveAxiom(ont, ax)); } changes.addAll(getChangesForAnnotationSubject(individual, ont)); changes.addAll(getChangesForAnnotationValue(individual, ont)); return changes; }
/** * Gets the changes to remove the specified individual from the specified ontology. * * @param object The individual. Not {@code null}. * @return The changes. */ public List<OWLOntologyChange> getChangesToRemoveObject(OWLAnonymousIndividual object, final OWLOntology ontology) { return getChangesToRemoveObject((OWLObject) object, ontology); }
/** * Gets the changes to remove the specified individual from the specified ontology. * * @param object The individual. Not {@code null}. * @return The changes. */ public List<OWLOntologyChange> getChangesToRemoveObject(OWLAnonymousIndividual object, final OWLOntology ontology) { return getChangesToRemoveObject((OWLObject) object, ontology); }
/** * Gets the changes to remove the specified entity from the specified ontology. * * @param object The entity. Not {@code null}. * @return The changes. */ public List<OWLOntologyChange> getChangesToRemoveObject(OWLEntity object, final OWLOntology ontology) { return getChangesToRemoveObject((OWLObject) object, ontology); }