The RDF collection is used to describe groups that contain only the specified members. As we saw in the previous section, we cannot close a container. The container specifies that the resources it contains are members-it does not specify that other members are not allowed. The RDF collection is used to describe groups that contain only the specified members. The collection is described by the property rdf:parseType= “Collection”.Rdf:parseType= “Collection” attribute ¶
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>