[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Embedding RDF metadata within an XML document

  • From: John Cowan <jcowan@r...>
  • To: Warren Hedley <w.hedley@a...>
  • Date: Thu, 22 Feb 2001 15:56:02 -0500

embedding a document inside another
Warren Hedley wrote:


> 2. If we are embedding the metadata inside the resource to
> which it refers, is it appropriate to omit the @about attribute
> on the <rdf:Description> element?
> Does omitting the @about attribute imply that the RDF block
> refers to the resource in which it is contained? (This is the
> behaviour that we are after.)

Just to be definite: No, it doesn't. Omitting the about
attribute gives you metadata that is about a newly created
anonymous resource.

The empty-string URI reference always refers to the current
document, so you can (as another poster has said) use about=""
to make clear that your metadata describes the document
in which it is embedded.

However, based on your example below, you are in fact
using metadata to describe only *part* of the document
in which it is embedded, specifically the element in which
the metadata is embedded.  If that is your intent, then
you must change your example to something like this:

> <cellml:some_cellml_element id="some">
> 
>   <rdf:Description about="#some">
>     <cmeta:some_metadata_element>
>       Some metadata content
>     </cmeta:some_metadata_element>
>   </rdf:Description>
> 
>   Some CellML content
> 
> </cellml:some_cellml_element>
> 
> <cellml:another_cellml_element id="another">
> 
>   <rdf:Description about="#another">
>     <cmeta:some_metadata_element>
>       Different metadata content
>     </cmeta:some_metadata_element>
>   </rdf:Description>
> 
>   Some CellML content
> 
> </cellml:another_cellml_element>
> 
> Is this correct use of RDF? Are processors likely to be able to
> make use of it? Are processors going to be able to determine
> which metadata applies to <some_cellml_element> and which
> applies to <another_cellml_element>?

The id attributes in the CellML elements (where you must
declare the id attribute as of type ID in your DTD) match
up with the URI references in the about attributes in the
rdf:Description elements.  (Note that the URI references
must begin with "#" and the ids must not.)


-- 
There is / one art             || John Cowan <jcowan@r...>
no more / no less              || http://www.reutershealth.com
to do / all things             || http://www.ccil.org/~cowan
with art- / lessness           \\ -- Piet Hein


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.