@Override protected Set<OWLDataPropertyDomainAxiom> getAxiomsInOntology(OWLDataProperty subject, OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(subject); }
protected Set<? extends OWLPropertyDomainAxiom> getDomainAxioms(OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(this); }
@Override @Deprecated public Set<OWLDataPropertyDomainAxiom> getDataPropertyDomainAxioms( OWLDataProperty owlDataProperty) { return withReadLock(() -> delegate.getDataPropertyDomainAxioms(owlDataProperty)); }
@Override @Deprecated public Set<OWLDataPropertyDomainAxiom> getDataPropertyDomainAxioms( OWLDataProperty owlDataProperty) { return withReadLock(() -> delegate.getDataPropertyDomainAxioms(owlDataProperty)); }
@Override @Deprecated public Set<OWLDataPropertyDomainAxiom> getDataPropertyDomainAxioms( OWLDataProperty owlDataProperty) { return withReadLock(() -> delegate.getDataPropertyDomainAxioms(owlDataProperty)); }
@Override @Deprecated public Set<OWLDataPropertyDomainAxiom> getDataPropertyDomainAxioms( OWLDataProperty owlDataProperty) { return withReadLock(() -> delegate.getDataPropertyDomainAxioms(owlDataProperty)); }
protected Set<OWLDataPropertyDomainAxiom> getAxioms(OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(getRootObject()); }
protected Set<OWLDataPropertyDomainAxiom> getAxioms(OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(getRootObject()); }
protected Set<OWLDataPropertyDomainAxiom> getAxioms(OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(getRootObject()); }
protected Set<OWLDataPropertyDomainAxiom> getAxioms(OWLOntology ontology) { return ontology.getDataPropertyDomainAxioms(getRootObject()); }
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; }
for(OWLOntology ontology : rootOntology.getImportsClosure()) { propertyValueAxioms.addAll(ontology.getAnnotationAssertionAxioms(subject.getEntity().getIRI())); for(OWLDataPropertyDomainAxiom ax : ontology.getDataPropertyDomainAxioms(subject.getEntity())) { if(!ax.getDomain().isAnonymous()) { domains.add(ren.getClassData(ax.getDomain().asOWLClass()));
@Nonnull @Override public NodeSet<OWLClass> getDataPropertyDomains(@Nonnull OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { ensurePrepared(); DefaultNodeSet<OWLClass> result = new OWLClassNodeSet(); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyDomainAxiom axiom : ontology.getDataPropertyDomainAxioms(pe)) { result.addNode(getEquivalentClasses(axiom.getDomain())); if (!direct) { result.addAllNodes(getSuperClasses(axiom.getDomain(), false).getNodes()); } } } return result; }
if (ontology.getDataPropertyDomainAxioms(prop).size() == 1) { OWLDataPropertyDomainAxiom axiom = ontology.getDataPropertyDomainAxioms(prop).iterator().next(); else if (ontology.getDataPropertyDomainAxioms(prop).size() > 1) { throw new Exception("Unexpectedly more than one domain axiom");
for (OWLOntology ontology : getOntologies()) { Map<OWLClassExpression, Set<OWLAnnotation>> domains = new TreeMap<OWLClassExpression, Set<OWLAnnotation>>(); for (OWLDataPropertyDomainAxiom ax : ontology.getDataPropertyDomainAxioms(property)) { if (isDisplayed(ax)) { domains.put(ax.getDomain(), ax.getAnnotations());
public NodeSet<OWLClass> getDataPropertyDomains(OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { DefaultNodeSet<OWLClass> result = new OWLClassNodeSet(); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyDomainAxiom axiom : ontology.getDataPropertyDomainAxioms(pe)) { result.addNode(getEquivalentClasses(axiom.getDomain())); if (!direct) { result.addAllNodes(getSuperClasses(axiom.getDomain(), false).getNodes()); } } } return result; }
public NodeSet<OWLClass> getDataPropertyDomains(OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { ensurePrepared(); DefaultNodeSet<OWLClass> result = new OWLClassNodeSet(); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyDomainAxiom axiom : ontology.getDataPropertyDomainAxioms(pe)) { result.addNode(getEquivalentClasses(axiom.getDomain())); if (!direct) { result.addAllNodes(getSuperClasses(axiom.getDomain(), false).getNodes()); } } } return result; }
public NodeSet<OWLClass> getDataPropertyDomains(OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { ensurePrepared(); DefaultNodeSet<OWLClass> result = new OWLClassNodeSet(); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyDomainAxiom axiom : ontology.getDataPropertyDomainAxioms(pe)) { result.addNode(getEquivalentClasses(axiom.getDomain())); if (!direct) { result.addAllNodes(getSuperClasses(axiom.getDomain(), false).getNodes()); } } } return result; }
SectionMap domains = new SectionMap(); for (OWLDataPropertyDomainAxiom ax : ontology .getDataPropertyDomainAxioms(property)) { if (isDisplayed(ax)) { domains.add(ax.getDomain(), ax);