导读 RDF 使用 Web 标识符 (URIs) 来标识资源。RDF 使用属性和属性值来描述资源。

RDF 资源、属性和属性值

RDF 使用 Web 标识符来标识事物,并通过属性和属性值来描述资源。

对资源、属性和属性值的解释:

  1. 资源是可拥有 URI 的任何事物,比如 "https://www.runoob.com//rdf"
  2. 属性是拥有名称的资源,比如 "author" 或 "homepage"
  3. 属性值是某个属性的值,比如 "David" 或 "https://www.runoob.com/" (请注意一个属性值可以是另外一个资源)

下面的 RDF 文档可描述资源 "https://www.runoob.com//rdf":

<?xml version="1.0"?>
<RDF>
 
<Description about="https://www.runoob.com//rdf">
<author>Jan Egil Refsnes</author>
<homepage>https://www.runoob.com/</homepage>
</Description>
</RDF>

上面是一个简化的例子。命名空间被忽略了。

RDF 陈述

资源、属性和属性值的组合可形成一个陈述(被称为陈述的主体、谓语和客体)。

请看一些陈述的具体例子,来加深理解:

陈述:"The author of https://www.runoob.com//rdf is David."

  1. 陈述的主体是:https://www.runoob.com//rdf
  2. 谓语是:author
  3. 客体是:David

陈述:"The homepage of https://www.runoob.com//rdf is https://www.runoob.com/".

  1. 陈述的主体是:https://www.runoob.com//rdf
  2. 谓语是:homepage
  3. 客体是:https://www.runoob.com/

原文来自:https://www.runoob.com/rdf/rdf-rules.html

本文地址:https://www.linuxprobe.com/the-rdf-rules.html编辑:王浩,审核员:逄增宝

Linux命令大全:https://www.linuxcool.com/

Linux系统大全:https://www.linuxdown.com/

红帽认证RHCE考试心得:https://www.rhce.net/