Easy Tutorial
❮ Rdf Dublin Rdf Tutorial ❯

RDF Main Elements


The main elements of RDF are the <RDF> element and the <Description> element, which represents a resource.


<rdf:RDF> Element

The <rdf:RDF> element is the root element of an RDF document. It defines the XML document as an RDF document. It also includes a reference to the RDF namespace.


<rdf:Description> Element

The <rdf:Description> element can identify a resource through the about attribute.

The <rdf:Description> element can contain elements that describe the resource.

Elements such as artist, country, company, price, and year are defined in the namespace http://www.recshop.fake/cd#. This namespace is outside of RDF (not part of RDF). RDF merely defines the framework. The elements artist, country, company, price, and year must be defined by others (companies, organizations, or individuals).


Property Elements as Attributes

Property elements can also be defined as attributes (replacing elements):


Property Elements as Attributes

In the example above, the artist property has no value but refers to a resource containing information about the artist.

❮ Rdf Dublin Rdf Tutorial ❯