title: How to get annotations of object property assertions using OWL API
body: <p>Assume the following example (see image below): an individual "bmw-x5" has the object property assertion "has-type car". This object property has an annotation property "wheels" with value "4".</p>
  
  <p>Using OWL API, I managed to get the individual "bmw-x5", the object property assertion "hastype car". I am now stuck with the annotation property "wheels". How can I get its value from the OWL API?</p>
  
  <pre><code>    &lt;ObjectPropertyAssertion&gt;
          &lt;Annotation&gt;
              &lt;AnnotationProperty IRI="#wheels"/&gt;
              &lt;Literal datatypeIRI="&amp;rdf;PlainLiteral"&gt;4&lt;/Literal&gt;
          &lt;/Annotation&gt;
          &lt;ObjectProperty IRI="#has-type"/&gt;
          &lt;NamedIndividual IRI="#bmw-x5"/&gt;
          &lt;NamedIndividual IRI="#car"/&gt;
      &lt;/ObjectPropertyAssertion&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Im2vP.png" alt="enter image description here"></p>