当前位置: 首页 > 网络学院 > XML相关教程 > RDF > RDF 集合

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

RDF 集合


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 581 ::
收藏到网摘: n/a

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

登陆 | 还没注册?