/** * 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 OWLObjectProperty> getReferencedProperties(OWLOntology ont) { return ont.getObjectPropertiesInSignature(); }
/** * 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 OWLObjectProperty> getReferencedProperties(OWLOntology ont) { return ont.getObjectPropertiesInSignature(); }
/** * 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 OWLObjectProperty> getReferencedProperties(OWLOntology ont) { return ont.getObjectPropertiesInSignature(); }
/** * 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 OWLObjectProperty> getReferencedProperties(OWLOntology ont) { return ont.getObjectPropertiesInSignature(); }
@Override @Deprecated public Set<OWLObjectProperty> getObjectPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getObjectPropertiesInSignature(imports)); }
@Override protected int getEntityCount() { return getRootOntology().getObjectPropertiesInSignature(true).size(); } }
@Override @Deprecated public Set<OWLObjectProperty> getObjectPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getObjectPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLObjectProperty> getObjectPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getObjectPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLObjectProperty> getObjectPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getObjectPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLObjectProperty> getObjectPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getObjectPropertiesInSignature(b)); }
private void renderObjectProperties() throws IOException { Set<OWLObjectProperty> objectProperties = ontology .getObjectPropertiesInSignature(); renderEntities(objectProperties, OBJECT_PROPERTIES_BANNER_TEXT); }
@Override protected Set<OWLObjectPropertyExpression> getEntities(OWLOntology ont) { Set<OWLObjectPropertyExpression> result = new HashSet<OWLObjectPropertyExpression>(); for (OWLObjectPropertyExpression property : ont.getObjectPropertiesInSignature()) { result.add(property); result.add(property.getInverseProperty()); } return result; }
@Override public Collection<ObjectProperty> getObjectProperties() { HashSet<ObjectProperty> rv = new HashSet<ObjectProperty>(); for (OWLObjectProperty val : onto.getObjectPropertiesInSignature()) { if (val instanceof OWLObjectProperty) { rv.add(new OWLAPIObjectProperty((OWLObjectProperty) val, onto)); } } return rv; }
protected int getIntMetric() { Set<OWLObjectProperty> props = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { props.addAll(ont.getObjectPropertiesInSignature()); } return props.size(); } }
protected int getIntMetric() { Set<OWLObjectProperty> props = new HashSet<>(); for (OWLOntology ont : getOWLModelManager().getActiveOntologies()) { props.addAll(ont.getObjectPropertiesInSignature()); } return props.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; }
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; }
private void importInverseOfObjectProperties(OWLOntology o) { for (OWLObjectProperty objectProperty : o.getObjectPropertiesInSignature()) { if (!o.isDeclared(objectProperty, Imports.EXCLUDED)) { continue; } importInverseOf(o, objectProperty); } }
private void setOntology(OWLOntology ontology) { this.ontology = ontology; for(OWLOntology ont : man.getImportsClosure(ontology)) { for(OWLObjectProperty prop : ont.getObjectPropertiesInSignature()) { properties.add(prop); properties.add(prop.getInverseProperty()); } } reset(); }
protected void addAxioms(OWLNamedIndividual entity, OWLReasoner reasoner, OWLDataFactory dataFactory, Set<OWLPropertyAssertionAxiom> result) { for (OWLObjectProperty prop : reasoner.getRootOntology().getObjectPropertiesInSignature(true)) { for (OWLNamedIndividual value : reasoner.getObjectPropertyValues(entity, prop).getFlattened()) { result.add(dataFactory.getOWLObjectPropertyAssertionAxiom(prop, entity, value)); } } for (OWLDataProperty prop : reasoner.getRootOntology().getDataPropertiesInSignature(true)) { for (OWLLiteral value : reasoner.getDataPropertyValues(entity, prop)) { result.add(dataFactory.getOWLDataPropertyAssertionAxiom(prop, entity, value)); } } }