以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  [求助]规则(hasChild>=1)(?x)->Parent(?x)为什么不好用啊  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=128033)


--  作者:mxwdlmu
--  发布时间:12/31/2013 11:56:00 PM

--  [求助]规则(hasChild>=1)(?x)->Parent(?x)为什么不好用啊

各位前辈,最近在学习SWRL相关内容,有篇文档介绍到一个例子如下

     SWRL also supports the use of OWL class expressions (also known as class descriptions) in rules. For example, a rule that  classifies an individual as a parent if it is a member of a class with a hasChild property with a minimum cardinality of one can be written as follows:     

(hasChild >= 1)(?x) -> Parent(?x)

我使用protege3.4.4
OWL文件是family.swrl.owl(可在protege library 中下载,或以下网址http://protege.cim3.net/file/pub/ontologies/family.swrl.owl/family.swrl.owl)

在SWRL rule窗体中编辑(hasChild >= 1)(?x) -> Parent(?x) 时,一直报错,无语了。。不知道怎么搞啊,救命啊。。。


--  作者:mxwdlmu
--  发布时间:1/1/2014 2:35:00 PM

--  
怎么没人回复,哪位高人现身解救我啊。。。
--  作者:zhouliang588
--  发布时间:3/17/2014 10:45:00 PM

--  
这条规则错误也太多了点吧。。。
--  作者:zhouliang588
--  发布时间:3/17/2014 11:22:00 PM

--  
(hasChild >= 1)(?x) -> Parent(?x)   这也是SWRL规则?
Person(?x)^ haschild(?x,?y)^swrlb:greaterThanOrEqual(?y,1) -> Parent(?x)

其中Parent和 Person是2个类,haschild是Parent的数据属性


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