rdf:parseType="Collection"                  

Definition

An rdf:parseType="Collection" attribute on a property element lets this property contain multiple node elements.

Example listing

Triple

 

RDF/XML

<rdf:Description rdf:about="http://example.org/basket">

    <ex:hasFruit rdf:parseType="Collection">

        <rdf:Description rdf:about="http://example.org/banana"/>

        <rdf:Description rdf:about="http://example.org/apple"/>

        <rdf:Description rdf:about="http://example.org/pear"/>

    </ex:hasFruit>

</rdf:Description>

Other information

The contained node elements give the set of subject nodes of the collection. This syntax form corresponds to a set of rdf:first and an rdf:rest triples connecting the collection of subject nodes. The collection construction is always done in the order that the node elements appear in the XML document. Whether the order of the collection of nodes is significant is an application issue and not defined here.

Use in ISO 15926