网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: RDF :: RDF 集合

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

RDF
RDF 介绍
RDF 规则
RDF 实例
RDF 元素
RDF 容器
RDF 集合
RDF Schema
RDF 都柏林核心
RDF 参考
RDF OWL

RDF 集合


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 修改:2008-02-29 浏览:1726 :: ::

RDF collections are used to describe groups that contains ONLY the specified members.
RDF 集合用于描述仅包含指定成员的组。


The rdf:parseType="Collection" Attribute
rdf:parseType="Collection"属性

As seen in the previous chapter: You cannot close a container. A container says that the containing resources are members - it does not say that other members are not allowed.
正如在前面的章节所看到的,我们无法关闭一个容易。容器规定了所包含的资源为成员 - 它没有规定其他的成员是不被允许的。

RDF collections are used to describe group that contains ONLY the specified members.
RDF 集合用于描述仅包含指定成员的组。

A collection is described by the attribute rdf:parseType="Collection".
集合是通过属性 rdf:parseType="Collection" 来描述的。

Example
实例

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cd="http://recshop.fake/cd#">
<rdf:Description
rdf:about="http://recshop.fake/cd/Beatles">
<cd:artist rdf:parseType="Collection">
<rdf:Description rdf:about="http://recshop.fake/cd/Beatles/George"/>
<rdf:Description rdf:about="http://recshop.fake/cd/Beatles/John"/>
<rdf:Description rdf:about="http://recshop.fake/cd/Beatles/Paul"/>

<rdf:Description rdf:about="http://recshop.fake/cd/Beatles/Ringo"/>
</cd:artist>
</rdf:Description>
</rdf:RDF>

评论 (0) All