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"?>
<xpackage:description
            xmlns:xpackage="http://xpackage.org/namespaces/2003/xpackage#"
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:mime="http://xpackage.org/namespaces/2003/mime#"
            xmlns:x="http://xpackage.org/namespaces/2003/xml#"
            xmlns:xlink="http://www.w3.org/1999/xlink">
     <rdf:RDF>
<!--doc.html-->
         <rdf:Description rdf:about="urn:example:xhtmldocument-doc">
           <rdfs:comment>The XHTML document.</rdfs:comment>
           <xpackage:location xlink:href="doc.html"/>
           <mime:contentType>application/xhtml+xml</mime:contentType>
           <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">
              <rdf:Description
                      rdf:about="urn:example:xhtmldocument-stylesheet"/>
              <rdf:Description
                      rdf:about="urn:example:xhtmldocument-image"/>
           </xpackage:manifest>
         </rdf:Description>

     </rdf:RDF>
</xpackage:description>

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.

--Frank


Dave Beckett wrote:

> Review of
> http://www.w3.org/2001/sw/RDFCore/TR/WD-rdf-primer-20030117/Overview.html
> 
snip
> 
> 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 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:59:32 EDT