W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > August 2003

Primer XPackage examples [was Re: Review of RDF primer Revised Editor's Draft 21 July 2003]

From: Frank Manola <fmanola@mitre.org>
Date: Fri, 01 Aug 2003 19:16:56 -0400
Message-ID: <3F2AF4E8.7030908@mitre.org>
To: Dave Beckett <dave.beckett@bristol.ac.uk>
CC: w3c-rdfcore-wg@w3.org, Eric Miller <em@w3.org>

Dave (and for everyone's information)--

Regarding your comments below on the XPackage examples:

I reviewed the XPackage examples again (I *thought* I'd validated them, 
and it turns out I had).  The complete example 37 (with all the 
namespaces declared) is:

<?xml version="1.0"?>
         <rdf:Description rdf:about="urn:example:xhtmldocument-doc">
           <rdfs:comment>The XHTML document.</rdfs:comment>
           <xpackage:location xlink:href="doc.html"/>
           <x:namespace rdf:resource="http://www.w3.org/1999/xhtml"/>
           <x:style rdf:resource="urn:example:xhtmldocument-stylesheet"/>
           <dc:creator>Garret Wilson</dc:creator>
           <xpackage:manifest rdf:parseType="Collection">


This validates in the W3C RDF validator.  In the generated triples, the 
xpackage:location property has a blank node as its object, and the blank 
node in turn has a http://www.w3.org/1999/xlinkhref property whose value 
is the literal "doc.html".  Example 38 works the same way.  Does this 
not square with your understanding of what's supposed to happen? 
Anyway, I'm going to substitute the above for what's in the Primer now; 
  it's a pain to have to add all the namespaces every time I validate 
the examples.


Dave Beckett wrote:

> Review of
> http://www.w3.org/2001/sw/RDFCore/TR/WD-rdf-primer-20030117/Overview.html
> 6.3 XPackage
> Example 37 includes this inside the rdf:
>       <xpackage:location xlink:href="doc.html"/>
> That is not RDF/XML, unless they meant this to be
>       <xpackage:location>
>         <rdf:Description>
>            <xlink:href>doc.html</xlink:href>
>         </rdf:Description>
>       </xpackage:location>
> In particular doc.html is not a URIref.
> Ditto for example 38.
> If however, these are not RDF/XML, this does not apply.

Frank Manola                   The MITRE Corporation
202 Burlington Road, MS A345   Bedford, MA 01730-1420
mailto:fmanola@mitre.org       voice: 781-271-8147   FAX: 781-271-875
Received on Friday, 1 August 2003 18:52:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:54:07 UTC