以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 Semantic Web(语义Web)/描述逻辑/本体 』 (http://bbs.xml.org.cn/list.asp?boardid=2) ---- 请教:rdf:about, rdf:resource, rdf:ID 有什么区别 (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=27159) |
-- 作者:chris -- 发布时间:2/11/2006 10:46:00 AM -- 请教:rdf:about, rdf:resource, rdf:ID 有什么区别 谢谢指教 [此贴子已经被admin于2006-8-3 9:56:11编辑过]
|
-- 作者:jpz6311whu -- 发布时间:2/16/2006 6:13:00 PM -- 在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. |
-- 作者:superc_7 -- 发布时间:2/17/2006 7:10:00 PM -- 简单点说 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> |
-- 作者:admin -- 发布时间:2/17/2006 11:27:00 PM -- 谢谢二位的作答, 另外我再提供一个信息: 关于rdf:ID, rdf:about和rdf:resource的使用辨析,本版曾有过较为充分的讨论,请看: http://bbs.w3china.org/dispbbs.asp?boardID=2&replyID=28071&ID=11536&skin=1 |
-- 作者:wqb2005 -- 发布时间:9/6/2007 5:41:00 PM -- 推荐你个软件 软件下载地址www.pentedge.com, 这个网址提供软件的免费下载,并可以下载软件的帮助文档辅助软件的操作。 对此类软件感兴趣者可以联系我,我们共同讨论学习。 我的qq号:48868820 |
-- 作者:天山雪 -- 发布时间:12/5/2007 2:02:00 PM -- 向大家学习 |
-- 作者:sophytia -- 发布时间:12/28/2007 9:26:00 PM -- 向大家学习 |
-- 作者:sophytia -- 发布时间:12/28/2007 9:27:00 PM -- 向大家学习 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
62.500ms |