public Set<OWLAnnotation> getAnnotations() { return ont.getAnnotations(); } }
public Set<OWLAnnotation> getAnnotations() { return ont.getAnnotations(); } }
@Override public List<OWLAnnotation> getItemsInOntology(OWLOntology subject, OWLOntology ontology, ShortFormProvider shortFormProvider, Comparator<OWLObject> comparator) { return Lists.newArrayList(ontology.getAnnotations()); }
@Override public void generateSearchMetadata(OWLOntology ontology, SearchMetadataImportContext context, SearchMetadataDB db) { for (OWLAnnotation annotation : ontology.getAnnotations()) { generateSearchMetadataForAnnotation(annotation, ontology, context, db); } }
@Override public void generateSearchMetadata(OWLOntology ontology, SearchMetadataImportContext context, SearchMetadataDB db) { for (OWLAnnotation annotation : ontology.getAnnotations()) { generateSearchMetadataForAnnotation(annotation, ontology, context, db); } }
@Override @Deprecated public Set<OWLAnnotation> getAnnotations(OWLAnnotationProperty annotationProperty) { return withReadLock(() -> delegate.getAnnotations(annotationProperty)); }
@Override @Deprecated public Set<OWLAnnotation> getAnnotations(OWLAnnotationProperty annotationProperty) { return withReadLock(() -> delegate.getAnnotations(annotationProperty)); }
@Override @Deprecated public Set<OWLAnnotation> getAnnotations(OWLAnnotationProperty annotationProperty) { return withReadLock(() -> delegate.getAnnotations(annotationProperty)); }
@Override protected SetOntologyAnnotationsResult createActionResult(ChangeApplicationResult<Set<OWLAnnotation>> changeApplicationResult, SetOntologyAnnotationsAction action, ExecutionContext executionContext, EventList<ProjectEvent<?>> eventList) { return new SetOntologyAnnotationsResult(rootOntology.getAnnotations(), eventList); } }
@Override public void generateSearchMetadata(OWLOntology ontology, SearchMetadataImportContext context, SearchMetadataDB db) { for (OWLAnnotation annotation : ontology.getAnnotations()) { generateSearchMetadataForAnnotation(annotation, ontology, context, db); } }
@Override @Deprecated public Set<OWLAnnotation> getAnnotations(OWLAnnotationProperty annotationProperty) { return withReadLock(() -> delegate.getAnnotations(annotationProperty)); }
private List<OWLOntologyChange> getChangesForOntologyAnnotations(OWLAnnotationValue value, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAnnotation annotation : ont.getAnnotations()) { if (annotation.getValue().equals(value)) { changes.add(new RemoveOntologyAnnotation(ont, annotation)); } } return changes; } }
private List<OWLOntologyChange> getChangesForOntologyAnnotations(OWLAnnotationProperty annotationProperty, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAnnotation annotation : ont.getAnnotations()) { if (annotation.getProperty().equals(annotationProperty)) { changes.add(new RemoveOntologyAnnotation(ont, annotation)); } } return changes; }
private List<OWLOntologyChange> getChangesForOntologyAnnotations(OWLAnnotationProperty annotationProperty, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAnnotation annotation : ont.getAnnotations()) { if (annotation.getProperty().equals(annotationProperty)) { changes.add(new RemoveOntologyAnnotation(ont, annotation)); } } return changes; }
private List<OWLOntologyChange> getChangesForOntologyAnnotations(OWLAnnotationValue value, OWLOntology ont) { List<OWLOntologyChange> changes = new ArrayList<>(); for (OWLAnnotation annotation : ont.getAnnotations()) { if (annotation.getValue().equals(value)) { changes.add(new RemoveOntologyAnnotation(ont, annotation)); } } return changes; } }
private void addAnnotations(List<OWLOntologyChange> changes) { for (OWLOntology o : getOWLModelManager().getReasoner().getRootOntology().getImportsClosure()) { for (OWLAnnotation annot : o.getAnnotations()) { changes.add(new AddOntologyAnnotation(exportedOntology, annot)); } for (OWLAnnotationAssertionAxiom axiom : o.getAxioms(AxiomType.ANNOTATION_ASSERTION)) { changes.add(new AddAxiom(exportedOntology, axiom)); } } }
private void addAnnotations(List<OWLOntologyChange> changes) { for (OWLOntology o : getOWLModelManager().getReasoner().getRootOntology().getImportsClosure()) { for (OWLAnnotation annot : o.getAnnotations()) { changes.add(new AddOntologyAnnotation(exportedOntology, annot)); } for (OWLAnnotationAssertionAxiom axiom : o.getAxioms(AxiomType.ANNOTATION_ASSERTION)) { changes.add(new AddAxiom(exportedOntology, axiom)); } } }
private void addAnnotations(List<OWLOntologyChange> changes) { for (OWLOntology o : getOWLModelManager().getReasoner().getRootOntology().getImportsClosure()) { for (OWLAnnotation annot : o.getAnnotations()) { changes.add(new AddOntologyAnnotation(exportedOntology, annot)); } for (OWLAnnotationAssertionAxiom axiom : o.getAxioms(AxiomType.ANNOTATION_ASSERTION)) { changes.add(new AddAxiom(exportedOntology, axiom)); } } }
private void addAnnotations(List<OWLOntologyChange> changes) { for (OWLOntology o : getOWLModelManager().getReasoner().getRootOntology().getImportsClosure()) { for (OWLAnnotation annot : o.getAnnotations()) { changes.add(new AddOntologyAnnotation(exportedOntology, annot)); } for (OWLAnnotationAssertionAxiom axiom : o.getAxioms(AxiomType.ANNOTATION_ASSERTION)) { changes.add(new AddAxiom(exportedOntology, axiom)); } } }
public String getOntologyLabel() { OWLAnnotationProperty labelProperty = factory.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI()); String ontologyLabel = StringUtils.EMPTY; for (OWLAnnotation annotation : ontology.getAnnotations()) { if (annotation.getProperty().equals(labelProperty) && annotation.getValue() instanceof OWLLiteral) { OWLLiteral val = (OWLLiteral) annotation.getValue(); ontologyLabel = val.getLiteral(); } } return ontologyLabel; }