public Set<OWLDataPropertyAssertionAxiom> getIndividualDataRelationshipAxioms(OWLOntology ontology) { return ontology.getDataPropertyAssertionAxioms(this); }
@Override @Deprecated public Set<OWLDataPropertyAssertionAxiom> getDataPropertyAssertionAxioms( OWLIndividual owlIndividual) { return withReadLock(() -> delegate.getDataPropertyAssertionAxioms(owlIndividual)); }
@Override public Set<OWLPropertyAssertionAxiom<?, ?>> getAxiomsInOntology(OWLNamedIndividual subject, OWLOntology ontology) { return Sets.union( ontology.getObjectPropertyAssertionAxioms(subject), ontology.getDataPropertyAssertionAxioms(subject) ); }
@Override @Deprecated public Set<OWLDataPropertyAssertionAxiom> getDataPropertyAssertionAxioms( OWLIndividual owlIndividual) { return withReadLock(() -> delegate.getDataPropertyAssertionAxioms(owlIndividual)); }
@Override @Deprecated public Set<OWLDataPropertyAssertionAxiom> getDataPropertyAssertionAxioms( OWLIndividual owlIndividual) { return withReadLock(() -> delegate.getDataPropertyAssertionAxioms(owlIndividual)); }
@Override @Deprecated public Set<OWLDataPropertyAssertionAxiom> getDataPropertyAssertionAxioms( OWLIndividual owlIndividual) { return withReadLock(() -> delegate.getDataPropertyAssertionAxioms(owlIndividual)); }
public Map<OWLDataPropertyExpression, Set<OWLLiteral>> getDataPropertyValues(OWLOntology ontology) { Map<OWLDataPropertyExpression, Set<OWLLiteral>> result = new HashMap<OWLDataPropertyExpression, Set<OWLLiteral>>(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(this)) { Set<OWLLiteral> vals = result.get(ax.getProperty()); if (vals == null) { vals = new TreeSet<OWLLiteral>(); result.put(ax.getProperty(), vals); } vals.add(ax.getObject()); } return result; }
/** * Gets the values that this individual has for a specific data property * @param ontology The ontology to examine for property assertions * @return The values that this individual has for the specified property in the specified ontology. This is * the set of values such that each value LV in the set is in an axiom of the form * DataPropertyAssertion(property, thisIndividual, LV) in the ontology specified by the ontology parameter. */ public Set<OWLLiteral> getDataPropertyValues(OWLDataPropertyExpression property, OWLOntology ontology) { Set<OWLLiteral> result = new HashSet<OWLLiteral>(); for(OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(this)) { if(ax.getProperty().equals(property)) { result.add(ax.getObject()); } } return result; }
private Set<OWLAxiom> getRelevantAxioms(OWLNamedIndividual subject) { var relevantAxioms = new HashSet<OWLAxiom>(); for (OWLOntology ontology : rootOntology.getImportsClosure()) { relevantAxioms.addAll(ontology.getClassAssertionAxioms(subject)); relevantAxioms.addAll(ontology.getAnnotationAssertionAxioms(subject.getIRI())); relevantAxioms.addAll(ontology.getObjectPropertyAssertionAxioms(subject)); relevantAxioms.addAll(ontology.getDataPropertyAssertionAxioms(subject)); } return relevantAxioms; }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
@Nonnull @Override public Set<OWLLiteral> getDataPropertyValues(@Nonnull OWLNamedIndividual ind, @Nonnull OWLDataProperty pe) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { ensurePrepared(); Set<OWLLiteral> literals = new HashSet<>(); Set<OWLDataProperty> superProperties = getSuperDataProperties(pe, false).getFlattened(); superProperties.addAll(getEquivalentDataProperties(pe).getEntities()); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyAssertionAxiom axiom : ontology.getDataPropertyAssertionAxioms(ind)) { if (superProperties.contains(axiom.getProperty().asOWLDataProperty())) { literals.add(axiom.getObject()); } } } return literals; }
superProperties.addAll(getEquivalentDataProperties(pe).getEntities()); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyAssertionAxiom axiom : ontology.getDataPropertyAssertionAxioms(ind)) { if (superProperties.contains(axiom.getProperty().asOWLDataProperty())) { literals.add(axiom.getObject());
superProperties.addAll(getEquivalentDataProperties(pe).getEntities()); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyAssertionAxiom axiom : ontology.getDataPropertyAssertionAxioms(ind)) { if (superProperties.contains(axiom.getProperty().asOWLDataProperty())) { literals.add(axiom.getObject());
superProperties.addAll(getEquivalentDataProperties(pe).getEntities()); for (OWLOntology ontology : getRootOntology().getImportsClosure()) { for (OWLDataPropertyAssertionAxiom axiom : ontology.getDataPropertyAssertionAxioms(ind)) { if (superProperties.contains(axiom.getProperty().asOWLDataProperty())) { literals.add(axiom.getObject());
for (OWLDataPropertyAssertionAxiom ax : ont.getDataPropertyAssertionAxioms(ind)) { if (!ax.getProperty().isAnonymous()) { changes.add(new RemoveAxiom(ont, ax));
OWLNamedIndividual pun = ind.asOWLNamedIndividual(); for (OWLOntology ont : onts) { for (OWLDataPropertyAssertionAxiom ax : ont.getDataPropertyAssertionAxioms(pun)) { if (!ax.getProperty().isAnonymous()) { changes.add(new RemoveAxiom(ont, ax));
OWLNamedIndividual pun = ind.asOWLNamedIndividual(); for (OWLOntology ont : onts) { for (OWLDataPropertyAssertionAxiom ax : ont.getDataPropertyAssertionAxioms(pun)) { if (!ax.getProperty().isAnonymous()) { changes.add(new RemoveAxiom(ont, ax));