public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLObjectProperty p : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(p)); } } return axioms; }
@Override @Deprecated public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlPrimitive, Imports imports) { return withReadLock(() -> delegate.getReferencingAxioms(owlPrimitive, imports)); }
@Override @Deprecated public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlPrimitive, Imports imports) { return withReadLock(() -> delegate.getReferencingAxioms(owlPrimitive, imports)); }
@Override @Deprecated public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlPrimitive, Imports imports) { return withReadLock(() -> delegate.getReferencingAxioms(owlPrimitive, imports)); }
@Override @Deprecated public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlPrimitive) { return withReadLock(() -> delegate.getReferencingAxioms(owlPrimitive)); }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLClass cls : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(cls)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLNamedIndividual individual : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(individual)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLClass cls : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(cls)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<OWLAxiom>(); for (OWLNamedIndividual individual : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(individual)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLDataProperty p : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(p)); } } return axioms; }
@Override @Deprecated public Set<OWLAxiom> getReferencingAxioms(OWLPrimitive owlPrimitive, boolean b) { return withReadLock(() -> delegate.getReferencingAxioms(owlPrimitive, b)); }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<OWLAxiom>(); for (OWLNamedIndividual individual : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(individual)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<OWLAxiom>(); for (OWLObjectProperty p : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(p)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLNamedIndividual individual : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(individual)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies) { Set<OWLAxiom> axioms = new HashSet<>(); for (OWLObjectProperty p : getEntities()){ for (OWLOntology ont : ontologies){ axioms.addAll(ont.getReferencingAxioms(p)); } } return axioms; }
public Set<OWLAxiom> getAxioms(Set<OWLOntology> ontologies, Set<OWLEntity> entities) { Set<OWLAxiom> result = new HashSet<>(); for (OWLEntity e : entities) { for(OWLOntology ont : ontologies) { result.addAll(ont.getReferencingAxioms(e)); result.addAll(ont.getAnnotationAssertionAxioms(e.getIRI())); } } return result; }
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 Set<OWLClass> extractChildren(OWLClass parent) { childClassExtractor.setCurrentParentClass(parent); for (OWLOntology ont : ontologies) { for (OWLAxiom ax : ont.getReferencingAxioms(parent)) { if (ax.isLogicalAxiom()) { ax.accept(childClassExtractor); } } } return childClassExtractor.getResult(); }
private Collection<OWLClass> extractChildren(OWLClass parent) { childClassExtractor.setCurrentParentClass(parent); for (OWLOntology ont : ontologies) { for (OWLAxiom ax : ont.getReferencingAxioms(parent)) { if (ax.isLogicalAxiom()) { ax.accept(childClassExtractor); } } } return childClassExtractor.getResult(); }
private Set<OWLClass> extractChildren(OWLClass parent) { childClassExtractor.setCurrentParentClass(parent); for (OWLOntology ont : ontologies) { for (OWLAxiom ax : ont.getReferencingAxioms(parent)) { if (ax.isLogicalAxiom()) { ax.accept(childClassExtractor); } } } return childClassExtractor.getResult(); }