次の例を想定します (下の画像を参照): 個体 "bmw-x5" はオブジェクト プロパティ アサーション "has-type car" を持っています。このオブジェクト プロパティには、値が「4」の注釈プロパティ「wheels」があります。
OWL API を使用して、オブジェクト プロパティ アサーション「hastype car」である個別の「bmw-x5」を取得することができました。私は今、注釈プロパティ「ホイール」にこだわっています。OWL APIからその値を取得するにはどうすればよいですか?
<ObjectPropertyAssertion>
<Annotation>
<AnnotationProperty IRI="#wheels"/>
<Literal datatypeIRI="&rdf;PlainLiteral">4</Literal>
</Annotation>
<ObjectProperty IRI="#has-type"/>
<NamedIndividual IRI="#bmw-x5"/>
<NamedIndividual IRI="#car"/>
</ObjectPropertyAssertion>