Rdf Main
* * *
**The main elements of RDF are and the element, which can represent a specific resource.**
* * *
## The 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:
```xml
..._Description goes here..._
* * *
## The Element
The element can identify a resource through the `about` attribute.
The element can contain elements that describe the resource:
```xml
Bob Dylan
USA
Columbia
10.90
1985
The elements `artist`, `country`, `company`, `price`, and `year` are defined in the namespace `http://www.recshop.fake/cd#`. This namespace exists outside of RDF (it is not part of RDF itself). RDF only provides the framework, while the elements such as `artist`, `country`, `company`, `price`, and `year` must be defined by othersβcompanies, organizations, or individuals.
* * *
## Defining Properties as Attributes
Property elements can also be defined as attributes (replacing the elements):
```xml
* * *
## Using Properties to Define Attributes
Property elements can also be used to define attributes (replacing the elements):
```xml
...
...
In the example above, the `artist` property does not have a value but instead references a resource that contains information about the artist.
YouTip