RDF(S)入门教程

标签:, , ,

这篇入门教程出自曼彻斯特大学的一个讲座,本人已经进行了简单的翻译工作,对于初学者学习RDF(S)和OWL非常有帮助,需要的朋友留下邮件,我会将原版发给您们

RDF(S)快速入门


Ontology(本体)

下面是关于本体的几个定义:
- Borrowed from philosophy - the study of “The nature of being”(来源于哲学的概念)
- “A specification of a conceptualisation” [Gruber](对一个概念的定义)
- In general, an ontology provides a mechanism to capture information about the objects and the relationships that hold between them in some domain of interest.(通常,一个本体提供,获取对象信息和这些对象之间的联系,这样一种机制,而这些对象往往在同一个我们感兴趣的领域中)


RDF - Resource Description Framework(资源描述框架)

- RDF is a graphical language used for representing information about resources on the web. It is a basic ontology language.(RDF 是一种图形化的语言,用来表达web资源的信息,是一种本体的基本语言)
- Resources are described in terms of properties and property values using RDF statements.(RDF用一种描述语言把web资源刻画成,属性与属性的值)
- Statements are represented as triples, consisting of a subject, predicate and object. [S, P, O](这种描述语言用一个三元组来表达,由主体,谓词,客体所组成)


RDF Example

- Subject: Nick(主体:Nick)
- Predicate: hasColleague(谓词:有一个同事)
- Object: Matthew(客体 Matthew)


Naming Resources In RDF(网络的资源纷繁复杂,如果确定一个资源是第一无二的呢?就需要一个标识,ID号——用RDF来标识资源)
- RDF uses URIs - Unique Resource Identifiers to identify resources.(RDF用URIs来定位标识资源)
Actually, to be more precise RDF uses URIRefs to identify resources.A URIRef consists of a URI and an optional Fragment Identifier separated from the URI by the hash symbol #.(但在实际应用中,RDF更多是使用URIRefs来标识资源的。URIRefs是由URI本身和一个可选的片段标识所组成,它们两者由#分开)
http://www.co-ode.org/people#hasColleague

这里我解释下,在RDF中,URIRefs仅仅用来标识资源,它不具有推理关系,比如:
http://www.co-ode.org/people.html#hasColleague
http://www.co-ode.org/people.html
上面2者没有任何关系,或许,http://www.co-ode.org/people这个文档里面有hasColleague这么一个资源,但是仅仅是我们人在这么认为,RDF只把它们2个当作2个资源。什么意思?我们人,为了图方便,会把很多资源定义在一个文档里面,这个时候就用这个文档URI加上#,再加上片段标识来表示。如果不那样的话,我们就需要这样来做
http://www.co-ode.org/hasColleague.html
http://www.co-ode.org/people.html
可见,这样就定了2个文档了,一个领域里面可能有上万个词汇,那岂不是有上万个文件?呵呵,我这么打比方只是为了突出这个意思。


Vocabularies——A set of URIRefs is known as a vocabulary(一系列的URIRefs被称作一套词汇)
- The RDF Vocabulary - The set of URIRefs used in descibing the RDF concepts e.g. rdf:Property,rdf:Resource, rdf:type. (RDF词汇——一套用来表达RDF概念的词汇)
- The RDFS Vocabulary - The set of URIRefs used in describing the RDF Schema langauge e.g. rdfs:Class, rdfs:domain (RDFS词汇——一套用来表达RDF Schema的词汇)
- The ‘Pizza Ontology’ Vocabulary - pz:hasTopping,pz:Pizza, pz:VegetarianPizza

注意上面rdf:rdfs:pz:等写法,就是URIRefs的缩写而已

页面: 1 2 3 4


相关日志



已经有6个留言

  1. alisayue Says @ 08-06-26 5:46 am

    您好!能否把这个入门教程的原版发给我,多谢!

  2. alisayue Says @ 08-06-26 5:47 am

    刚发现留言不显示EMAIL地址,补加alisayue@gmail.com

  3. 匿名 Says @ 08-09-6 1:46 pm

    好文章呀

  4. 匿名 Says @ 08-09-6 1:48 pm

    能产能把文章给我发一份呀,谢谢
    c.y.zh.sunny@gmail.com

  5. 匿名 Says @ 08-09-7 5:07 pm

    这篇文章的下载
    http://www.crabone.com/index.php/download/16/

  6. zhxiaomiao Says @ 08-10-16 2:11 am

    您好看了您写的这几篇文章,收获颇丰,真诚的感激你 谢谢!




留言