RDDL proposal from Garret Wilson

In response to Tim Bray's call for RDDL proposals...

I proposed this one quite a while ago. Please read 
http://www.xpackage.org/specification/index.html#examples (search for 
"RDDL") for a full explanation of how this relates to "purpose" and 
"nature", as well as its benefits. Go to 
http://www.w3.org/RDF/Validator/ to see how nice it looks when 
interpreted as RDF.

<?xml version="1.0"?>
<rdf:RDF
     xmlns:xpackage="http://xpackage.org/namespaces/xpackage/2002/"
     xmlns:x="http://xpackage.org/namespaces/package/xml/2002/"
     xmlns:mime="http://xpackage.org/namespaces/package/mime/2002/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:rddl="http://www.rddl.org/"
     xmlns:dc="http://purl.org/dc/elements/1.1/">

     <!--namespace: http://www.ibiblio.org/xml/ns/recipe-->
     <rddl:namespace rdf:about="http://www.ibiblio.org/xml/ns/recipe">
       <dc:title>Resource Document for Recipes using XPackage</dc:title>
       <rdfs:comment rdf:parseType="Literal">
         This namespace describes an XML application for
         recipes adapted from an example in Chapters 12
         and 13 of <cite>XML in a Nutshell</cite>
         by Elliotte Rusty Harold and W. Scott Means.
         The XPackage version was created by Garret Wilson
         of <a href="http://www.globalmentor.com">GlobalMentor,
         Inc.</a>.
       </rdfs:comment>
       <dc:creator>Elliotte Rusty Harold</dc:creator>
       <dc:rights>Copyright 2001 Elliotte Rusty Harold</dc:rights>
       <dc:creator>Garret Wilson</dc:creator>
       <dc:rights>Copyright 2002 GlobalMentor, Inc.</dc:rights>
       <dc:date>2002-03-06</dc:date>
       <x:dtd 
rdf:resource="urn:public-id:-//Elliotte%20Rusty%20Harold//DTD%20Recipe%200.91//EN"/>
       <xpackage:style 
rdf:resource="http://www.ibiblio.org/xml/styles/recipe.css"/>
     </rddl:namespace>

     <!--DTD: -//Elliotte Rusty Harold//DTD Recipe 0.91//EN-->
     <rdf:Description 
rdf:about="urn:public-id:-//Elliotte%20Rusty%20Harold//DTD%20Recipe%200.91//EN">
       <rdfs:label>DTD for validation</rdfs:label>
       <xpackage:location 
xlink:href="http://www.ibiblio.org/xml/dtds/recipe.dtd"/>
       <mime:contentType>text/xml-dtd</mime:contentType>
     </rdf:Description>

     <!--styleshet: recipe.css-->
     <rdf:Description 
rdf:about="http://www.ibiblio.org/xml/styles/recipe.css">
       <rdfs:label>CSS Style Sheet for Recipes</rdfs:label>
       <xpackage:location 
xlink:href="http://www.ibiblio.org/xml/styles/recipe.css"/>
       <mime:contentType>text/css</mime:contentType>
     </rdf:Description>

</rdf:RDF>

Tim Bray wrote:
> Scope: We assume that a RDDL document is XHTML with embedded 
> machine-readable information that allows related resources to be looked 
> up based on metadata fields, most important the resources' "nature" 
> (namespace name or MIME type) and "purpose" (what you're going to be 
> using it for, e.g. validation, rendering).

I'm guessing the reason why you're wanting to assume that RDDL is XHTML 
is because browsers know how to display XHTML nicely---one can browse 
directly to an XHTML file. I'd like to promote browsers interpreting RDF 
and displaying it nicely, just as they do XHTML. We're already going in 
that direction with SVG.

Garret

Received on Friday, 17 January 2003 12:37:43 UTC