/** * Gets the axioms in the specified ontology that contain this entity in their signature. * * @param e entity * @param ontology The ontology that will be searched for axioms * @return The axioms in the specified ontology whose signature contains this entity. */ public static Stream<OWLAxiom> getReferencingAxioms(OWLEntity e, OWLOntology ontology) { return ontology.referencingAxioms(e, EXCLUDED); }
/** * Gets the axioms in the specified ontology that contain this entity in their signature. * * @param e entity * @param ontology The ontology that will be searched for axioms * @return The axioms in the specified ontology whose signature contains this entity. */ public static Stream<OWLAxiom> getReferencingAxioms(OWLEntity e, OWLOntology ontology) { return ontology.referencingAxioms(e, EXCLUDED); }
/** * Gets the axioms in the specified ontology that contain this entity in their signature. * * @param e entity * @param ontology The ontology that will be searched for axioms * @return The axioms in the specified ontology whose signature contains this entity. */ public static Stream<OWLAxiom> getReferencingAxioms(OWLEntity e, OWLOntology ontology) { return ontology.referencingAxioms(e, EXCLUDED); }
@Override public boolean isRootClass(OWLClass cls) { return !ontologies.stream().flatMap(o -> o.referencingAxioms(cls)) .anyMatch(ax -> isRootClass(cls, ax)); }
@Override public boolean isRootClass(OWLClass cls) { return !ontologies.stream().flatMap(o -> o.referencingAxioms(cls)) .anyMatch(ax -> isRootClass(cls, ax)); }
@Override public Stream<OWLAxiom> referencingAxioms(OWLPrimitive owlPrimitive, Imports imports) { return withReadLock(() -> delegate.referencingAxioms(owlPrimitive, imports)); }
@Override public Stream<OWLAxiom> referencingAxioms(OWLPrimitive owlPrimitive) { return withReadLock(() -> delegate.referencingAxioms(owlPrimitive)); }
@Override public Stream<OWLAxiom> referencingAxioms(OWLPrimitive owlPrimitive) { return withReadLock(() -> delegate.referencingAxioms(owlPrimitive)); }
@Override public Stream<OWLAxiom> referencingAxioms(OWLPrimitive owlPrimitive) { return withReadLock(() -> delegate.referencingAxioms(owlPrimitive)); }
@Override public boolean isRootClass(OWLClass cls) { return !ontologies.stream().flatMap(o -> o.referencingAxioms(cls)) .anyMatch(ax -> isRootClass(cls, ax)); }
protected void renderAnon(OWLAnonymousIndividual anonInd) { List<OWLAxiom> axioms = new ArrayList<>(); if (ontology.referencingAxioms(anonInd) .filter(ax -> !(ax instanceof OWLDifferentIndividualsAxiom)) .noneMatch(ax -> shouldNotRender(anonInd, axioms, ax))) { createGraph(axioms.stream()); renderAnonRoots(); } }
protected void renderAnon(OWLAnonymousIndividual anonInd) { List<OWLAxiom> axioms = new ArrayList<>(); if (ontology.referencingAxioms(anonInd) .filter(ax -> !(ax instanceof OWLDifferentIndividualsAxiom)) .noneMatch(ax -> shouldNotRender(anonInd, axioms, ax))) { createGraph(axioms.stream()); renderAnonRoots(); } }
protected void renderAnon(OWLAnonymousIndividual anonInd) { List<OWLAxiom> axioms = new ArrayList<>(); if (ontology.referencingAxioms(anonInd) .filter(ax -> !(ax instanceof OWLDifferentIndividualsAxiom)) .noneMatch(ax -> shouldNotRender(anonInd, axioms, ax))) { createGraph(axioms.stream()); renderAnonRoots(); } }
protected void renderAnon(OWLAnonymousIndividual anonInd) { List<OWLAxiom> axioms = new ArrayList<>(); if (ontology.referencingAxioms(anonInd) .filter(ax -> !(ax instanceof OWLDifferentIndividualsAxiom)) .noneMatch(ax -> shouldNotRender(anonInd, axioms, ax))) { createGraph(axioms.stream()); renderAnonRoots(); } }
private void generateChanges(OWLEntity entity) { checkNotNull(entity, "entity cannot be null"); for (OWLOntology ont : ontologies) { ont.referencingAxioms(entity).forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); ont.annotationAssertionAxioms(entity.getIRI()) .forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); } }
private void generateChanges(OWLEntity entity) { checkNotNull(entity, "entity cannot be null"); for (OWLOntology ont : ontologies) { ont.referencingAxioms(entity).forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); ont.annotationAssertionAxioms(entity.getIRI()) .forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); } }
private void generateChanges(OWLEntity entity) { checkNotNull(entity, "entity cannot be null"); for (OWLOntology ont : ontologies) { ont.referencingAxioms(entity).forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); ont.annotationAssertionAxioms(entity.getIRI()) .forEach(ax -> changes.add(new RemoveAxiom(ont, ax))); } }
private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) { List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED)); add(axioms, ont.declarationAxioms(entity.getDatatype())); return axioms; }
private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) { List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED)); add(axioms, ont.declarationAxioms(entity.getDatatype())); return axioms; }
private static Collection<OWLAxiom> getAxioms(OWLOntology ont, OWLLiteral entity) { List<OWLAxiom> axioms = asList(ont.referencingAxioms(entity, EXCLUDED)); add(axioms, ont.declarationAxioms(entity.getDatatype())); return axioms; }