I have a .owl file with the syntax like this:
<AnnotationAssertion>
<AnnotationProperty abbreviatedIRI="iri_of_annotation"/>
<IRI>subject</IRI>
<IRI>object</IRI>
</AnnotationAssertion>
So I can get the annotations of an individual:
OWLAnnotationProperty prop = factory.getAnnotationProperty(IRI.create("iri_of_annotation"));
individual.getAnnotations(ontology, prop);
This will return a list of annotations where the subject of each one will be the individual and the value is like in the example file object and works as expected.
But what I need is somehow get a list where the value of the annotation is the individual's IRI and the subject will be for example like in the file subject.
Thanks in advance!