小编Özg*_*lut的帖子

如何在OWL-RDF/XML语法中描述包含inverseOf属性的属性?

我有对象属性命名employ,employedBy因为它们是彼此相反的.如何将这些属性提供给实例?我的employ财产:

<owl:ObjectProperty rdf:ID="employ">
  <rdf:type rdf:resource="http://rdf.pozitron.com/organizations/" />
  <rdfs:domain rdf:resource="http://rdf.pozitron.com/organizations/"/>
  <rdfs:range rdf:resource="http://rdf.pozitron.com/people/"/>
</owl:ObjectProperty>
Run Code Online (Sandbox Code Playgroud)

我的employedBy财产:

<owl:ObjectProperty rdf:ID="employedBy">
  <rdf:type rdf:resource="http://rdf.pozitron.com/people/" />
  <owl:inverseOf rdf:resource="#Employ" />
  <rdfs:domain rdf:resource="http://rdf.pozitron.com/people/"/>
  <rdfs:range rdf:resource="http://rdf.pozitron.com/organizations/"/>
</owl:ObjectProperty>
Run Code Online (Sandbox Code Playgroud)

现在如何描述employemployedBy在这种情况下?假设Pozitron雇用约翰,约翰受雇于Pozitron.

<rdf:Description rdf:about="http://rdf.pozitron.com/people/john">
  <rdf:type rdf:resource="http://rdf.pozitron.com/people/"/>
  <person:personName>John</person:personName>
  <organization:organizationName>Pozitron</organization:organizationName>
</rdf:Description>
Run Code Online (Sandbox Code Playgroud)

rdf semantic-web owl

2
推荐指数
1
解决办法
978
查看次数

标签 统计

owl ×1

rdf ×1

semantic-web ×1