打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
中国XML论坛--RDF与XML的区别是什么(补充)?
继续补充:RDF 相比于XML的一个很大的有点是它的语法自由,它不像XML有个XML Schema来约束它的语法,这使得RDF具有良好得互操作性。 

 

   It‘s best to tend to think of RDF as what it is: another language, just as SVG is, rather than viewing it simply as XML surrounded in rdf:RDF tags.

    With XML, you expect to get a tree with its elements in a predictable order. If an expected element is missing, then it tends to render your whole XML document invalid with respect to the schema you are using. If an element you don‘t expect to be there is present, then again your document becomes invalid. With RDF, you have no particular expectations; if the particular strand of spaghetti you‘re looking for isn‘t there, the rest of the ball remains. If there are new strands you don‘t expect, you won‘t even notice their presence if you don‘t go looking for them.

   The big advantage of being failure-friendly is the enhancement of interoperability. Consider what happens if you add a new property to your description of my weblog and it becomes like this: 
 <rdf:Description rdf:about="‘ target=_blank href_cetemp=‘http://usefulinc.com/edd/blog">‘>http://usefulinc.com/edd/blog">
   <dc:title>Behind the times</dc:title>
   <example:coolness>10</example:coolness>
 </rdf:Description>
My "find the title" processor can still deal with your description just fine, as all it cares about is the dc:title property. All RDF processors are automatically future compatible, and all RDF descriptions are automatically backwards compatible. This is a huge benefit over traditional XML processing.

参考:
【1】 Edd Dumbill Sticking with it -- RDF http://usefulinc.com/edd/blog/contents/2003/08/08-whyrdf/read
【2】 Missing isn‘t broken: data validation and freedom on the Semantic Web http://rdfweb.org/mt/foaflog/archives/000047.html

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
LINQ TO XML C#实例 类和XML文件互转换
XML RDF——实现Web数据基于语义的描述
delphi操作xml学习笔记 之二 简单读写
元数据探讨 @ Metadata, Digital Library and SW
JS-RDF: XML Parser tests
何为OPML?OPML文档样式。
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服