O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required