新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论Semantic Web(语义Web,语义网或语义万维网, Web 3.0)及相关理论,如:Ontology(本体,本体论), OWL(Web Ontology Langauge,Web本体语言), Description Logic(DL, 描述逻辑),RDFa,Ontology Engineering等。
    [返回] 计算机科学论坛W3CHINA.ORG讨论区 - Web新技术讨论『 Semantic Web(语义Web)/描述逻辑/本体 』 → racer如何推理对于等于关系 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2974 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: racer如何推理对于等于关系 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     panye123 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究C++)
      文章:10
      积分:214
      门派:XML.ORG.CN
      注册:2005/5/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给panye123发送一个短消息 把panye123加入好友 查看panye123的个人资料 搜索panye123在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看panye123的博客楼主
    发贴心情 racer如何推理对于等于关系

    在构建的本体中需要表示8<=floor<=12,在使用racer推理时,出现警告 。请问高手如何表示floor这样的语句。

       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/19 19:00:00
     
     feixu0379 美女呀,离线,快来找我吧!
      
      
      等级:大二(研究汇编)
      文章:23
      积分:236
      门派:XML.ORG.CN
      注册:2006/6/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给feixu0379发送一个短消息 把feixu0379加入好友 查看feixu0379的个人资料 搜索feixu0379在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看feixu0379的博客2
    发贴心情 
    以下是引用panye123在2007-4-19 19:00:00的发言:
    在构建的本体中需要表示8<=floor<=12,在使用racer推理时,出现警告 。请问高手如何表示floor这样的语句。

    请问你在本体中怎样表示这种关系呢??

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/19 20:29:00
     
     piaor_123 美女呀,离线,快来找我吧!
      
      
      等级:大一(高数修炼中)
      文章:26
      积分:182
      门派:W3CHINA.ORG
      注册:2007/1/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给piaor_123发送一个短消息 把piaor_123加入好友 查看piaor_123的个人资料 搜索piaor_123在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给piaor_123 引用回复这个贴子 回复这个贴子 查看piaor_123的博客3
    发贴心情 
    我觉得在本体中是不是要用Cardinality Restrictions来表示?貌似是最值约束……
    建立约束>=minCardinality,和<=maxCardinality
    不知道我的想法有没有问题,我也刚学protege,望高手指教~

    ----------------------------------------------
    Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them.The longer we dwell on our misfortunes, the greater is their power to harm us.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/23 13:57:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客4
    发贴心情 
    Cardinality是指属性个数约束,并不是属性值约束:
    A cardinality constraint puts constraints on the number of values a property can take, in the context of this particular class description. For example, we might want to say that for a soccer team the hasPlayer property has 11 values. For a basketball team the same property would have only 5 values.

    3.1.2.2 Cardinality constraints
    In OWL, like in RDF, it is assumed that any instance of a class may have an arbitrary number (zero or more) of values for a particular property. To make a property required (at least one), to allow only a specific number of values for that property, or to insist that a property must not occur, cardinality constraints can be used. OWL provides three constructs for restricting the cardinality of properties locally within a class context.

    NOTE: OWL Lite includes the use of all three types of cardinality constraints, but only when used with the values "0" or "1".

    3.1.2.2.1 owl:maxCardinality
    The cardinality constraint owl:maxCardinality is a built-in OWL property that links a restriction class to a data value belonging to the value space of the XML Schema datatype nonNegativeInteger. A restriction containing an owl:maxCardinality constraint describes a class of all individuals that have at most N semantically distinct values (individuals or data values) for the property concerned, where N is the value of the cardinality constraint. Syntactically, the cardinality constraint is represented as an RDF property element with the corresponding rdf:datatype attribute.

    The following example describes a class of individuals that have at most two parents:

    <owl:Restriction>
      <owl:onProperty rdf:resource="#hasParent" />
      <owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">2</owl:maxCardinality>
    </owl:Restriction>

    RDF datatyping is discussed in more detail in Sec. 6.

    3.1.2.2.2 owl:minCardinality
    The cardinality constraint owl:minCardinality is a built-in OWL property that links a restriction class to a data value belonging to the value space of the XML Schema datatype nonNegativeInteger. A restriction containing an owl:minCardinality constraint describes a class of all individuals that have at least N semantically distinct values (individuals or data values) for the property concerned, where N is the value of the cardinality constraint. Syntactically, the cardinality constraint is represented as an RDF property element with the corresponding rdf:datatype attribute.

    The following example describes a class of individuals that have at least two parents:

    <owl:Restriction>
      <owl:onProperty rdf:resource="#hasParent" />
      <owl:minCardinality rdf:datatype="&xsd;nonNegativeInteger">2</owl:minCardinality>
    </owl:Restriction>

    Note that an owl:minCardinality of one or more means that all instances of the class must have a value for the property.

    3.1.2.2.3 owl:cardinality
    The cardinality constraint owl:cardinality is a built-in OWL property that links a restriction class to a data value belonging to the range of the XML Schema datatype nonNegativeInteger. A restriction containing an owl:cardinality constraint describes a class of all individuals that have exactly N semantically distinct values (individuals or data values) for the property concerned, where N is the value of the cardinality constraint. Syntactically, the cardinality constraint is represented as an RDF property element with the corresponding rdf:datatype attribute.

    This construct is in fact redundant as it can always be replaced by a pair of matching owl:minCardinality and owl:maxCardinality constraints with the same value. It is included as a convenient shorthand for the user.

    The following example describes a class of individuals that have exactly two parents:

    <owl:Restriction>
      <owl:onProperty rdf:resource="#hasParent" />
      <owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">2</owl:cardinality>
    </owl:Restriction>

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/23 16:53:00
     
     piaor_123 美女呀,离线,快来找我吧!
      
      
      等级:大一(高数修炼中)
      文章:26
      积分:182
      门派:W3CHINA.ORG
      注册:2007/1/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给piaor_123发送一个短消息 把piaor_123加入好友 查看piaor_123的个人资料 搜索piaor_123在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给piaor_123 引用回复这个贴子 回复这个贴子 查看piaor_123的博客5
    发贴心情 
    那应该用什么表示属性值约束,请指教……

    ----------------------------------------------
    Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them.The longer we dwell on our misfortunes, the greater is their power to harm us.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/23 18:55:00
     
     piaor_123 美女呀,离线,快来找我吧!
      
      
      等级:大一(高数修炼中)
      文章:26
      积分:182
      门派:W3CHINA.ORG
      注册:2007/1/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给piaor_123发送一个短消息 把piaor_123加入好友 查看piaor_123的个人资料 搜索piaor_123在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给piaor_123 引用回复这个贴子 回复这个贴子 查看piaor_123的博客6
    发贴心情 
    请问,我刚在教材上看见描述三角形的本体,其中Asserted Conditions 里面有hasSide=3,hasAngle=3,这是描述属性的个数吗?还是描述属性值?
    如果照这样写,楼主的8<=floor<=12是否可以改成:hasFloor>=8,hasFloor<=12?
    只不过Floor是class,hasFloor是property。

    ----------------------------------------------
    Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them.The longer we dwell on our misfortunes, the greater is their power to harm us.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/24 15:51:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客7
    发贴心情 
    请楼上把三角形本体rdf/owl文件贴出来看看
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/24 22:30:00
     
     wizardnjau 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究汇编)
      文章:38
      积分:256
      门派:W3CHINA.ORG
      注册:2006/4/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给wizardnjau发送一个短消息 把wizardnjau加入好友 查看wizardnjau的个人资料 搜索wizardnjau在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看wizardnjau的博客8
    发贴心情 
    属性值的约束最好是用rule文件实现
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/25 8:39:00
     
     piaor_123 美女呀,离线,快来找我吧!
      
      
      等级:大一(高数修炼中)
      文章:26
      积分:182
      门派:W3CHINA.ORG
      注册:2007/1/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给piaor_123发送一个短消息 把piaor_123加入好友 查看piaor_123的个人资料 搜索piaor_123在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给piaor_123 引用回复这个贴子 回复这个贴子 查看piaor_123的博客9
    发贴心情 
    我是在ProtegeOWLTutorial.pdf看到的,在第99页。

    ----------------------------------------------
    Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them.The longer we dwell on our misfortunes, the greater is their power to harm us.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/28 20:10:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给Google AdSense 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/10/13 4:42:49

    本主题贴数9,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    125.000ms