rdf:rest                                                      

Definition

rdf:rest is an instance of rdf:Property that can be used to build descriptions of lists and other list-like structures.

The rdfs:domain and the rdfs:range of rdf:rest are rdf:List.  

Schema

    <rdf:Property rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#rest">

        <rdfs:isDefinedBy rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>

        <rdfs:label>rest</rdfs:label>

        <rdfs:comment>The rest of the subject RDF list after the first item.</rdfs:comment>

        <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>

        <rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List"/>

    </rdf:Property>

Example listing

Triple

L  rdf:rest  O  states that there is a rest-of-list relationship between L and O.

RDF/XML

    <?xml version="1.0"?>

    <rdf:RDF

        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

        xmlns:s="http://example.org/students/vocab#">

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

            <s:students rdf:nodeID="sch1"/>

        </rdf:Description>

        <rdf:Description rdf:nodeID="sch1">

            <rdf:first rdf:resource="http://example.org/students/Amy"/>

            <rdf:rest rdf:nodeID="sch2"/>

        </rdf:Description>

        <rdf:Description rdf:nodeID="sch2">

            <rdf:first rdf:resource="http://example.org/students/Mohamed"/>

            <rdf:rest rdf:nodeID="sch3"/>

        </rdf:Description>

        <rdf:Description rdf:nodeID="sch3">

            <rdf:first rdf:resource="http://example.org/students/Johann"/>

            <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>

        </rdf:Description>

    </rdf:RDF>

Other information

 

Use in ISO 15926