以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  怎样描述一个父亲的年龄大于50岁?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=23052)


--  作者:lngxt
--  发布时间:10/14/2005 11:09:00 AM

--  怎样描述一个父亲的年龄大于50岁?
怎样描述一个父亲的年龄大于50岁?
  <owl:Class rdf:ID="Father">

    <rdfs:label xml:lang="en">Father</rdfs:label>

    <rdfs:subClassOf rdf:resource="#Person"/>

    <rdfs:subClassOf>

      <owl:Restriction>
        <owl:onProperty>

          <owl:DatatypeProperty rdf:ID="hasAge"/>

        </owl:onProperty>

        <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#int">50</owl:minCardinality>

/*
觉得上面这样做不对,这只能说明hasAage属性至少有50个int型实例,不知道我的观点是不是正确。要怎么样才能表示年龄>50呢?
*/


      </owl:Restriction>

    </rdfs:subClassOf>

  </owl:Class>
…………………………

  <owl:DatatypeProperty rdf:about="#hasAge">

    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>

    <rdfs:domain rdf:resource="#Father"/>

  </owl:DatatypeProperty>


即便如此,使用race 检验一致性是出现warning:
Not able to convert datatype property cardinality restrictins
to DIG(the lanuage used to communicate with the reasoner).
ignoring this restriction and attempting to continue.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms