Re: datatyping question

For reference, re http://www.w3.org/2003/01/geo/

Forwarded message 1

  • From: Brian McBride <bwm@hplb.hpl.hp.com>
  • Date: Sat, 11 Jan 2003 15:43:34 +0000
  • Subject: Re: datatyping question
  • To: Dan Brickley <danbri@w3.org>
  • Cc: em@w3.org
  • Message-Id: <5.1.0.14.0.20030111154143.027c8dc0@localhost>
At 06:12 11/01/2003 -0500, Dan Brickley wrote:

[...]

>Do I now have a choice? Is it acceptable to write either of:
>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>         xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
>   <geo:Point>
>     <geo:lat>55.701</geo:lat>
>     <geo:long>12.552</geo:long>
>   </geo:Point>
></rdf:RDF>

Given the range constraint, the above is bad news; it says the geo:lat has 
a value that is both a string and an integer and they are disjoint.  You 
must use the form below.


>Or:
>
><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>         xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
>   <geo:Point>
>     <geo:lat 
> rdf:datatype="http://www.w3.org/2001/XMLSchema#float">55.701</geo:lat>
>     <geo:long 
> rdf:datatype="http://www.w3.org/2001/XMLSchema#float">12.552</geo:long>
>   </geo:Point>
></rdf:RDF>
>
>
>I remember some scare about the former becoming illegal if datatyping were 
>used.


Brian

Received on Sunday, 12 January 2003 06:03:31 UTC