W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > February 2002

Re: Parser mods to support rdf:dtype and rdf:lform

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Fri, 15 Feb 2002 10:52:49 +0000
To: Brian McBride <bwm@hplb.hpl.hp.com>
cc: Patrick Stickler <patrick.stickler@nokia.com>, RDF Core <w3c-rdfcore-wg@w3.org>
Message-ID: <20965.1013770369@tatooine.ilrt.bris.ac.uk>
>>>Brian McBride said:
> At 11:04 15/02/2002 +0200, Patrick Stickler wrote:
> [...]
> >    <dc:date rdf:value="2002-02-14" rdf:dtype="&xsd;date"/>

is currently shorthand for
     <dc:date>
       <rdf:Description>
         <rdf:value>2002-02-14</rdf:value>
         <!-- parser changes needed here to make rdf:dtype value a resource -->
         <rdf:dtype>&xsd;date</rdf:dtype> 
       </rdf:Description>
     </dc:date>


> 
> Am I right that under the current proposal this can be more
> compactly written:
> 
>    <dc:date xsd:date="2002-02-14"/>

is currently shorthand for
     <dc:date>
       <rdf:Description>
         <xsd:date>2002-02-14</rdf:dtype>
       </rdf:Description>
     </dc:date>

> which would require no change to the parsers?

Those bits of syntax generate different ntriples and if you want the
latter to be the same as the former, parser changes will be needed.

Dave
Received on Friday, 15 February 2002 05:56:01 EST

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