新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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等。
    [返回] 中文XML论坛 - 专业的XML技术讨论区W3CHINA.ORG讨论区 - Web新技术讨论『 Semantic Web(语义Web)/描述逻辑/本体 』 → 请教:rdf:about, rdf:resource, rdf:ID 有什么区别 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 30954 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 请教:rdf:about, rdf:resource, rdf:ID 有什么区别 举报  打印  推荐  IE收藏夹 
       本主题类别: 经典问答 | RDF/RDFS    
     chris 帅哥哟,离线,有人找我吗?
      
      
      威望:1
      等级:大四寒假(收到CMU的Offer啦)
      文章:359
      积分:1751
      门派:XML.ORG.CN
      注册:2006/1/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给chris发送一个短消息 把chris加入好友 查看chris的个人资料 搜索chris在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看chris的博客楼主
    发贴心情 请教:rdf:about, rdf:resource, rdf:ID 有什么区别

    谢谢指教


    [此贴子已经被admin于2006-8-3 9:56:11编辑过]

       收藏   分享  
    顶(0)
      




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

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客2
    发贴心情 
    在RDF primer的第三章有解释:http://www.w3.org/TR/rdf-primer/
    其中的对rdf:ID的解释:
    An important difference from previous examples is that, in line 5, the rdf:Description element has an rdf:ID attribute instead of an rdf:about attribute. Using rdf:ID specifies a fragment identifier, given by the value of the rdf:ID attribute (item10245 in this case, which might be the catalog number assigned by example.com), as an abbreviation of the complete URIref of the resource being described. The fragment identifier item10245 will be interpreted relative to a base URI, in this case, the URI of the containing catalog document. The full URIref for the tent is formed by taking the base URI (of the catalog), and appending the character "#" (to indicate that what follows is a fragment identifier) and then item10245 to it, giving the absolute URIref http://www.example.com/2002/04/products#item10245.

    The rdf:ID attribute is somewhat similar to the ID attribute in XML and HTML, in that it defines a name which must be unique relative to the current base URI (in this example, that of the catalog). In this case, the rdf:ID attribute appears to be assigning a name (item10245) to this particular kind of tent. Any other RDF/XML within this catalog could refer to the tent by using either the absolute URIref http://www.example.com/2002/04/products#item10245, or the relative URIref #item10245. The relative URIref would be understood as being a URIref defined relative to the base URIref of the catalog. Using a similar abbreviation, the URIref of the tent could also be given by specifying rdf:about="#item10245" in the catalog entry (i.e., by specifying the relative URIref directly) instead of rdf:ID="item10245" . As an abbreviation mechanism, the two forms are essentially synonyms: the full URIref formed by RDF/XML is the same in either case: http://www.example.com/2002/04/products#item10245. However, using rdf:ID provides an additional check when assigning a set of distinct names, since a given value of the rdf:ID attribute can only appear once relative to the same base URI (the catalog document, in this example). Using either form, example.com would be giving the URIref for the tent in a two-stage process, first assigning the URIref for the whole catalog, and then using a relative URIref in the description of the tent in the catalog to indicate the URIref that has been assigned to this particular kind of tent. Moreover, this use of a relative URIref can be thought of either as being an abbreviation for a full URIref that has been assigned to the tent independently of the RDF, or as being the assignment of the URIref to the tent within the catalog.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/16 18:13:00
     
     superc_7 帅哥哟,离线,有人找我吗?射手座1983-12-15
      
      
      威望:6
      等级:研一(彻夜钻研J2EE)
      文章:504
      积分:3396
      门派:XML.ORG.CN
      注册:2005/4/22

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给superc_7发送一个短消息 把superc_7加入好友 查看superc_7的个人资料 搜索superc_7在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给superc_7  引用回复这个贴子 回复这个贴子 查看superc_7的博客3
    发贴心情 
    简单点说
    rdf:about是rdf:description元素的一个属性,用来引用一个已存在的资源
    rdf:resource是属性名的属性,当一个属性的值是资源的时候,用它来引用这个资源
    例如:
    <rdf:Description about = "http://e.pku.edu.cn">
        <Creator rdf:resource = "http://www.pku.edu.en/LabId/1001"/>
    </rdf:Descritpion>
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/17 19:10:00
     
     admin 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      头衔:W3China站长
      等级:计算机硕士学位(管理员)
      文章:5255
      积分:18406
      门派:W3CHINA.ORG
      注册:2003/10/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给admin发送一个短消息 把admin加入好友 查看admin的个人资料 搜索admin在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 点击这里发送电邮给admin  访问admin的主页 引用回复这个贴子 回复这个贴子 查看admin的博客4
    发贴心情 
    谢谢二位的作答,
    另外我再提供一个信息:
    关于rdf:ID, rdf:about和rdf:resource的使用辨析,本版曾有过较为充分的讨论,请看:
    http://bbs.w3china.org/dispbbs.asp?boardID=2&replyID=28071&ID=11536&skin=1

    ----------------------------------------------

    -----------------------------------------------

    第十二章第一节《用ROR创建面向资源的服务》
    第十二章第二节《用Restlet创建面向资源的服务》
    第三章《REST式服务有什么不同》
    InfoQ SOA首席编辑胡键评《RESTful Web Services中文版》
    [InfoQ文章]解答有关REST的十点疑惑

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/17 23:27:00
     
     wqb2005 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:74
      门派:XML.ORG.CN
      注册:2007/9/6

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给wqb2005发送一个短消息 把wqb2005加入好友 查看wqb2005的个人资料 搜索wqb2005在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看wqb2005的博客5
    发贴心情 推荐你个软件
    软件下载地址www.pentedge.com, 这个网址提供软件的免费下载,并可以下载软件的帮助文档辅助软件的操作。
    对此类软件感兴趣者可以联系我,我们共同讨论学习。
    我的qq号:48868820
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/9/6 17:41:00
     
     天山雪 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(高数修炼中)
      文章:12
      积分:104
      门派:XML.ORG.CN
      注册:2007/7/23

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给天山雪发送一个短消息 把天山雪加入好友 查看天山雪的个人资料 搜索天山雪在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看天山雪的博客6
    发贴心情 
    向大家学习

    ----------------------------------------------
    基于ontology的空间数据集成研究

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/12/5 14:02:00
     
     sophytia 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:6
      积分:91
      门派:XML.ORG.CN
      注册:2007/7/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给sophytia发送一个短消息 把sophytia加入好友 查看sophytia的个人资料 搜索sophytia在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看sophytia的博客7
    发贴心情 
    向大家学习
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/12/28 21:26:00
     
     sophytia 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:6
      积分:91
      门派:XML.ORG.CN
      注册:2007/7/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给sophytia发送一个短消息 把sophytia加入好友 查看sophytia的个人资料 搜索sophytia在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看sophytia的博客8
    发贴心情 
    向大家学习
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/12/28 21:27:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/11 13:38:03

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

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