RDF Description Element

Each resource that you want to describe in RDF gets its own <rdf:Description> element. This element has several attributes:

  • about lets you specify what resource the element describes.

  • aboutEach lets you make statements about each of the element's children.

  • aboutEachPrefix lets you select RDF container items by prefix.

  • bagID specifies the ID of an associated bag container.

  • ID lets you give the element an ID value.

  • type specifies the description's type.

In fact, you can also convert the properties that you list in the <rdf:Description> element into attributes, as we'll see when we take a look at the RDF abbreviated syntax.

In our example, the resource being described is the document http://www.starpowder.com/planets.html, so ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.