public boolean containsReference(OWLAnnotationProperty object) { for (OWLOntology ont : ontologies) { if (ont.getAnnotationPropertiesInSignature().contains(object)) { return true; } } return false; }
@Nonnull @Override protected Set<? extends OWLAnnotationProperty> getObjects(@Nonnull OWLOntology owlOntology) { return owlOntology.getAnnotationPropertiesInSignature(); } }
@Nonnull @Override protected Set<? extends OWLAnnotationProperty> getObjects(@Nonnull OWLOntology owlOntology) { return owlOntology.getAnnotationPropertiesInSignature(); } }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(b)); }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(Imports imports) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(imports)); }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(b)); }
@Override protected int getEntityCount() { return getRootOntology().getAnnotationPropertiesInSignature().size(); } }
@Override @Deprecated public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature(boolean b) { return withReadLock(() -> delegate.getAnnotationPropertiesInSignature(b)); }
private void renderAnnotationProperties() throws IOException { Set<OWLAnnotationProperty> annotationProperties = ontology .getAnnotationPropertiesInSignature(); renderEntities(annotationProperties, ANNOTATION_PROPERTIES_BANNER_TEXT); }
@Override public Set<OWLAnnotationProperty> getRoots() { if (implicitRoots == null){ implicitRoots = new HashSet<>(); for (OWLOntology ont : getOntologies()){ implicitRoots.addAll(ont.getAnnotationPropertiesInSignature()); } } return implicitRoots; }
private Set<OWLAnnotationProperty> getAnnotationProperties() { Set<OWLAnnotationProperty> annotationProperties = new HashSet<>(); Set<OWLOntology> ontologies = getOWLModelManager().getActiveOntologies(); for (OWLOntology ontology : ontologies) { annotationProperties.addAll(ontology.getAnnotationPropertiesInSignature()); } return annotationProperties; }
private Set<OWLAnnotationProperty> getAnnotationProperties() { Set<OWLAnnotationProperty> annotationProperties = new HashSet<>(); Set<OWLOntology> ontologies = getOWLModelManager().getActiveOntologies(); for (OWLOntology ontology : ontologies) { annotationProperties.addAll(ontology.getAnnotationPropertiesInSignature()); } return annotationProperties; }
private Set<OWLAnnotationProperty> getAnnotationProperties() { Set<OWLAnnotationProperty> annotationProperties = new HashSet<OWLAnnotationProperty>(); Set<OWLOntology> ontologies = getOWLModelManager().getActiveOntologies(); for (OWLOntology ontology : ontologies) { annotationProperties.addAll(ontology.getAnnotationPropertiesInSignature()); } return annotationProperties; }
private Set<OWLAnnotationProperty> getAnnotationProperties() { Set<OWLAnnotationProperty> annotationProperties = new HashSet<OWLAnnotationProperty>(); Set<OWLOntology> ontologies = getOWLModelManager().getActiveOntologies(); for (OWLOntology ontology : ontologies) { annotationProperties.addAll(ontology.getAnnotationPropertiesInSignature()); } return annotationProperties; }
public Set<OWLAnnotationProperty> getReferencedAnnotationProperties(boolean includeImportsClosure) { if(!includeImportsClosure) { return getAnnotationPropertiesInSignature(); } Set<OWLAnnotationProperty> results = new HashSet<OWLAnnotationProperty>(); for(OWLOntology ont : getImportsClosure()) { results.addAll(ont.getAnnotationPropertiesInSignature()); } return results; }
public void importsClosureChanged() { for (OWLOntology ont : owlOntologyManager.getImportsClosure(ontology)) { for (OWLAnnotationProperty prop : ont.getAnnotationPropertiesInSignature()) { annotationPropertyIRIs.add(prop.getIRI()); } } }
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; }
@Override protected Set<OWLEntity> getEntitiesThatRequireNamespaces() { Set<OWLEntity> entities = new HashSet<OWLEntity>(); for(OWLObjectPropertyAssertionAxiom ax : getOntology().getAxioms(AxiomType.OBJECT_PROPERTY_ASSERTION)) { entities.addAll(ax.getProperty().getSignature()); } for(OWLDataPropertyAssertionAxiom ax : getOntology().getAxioms(AxiomType.DATA_PROPERTY_ASSERTION)) { entities.add(ax.getProperty().asOWLDataProperty()); } entities.addAll(getOntology().getAnnotationPropertiesInSignature()); return entities; }