rdf:li                                                          

Definition

rdf:li is a syntaxTerm that indicates a list item. RDF/XML provides rdf:li as a convenience element to avoid having to explicitly number each membership property. The numbered properties rdf:_1, rdf:_2, and so on are generated from the rdf:li  elements in forming the corresponding graph.

The element name rdf:li was chosen to be mnemonic with the term "list item" from HTML.

EXAMPLE:    

Example listing

Triple

 

RDF/XML

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

        <rdf:Seq rdf:about="http://example.org/favourite-fruit">

            <rdf:li rdf:resource="http://example.org/banana"/>

            <rdf:li rdf:resource="http://example.org/apple"/>

            <rdf:li rdf:resource="http://example.org/pear"/>

        </rdf:Seq>

    </rdf:RDF>

This example shows that RDF/XML provides rdf:li as a convenience element to avoid having to explicitly number each membership property. The numbered properties rdf:_1, rdf:_2, and so on are generated from the rdf:li elements in forming the corresponding graph:

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

        <rdf:Seq rdf:about="http://example.org/favourite-fruit">

            <rdf:_1 rdf:resource="http://example.org/banana"/>

            <rdf:_2 rdf:resource="http://example.org/apple"/>

            <rdf:_3 rdf:resource="http://example.org/pear"/>

        </rdf:Seq>

    </rdf:RDF>

Other information

 

Use in ISO 15926