rdf:RDF                                                   

Definition

To create a complete RDF/XML document, the serialization of the graph into XML is usually contained inside an rdf:RDF XML element which becomes the top-level XML document element. Conventionally the rdf:RDF element is also used to declare the XML namespaces that are used, although that is not required. When there is only one top-level node element inside rdf:RDF, the rdf:RDF can be omitted although any XML namespaces must still be declared.

rdf:RDF is a Production syntaxTerm (not a concept).

Example listing

Triple

N/A

RDF/XML

    <?xml version="1.0"?>

    <rdf:RDF

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

        xmlns:ex="http://example.org/stuff/1.0/"

        xml:base="http://example.org/here/">

        <rdf:Description rdf:ID="snack">

            <ex:prop rdf:resource="fruit/apple"/>

        </rdf:Description>

    </rdf:RDF>

Other information

 

Use in ISO 15926