rdf:first                                                    

Definition

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

The rdfs:domain of rdf:first is rdf:List. The rdfs:range of rdf:first is rdfs:Resource.

Schema

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

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

        <rdfs:label>first</rdfs:label>

        <rdfs:comment>The first item in the subject RDF list.</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/2000/01/rdf-schema#Resource"/>

    </rdf:Property>

Example listing

Triple

L  rdf:first  O  states that there is a first-element 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