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

Re: RDF Interpretation of XML documents (was Re: pat


character interpretation in xml
Mike Champion scripsit:

> >If you change the id attribute to rdf:id, then this is also RDF.
> >Unless it contains mixed content, almost any reasonable XML document
> >has an RDF interpretation.
> 
> An honest  question, not a troll: what can an RDF processor usefully
> do with such a document?

Well, let's take Eric's example:

>    <book id="book_0805033106">
>         <isbn>0805033106</isbn>
>         <title>Peanuts Every Sunday </title>
>         <author href="author_Charles-M.-Schulz"/>
>         <character href="character_Sally-Brown"/>
>         <character href="character_Snoopy"/>
>         <character href="character_Linus"/>
>         <character href="character_Lucy"/>
>     </book>

Assuming that id is changed to rdf:id, and that a relevant namespace
declaration appears somewhere for the null prefix (RDF doesn't like
elements without namespaces), then an RDF processor can discover that:

There is a type named "book";
There is an object of type "book" whose ID is "book_0805033106";
The book has the "isbn" property with value "0805033106";
The book has the "title" property with value "Peanuts Every Sunday";
The book has the "author" property with value anonymous-1;
Anonymous-1 has the "href" property with value "author_Charles-M.-Schulz"
The book has the "character" property with value anonymous-2;
Anonymous-2 has the "character" property with value "character_Sally-Brown";
Etc.

By changing the "href" attributes to "rdf:resource" attributes, we remove
part of the indirection, and get:

The book has the "author" property with value the resource identified by
   the URI "author_Charles-M.-Schulz";
The book has the "character" property with value the resource identified by
   the URI "character_Sally_Brown";
Etc.

-- 
Schlingt dreifach einen Kreis vom dies! || John Cowan <jcowan@r...>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)

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.