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

>>>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 UTC