以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 RSS/FOAF/Dublin Core/CIM/PRISM/Gene Ontology 』  (http://bbs.xml.org.cn/list.asp?boardid=3)
----  RDF与XML的区别是什么?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=3&rootid=&id=6549)


--  作者:RDF(S)
--  发布时间:4/7/2004 10:43:00 PM

--  RDF与XML的区别是什么?
请大家帮帮忙啊 !救命啊,问题不出来我会死的啊!
请各路英雄提供一些资料啊@!
--  作者:jcp0326
--  发布时间:5/1/2004 4:28:00 PM

--  
1.RDF模式和XML模式是不同的
XML数据模式是一个文本可扩展语言,相比之下,RDF有一个非常简单的模式,即二元关系模式。当然,任何的RDF声明形式都可以用XML来表示,但XML是被设定为固定的、树状的文本,在描述数据元上缺乏一定的灵活性。RDF模式却是有足够的灵活来描述这种主观的、分布式的、用不同形式来表达的元数据。
2.RDF和XML所使用的资源不同
XML中所谈到的节点,是XML文档中的节点,尤其是在文档结构中特定之处。在RDF中,节点不在是节点本身了,而是任何其他可用URIS标识的资源,因此RDF是一种元数据语言。
3.XML Schema和RDF的语意不同
    XML Schema最初的语意解释是限制在XML文档中的,它是隐含的。RDF原本就是语意解释,用于对那些不能够用树形结构来很好建模的知识进行建模。总之,XML/XML Schema是数据建模语言,RDF是元数据建模语言,当元数据需要编码成数据时,XML语法就非常的有用,如果纯用XML语言来进行元数据建模那么在灵活性就会受到阻碍。

--  作者:baojie
--  发布时间:5/5/2004 1:27:00 PM

--  
说得很好
--  作者:RDF(S)
--  发布时间:5/29/2004 9:33:00 PM

--  
辛苦楼上回帖了,3Q!
--  作者:orangebench
--  发布时间:5/30/2004 11:29:00 AM

--  
可以参考 Why RDF model is different from the XML model
http://www.w3.org/DesignIssues/RDF-XML.html

另外,参考: bulding the semantic web on XML ; Yin/Yang web.  google...
最本质的区别如楼上所述:XML的语义是隐含在文档的标记和结构中的,不能表达机器
可理解的语义。


--  作者:Gibeon
--  发布时间:5/31/2004 2:17:00 PM

--  
orangebench,看过yin/yang那片文章后有什么感想啊,你认为他们那么做的意义很重大吗?
--  作者:orangebench
--  发布时间:5/31/2004 2:28:00 PM

--  
我认为Yin/Yang web 是一篇很有意思的文章,虽然文笔不怎样。它理论上很漂亮,但实际中
用途不大。Yin/yang web理论的缺点
a)XML由于没有规范表达语义的方式和隐式的方式,表达语义是很随意的,直接给出的语义很难与作者的intended meaning符合,如把元素解释为一个类的实例,
b)局限与XML的文档结构,如属性节点必须和父节点具有属性,过多的关系。
c)无法表示隐式的表示和有条件的表示
d)不具有通用性:对RDF/XML,需要定义一套语义,特别是对RDF中的一些词汇,对其他的XML格式,如XMI,Topic Map XML, 【Conceptual Modeling and XML】

我最近写了一篇文章,就是扩展Yin/Yang Web的,有兴趣看的话,留个email. 希望您能给我一些comments.


--  作者:Gibeon
--  发布时间:5/31/2004 2:38:00 PM

--  
好啊,课题要做本体相关的方向了,以后多交流。wug@keg.cs.tsinghua.edu.cn
--  作者:boxs
--  发布时间:6/11/2004 8:37:00 PM

--  
to orangebench:想看你的文章,谢谢
yangjunke@126.com
--  作者:orangebench
--  发布时间:6/25/2004 3:09:00 AM

--  
再补充一些 RDF 和 XML的区别

1) XML有XML Schema约束它的语法结构,而RDF的语法虽然是XML格式,但并没有XML Schema来约束它的结构,而RDF Schema是解释性的 ,即解释RDF 中的词汇的意义。

2) RDF可以看成一种Web知识表示语言,或者说一个逻辑语言,有形式化的语法,模型论语义,证明论,还有完全性,可靠性定理,总之,是个完备的形式化系统。 而XML只是一种用于
描述语法的语言,即其他语言的语法都可以是基于XML。

3)RDF文件可以被合并,聚集,而XML文件的合并和聚集,有谁知道吗?

4)RDF的数据模型是 无序的边带有标识的有向图,XML的数据模型是有序的节点带有标识的树

。。。。。
欢迎大家见仁见智,多多补充。


--  作者:jscript
--  发布时间:7/8/2004 7:58:00 PM

--  
to orangebench:我也想看你的文章,谢谢
escript@msn.com
--  作者:orangebench
--  发布时间:7/14/2004 10:54:00 AM

--  
继续补充: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="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


--  作者:happyer
--  发布时间:7/19/2004 11:01:00 PM

--  
学到不少东东,谢谢各位楼上客!
--  作者:大笨熊
--  发布时间:7/26/2004 9:11:00 AM

--  
好啊,学习中
--  作者:大笨熊
--  发布时间:7/26/2004 9:13:00 AM

--  
顺便问一下,RDF字面如何解释?
--  作者:大笨熊
--  发布时间:7/26/2004 9:13:00 AM

--  
顺便问一下,RDF字面如何解释?
--  作者:monbit
--  发布时间:7/30/2004 4:42:00 PM

--  
RDF就是Resource Description Framework(我没记错吧:>),即资源描述框架

--  作者:wenmier
--  发布时间:8/11/2004 11:06:00 AM

--  
to orangebench:我也看看,谢谢
superwm_9@hotmail.com
--  作者:orangebench
--  发布时间:8/11/2004 8:31:00 PM

--  
RDF比XML好的一个地方:RDF可以合并,聚集!

Justification for doing this as RDF rather XML, in one line?

there's no algorithm for merging 2 random XML docs (but there is for RDF/XML)/

http://rdfweb.org/pipermail/rdfweb-dev/2003-July/011457.html


--  作者:orangebench
--  发布时间:8/11/2004 8:56:00 PM

--  
SW版上有我上传的电子版
以下是引用wenmier在2004-8-11 11:06:13的发言:
to orangebench:我也看看,谢谢
superwm_9@hotmail.com


--  作者:orangebench
--  发布时间:8/11/2004 8:59:00 PM

--  
http://www.w3.org/2001/06/rdf-xproc/1

A story about RDF and XML

1.XML Documents represent the XML Infoset; RDF graphs represent what those Infosets are trying to tell us about objects, their inter-relationships and properties.

2.RDF gives us a model for namespace mixing and data merging:

There is no algorithm for merging two XML Infosets, to enable us to pool knowledge acquired from diverse sources. The RDF information model, by constrast, was designed with data aggregation (rather than structured documents) in mind. Merging RDF data is trivial: add the triples extracted from two RDF/XML documents, and store them in a new one.

3.RDF views of the Infoset are explicit about the information we can throw away:

Transforming Infosets into their RDF graph allows us to throw away irrelevant information, such as the aspects of the Infoset concerned with preserving a representation of document ordering. When we define transformations from an XML Infoset into RDF, we show XML processors which parts of the Infoset can be discarded without losing the essence of the message encoded in that XML.



--  作者:snowwolf
--  发布时间:8/14/2004 8:03:00 AM

--  
XML是一种数据交换格式
RDF是一种知识表达语言。RDF有多种语法,如RDF图,N3, RDF/XML等(XML只是RDF的一种可选书写方式)。
RSS是一种描述站点信息的格式。有多种相互竞争的版本,他们的主要差别是支持的术语表不同(但大同小异)以及书写格式不同。W3C的RSS标准是采用RDF作为其格式的。

说RSS是RDF的子集,是强调RDF可用于描述很多知识,而RSS是其中一种;
说RDF是RSS的子集,是强调RSS可以用多种格式来写,而RDF只是其中一个可选的格式。


--  作者:hihi
--  发布时间:8/16/2004 4:57:00 PM

--  
to orangebench:您好,
可以参考一下您的文章吗
谢谢。
e-mail:  hihi_123@hotmail.com
--  作者:jhnwu
--  发布时间:8/16/2004 5:21:00 PM

--  
好呀 ,我很感兴趣,谢谢
jhnwu@126.com
--  作者:orangebench
--  发布时间:8/23/2004 4:01:00 PM

--  
http://bbs.xml.org.cn/dispbbs.asp?boardID=2&ID=9094

有我上传的电子版,请不吝指教。


--  作者:yina
--  发布时间:12/14/2004 11:16:00 AM

--  
哭ing,我怎么不能下载呢,能否麻烦斑竹发到我的email里呀,yina20000@sina.com.cn
谢谢
--  作者:linjj1982
--  发布时间:4/15/2005 1:19:00 PM

--  
不错,我这个菜鸟学到了很多东西
--  作者:superc_7
--  发布时间:4/26/2005 9:13:00 AM

--  
XML和RDF是两个层面的东西,可比性不是很大
本质上XML一种信息交换语言,是语义网的基础层面的编码书写工具
RDF是更高级的建模语言,由于表现各种资源及其间语义关系
两者的联系在于RDF可以用XML语法书写,但RDF也可以通过其他方式表达
--  作者:marker
--  发布时间:9/19/2005 4:09:00 PM

--  
那么?RSS得用作用呢?
似乎在有些网站中并没有存在的必要!
我感觉好像有点是故弄玄虚!
也许是我还不知道是有什么呢用吧!
--  作者:marker
--  发布时间:9/19/2005 4:10:00 PM

--  
那么?RSS得用作用呢?
似乎在有些网站中并没有存在的必要!
我感觉好像有点是故弄玄虚!
也许是我还不知道是有什么呢用吧!
--  作者:yky
--  发布时间:12/6/2005 1:32:00 PM

--  
XML的关系是不明确的,
RDF的关系是通过边表达出来的!
--  作者:yyy6210
--  发布时间:1/3/2006 9:41:00 AM

--  
多谢了~~~~~~
--  作者:devil
--  发布时间:5/9/2006 9:34:00 PM

--  
devil_8211@hotmail.com
现在在做知识查询方向,希望高手指点
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
203.125ms