我的本体中有owl类,我想在xsd:maxInclusive标签中检索值。换句话说,我想在hasCharacterCount属性下获得值'150'。我怎样才能完成这项任务?我尝试使用jena api,但我只能获得类名和属性名称。
<owl:Class rdf:about="http://www.semanticweb.org/ontologies/research/mid-review#Abstract">
<owl:equivalentClass>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/ontologies/research/mid-review#hasCharacterCount"/>
<owl:someValuesFrom>
<rdfs:Datatype>
<owl:onDatatype rdf:resource="&xsd;integer"/>
<owl:withRestrictions rdf:parseType="Collection">
<rdf:Description>
<xsd:maxInclusive rdf:datatype="&xsd;integer">150</xsd:maxInclusive>
</rdf:Description>
</owl:withRestrictions>
</rdfs:Datatype>
</owl:someValuesFrom>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.semanticweb.org/ontologies/research/mid-review#hasCharacterCount"/>
<owl:someValuesFrom>
<rdfs:Datatype>
<owl:onDatatype rdf:resource="&xsd;integer"/>
<owl:withRestrictions rdf:parseType="Collection">
<rdf:Description>
<xsd:maxInclusive rdf:datatype="&xsd;integer">200</xsd:maxInclusive>
</rdf:Description>
</owl:withRestrictions>
</rdfs:Datatype>
</owl:someValuesFrom>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>