答案 0 :(得分:0)
OWL语句只是RDF语句,它使用来自定义的OWL词汇表的谓词来(meta-)描述词汇表。
在RDF / XML中,它似乎是您的目标,下面是对象属性定义的示例。
<!-- http://jug.basistech.com/2011/01/rex-entity#withinOrganization -->
<owl:ObjectProperty rdf:about="&rex;withinOrganization">
<rdfs:label>withinOrganization</rdfs:label>
<rdfs:comment>Determines in which organization is the position</rdfs:comment>
<rdfs:domain rdf:resource="&rex;JobPosition"/>
<rdfs:range rdf:resource="&rex;Organization"/>
<rdfs:subPropertyOf rdf:resource="&rex;ruleRelationship"/>
</owl:ObjectProperty>
以上是原始三元组的一部分,在某些方面更清晰。
<http://jug.basistech.com/2011/01/rex-entity#withinOrganization>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2002/07/owl#ObjectProperty>
.
<http://jug.basistech.com/2011/01/rex-entity#withinOrganization>
<http://www.w3.org/2000/01/rdf-schema#label> "withinOrganization"
.
<http://jug.basistech.com/2011/01/rex-entity#withinOrganization>
<http://www.w3.org/2000/01/rdf-schema#comment>
"Determines in which organization is the position" .
实际上,如果您想构建Ontology,请下载Protege或TopBraid;如果您想在Java代码中执行此操作,请下载(例如)Jena。