From http://www.w3schools.com (Copyright Refsnes Data)

RDF Collections

Previous Next

RDF collections are used to describe groups that contains ONLY the specified members.


The rdf:parseType="Collection" Attribute

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.

A collection is described by the attribute 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>


Previous Next

From http://www.w3schools.com (Copyright Refsnes Data)