/** * Gets the relevant properties in the specified ontology that are contained * within the property hierarchy. For example, for an object property hierarchy * this would constitute the set of referenced object properties in the specified * ontology. * @param ont The ontology */ protected Set<? extends OWLDataProperty> getReferencedProperties(OWLOntology ont) { return ont.getDataPropertiesInSignature(); }
/** * Gets the relevant properties in the specified ontology that are contained * within the property hierarchy. For example, for an object property hierarchy * this would constitute the set of referenced object properties in the specified * ontology. * @param ont The ontology */ protected Set<? extends OWLDataProperty> getReferencedProperties(OWLOntology ont) { return ont.getDataPropertiesInSignature(); }
/** * Gets the relevant properties in the specified ontology that are contained * within the property hierarchy. For example, for an object property hierarchy * this would constitute the set of referenced object properties in the specified * ontology. * @param ont The ontology */ protected Set<? extends OWLDataProperty> getReferencedProperties(OWLOntology ont) { return ont.getDataPropertiesInSignature(); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getDataPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getDataPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getDataPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getDataPropertiesInSignature(imports)); }
@Override protected Map<OWLDataProperty, Set<OWLLiteral>> getDataPropertyRelationshipsImpl(OWLIndividual individual) throws ReasoningMethodUnsupportedException { Map<OWLDataProperty, Set<OWLLiteral>> map = new HashMap<>(); for (OWLDataProperty prop : ontology.getDataPropertiesInSignature(Imports.INCLUDED)) { map.put(prop, getRelatedValuesImpl(individual, prop)); } return map; }
@Override protected int getEntityCount() { return getRootOntology().getDataPropertiesInSignature(true).size(); } }
public void setOntology(OWLOntology ontology) { this.ontology = ontology; if(ontology != null){ //gets all object properties from the ontology objectProperties = ontology.getObjectPropertiesInSignature(); //gets all data properties from the ontology dataProperties = ontology.getDataPropertiesInSignature(); } }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getDataPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getDataPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLDataProperty> getDataPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getDataPropertiesInSignature(b)); }
@Override public Collection<DatatypeProperty> getDatatypeProperties() { HashSet<DatatypeProperty> rv = new HashSet<DatatypeProperty>(); for (OWLDataProperty val : onto.getDataPropertiesInSignature()) { if (val instanceof OWLDataProperty) { rv.add(new OWLAPIDatatypeProperty((OWLDataProperty) val, onto)); } } return rv; }
public void setOntology(OWLOntology ontology) { this.ontology = ontology; if(ontology != null){ //gets all object properties from the ontology objectProperties = ontology.getObjectPropertiesInSignature(); //gets all data properties from the ontology dataProperties = ontology.getDataPropertiesInSignature(); } }
protected int getIntMetric() { Set<OWLDataProperty> clses = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getDataPropertiesInSignature()); } return clses.size(); } }
protected int getIntMetric() { Set<OWLDataProperty> clses = new HashSet<OWLDataProperty>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getDataPropertiesInSignature()); } return clses.size(); } }
protected int getIntMetric() { Set<OWLDataProperty> clses = new HashSet<OWLDataProperty>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { clses.addAll(ont.getDataPropertiesInSignature()); } return clses.size(); } }
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() { Set<OWLEntity> result = new HashSet<OWLEntity>(); result.addAll(ontology.getClassesInSignature()); result.addAll(ontology.getObjectPropertiesInSignature()); result.addAll(ontology.getDataPropertiesInSignature()); result.addAll(ontology.getIndividualsInSignature()); result.addAll(ontology.getAnnotationPropertiesInSignature()); return result; }
public void processOntology(OWLOntology ontology) { // Each entry in the inclusions list represents a disjunction of // concepts -- that is, each OWLClassExpression in an entry contributes a // disjunct. It is thus not really inclusions, but rather a disjunction // of concepts that represents an inclusion axiom. m_axioms.m_classes.addAll(ontology.getClassesInSignature(true)); m_axioms.m_objectProperties.addAll(ontology.getObjectPropertiesInSignature(true)); m_axioms.m_dataProperties.addAll(ontology.getDataPropertiesInSignature(true)); m_axioms.m_namedIndividuals.addAll(ontology.getIndividualsInSignature(true)); processAxioms(ontology.getLogicalAxioms()); } public void processAxioms(Collection<? extends OWLAxiom> axioms) {