W3C home > Mailing lists > Public > www-archive@w3.org > January 2003

Re: datatyping question

From: Dan Brickley <danbri@w3.org>
Date: Sun, 12 Jan 2003 06:03:31 -0500
To: www-archive@w3.org
Message-ID: <20030112110331.GA3882@tux.w3.org>
For reference, re http://www.w3.org/2003/01/geo/

attached mail follows:


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 July 2008 08:08:50 GMT