/** * Given an axiom, return its signature. * * @deprecated 2.5.1 use the stream version */ @Deprecated public static Set<OWLEntity> getSignature(final OWLAxiom axiom) { return axiom.getSignature(); }
/** * Given an axiom, return its signature. * * @deprecated 2.5.1 use the stream version */ @Deprecated public static Set<OWLEntity> getSignature(final OWLAxiom axiom) { return axiom.getSignature(); }
/** * Get the entities referenced in this axiom * * @param axiom * @return */ @Deprecated protected Set<OWLEntity> getSignature(final OWLAxiom axiom) { return axiom.getSignature(); }
/** * Given an axiom, return its signature. * * @deprecated 2.5.1 use the stream version */ @Deprecated public static Set<OWLEntity> getSignature(final OWLAxiom axiom) { return axiom.getSignature(); }
/** * Get the entities referenced in this axiom * * @param axiom * @return */ @Deprecated protected Set<OWLEntity> getSignature(final OWLAxiom axiom) { return axiom.getSignature(); }
private boolean containsGlobalEntities(OWLAxiom ax, Set<OWLEntity> globalEnts) { Set<OWLEntity> intersection = new HashSet<OWLEntity>(ax.getSignature()); intersection.retainAll(globalEnts); return !intersection.isEmpty(); } }
public static Set<OWLEntity> getContext(OWLOntology ontology, OWLDataProperty property){ Set<OWLEntity> context = new HashSet<>(); Set<OWLAxiom> relatedAxioms = new HashSet<>(); relatedAxioms.addAll(ontology.getDataSubPropertyAxiomsForSubProperty(property)); relatedAxioms.addAll(ontology.getEquivalentDataPropertiesAxioms(property)); relatedAxioms.addAll(ontology.getDataPropertyDomainAxioms(property)); for (OWLAxiom axiom : relatedAxioms) { context.addAll(axiom.getSignature()); } return context; }
public static Set<OWLEntity> getContext(OWLOntology ontology, OWLObjectProperty property){ Set<OWLEntity> context = new HashSet<>(); Set<OWLAxiom> relatedAxioms = new HashSet<>(); relatedAxioms.addAll(ontology.getObjectSubPropertyAxiomsForSubProperty(property)); relatedAxioms.addAll(ontology.getEquivalentObjectPropertiesAxioms(property)); relatedAxioms.addAll(ontology.getObjectPropertyDomainAxioms(property)); relatedAxioms.addAll(ontology.getObjectPropertyRangeAxioms(property)); for (OWLAxiom axiom : relatedAxioms) { context.addAll(axiom.getSignature()); } return context; }
private boolean datatypesMightHaveChanged(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes) { if (change instanceof OWLAxiomChange) { for (OWLEntity e : change.getAxiom().getSignature()) { if (e instanceof OWLDatatype && !e.isBuiltIn()) { return true; } } } } return false; }
private boolean datatypesMightHaveChanged(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes) { if (change instanceof OWLAxiomChange) { for (OWLEntity e : change.getAxiom().getSignature()) { if (e instanceof OWLDatatype && !e.isBuiltIn()) { return true; } } } } return false; }
private boolean datatypesMightHaveChanged(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes) { if (change instanceof OWLAxiomChange) { for (OWLEntity e : ((OWLAxiomChange) change).getAxiom().getSignature()) { if (e instanceof OWLDatatype && !e.isBuiltIn()) { return true; } } } } return false; }
public void updateImplicitRoots(OWLOntologyChange change) { boolean remove = change instanceof RemoveAxiom; OWLAxiom axiom = change.getAxiom(); Set<OWLClass> possibleTerminalElements = new HashSet<>(); Set<OWLClass> notInOntologies = new HashSet<>(); for (OWLEntity entity : axiom.getSignature()) { if (!(entity instanceof OWLClass) || entity.equals(root)) { continue; } OWLClass cls = (OWLClass) entity; if (remove && !containsReference(cls)) { notInOntologies.add(cls); continue; } possibleTerminalElements.add(cls); } possibleTerminalElements.addAll(rootFinder.getTerminalElements()); possibleTerminalElements.removeAll(notInOntologies); rootFinder.findTerminalElements(possibleTerminalElements); }
private void handleAxiomChange(OWLAxiomChange chg) { for (OWLEntity ref : chg.getAxiom().getSignature()){ if (ref.isOWLNamedIndividual()){ checkIndividuals.add(ref.asOWLNamedIndividual()); } } }
private void handleAxiomChange(OWLAxiomChange chg) { for (OWLEntity ref : chg.getAxiom().getSignature()){ if (ref.isOWLNamedIndividual()){ checkIndividuals.add(ref.asOWLNamedIndividual()); } } }
private void handleAxiomChange(OWLAxiomChange chg) { for (OWLEntity ref : chg.getAxiom().getSignature()){ if (ref.isOWLNamedIndividual()){ checkIndividuals.add(ref.asOWLNamedIndividual()); } } }
private void handleAxiomChange(OWLAxiomChange chg) { for (OWLEntity ref : chg.getAxiom().getSignature()){ if (ref.isOWLNamedIndividual()){ checkIndividuals.add(ref.asOWLNamedIndividual()); } } }
private void handleChanges(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes){ if (change.isAxiomChange()){ for (OWLEntity entity : change.getAxiom().getSignature()){ if (entity.isOWLDatatype()){ reload(); return; } } } } }
private void handleChanges(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes){ if (change.isAxiomChange()){ for (OWLEntity entity : change.getAxiom().getSignature()){ if (entity.isOWLDatatype()){ reload(); return; } } } } }
private void handleChanges(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes){ if (change.isAxiomChange()){ for (OWLEntity entity : change.getAxiom().getSignature()){ if (entity.isOWLDatatype()){ reload(); return; } } } } }
private void handleChanges(List<? extends OWLOntologyChange> changes) { for (OWLOntologyChange change : changes){ if (change.isAxiomChange()){ for (OWLEntity entity : change.getAxiom().getSignature()){ if (entity.isOWLDatatype()){ reload(); return; } } } } }