W3C home > Mailing lists > Public > www-rdf-logic@w3.org > March 2001

numerals aren't numbers; they're related to numbers

From: Dan Connolly <connolly@w3.org>
Date: Fri, 30 Mar 2001 21:35:45 -0600
Message-ID: <3AC55091.4247A6A0@w3.org>
To: www-rdf-logic@w3.org
Oops... looks like I/we missed a few details in the
latest DAML+OIL release:

=========
excerpt from
http://www.daml.org/2001/03/daml+oil-walkthru.html

<Person rdf:ID="Peter">
  <shoesize>9.5</shoesize>
  <age>46</age>
  <shirtsize>15</shirtsize>
</Person>

[...]

Peter is an instance of Person. Peter has shoesize 9.5 and age 46. From
the
range restrictions we know that these are of type xsd:decimal and
xsd:nonNegativeInteger respectively. 
===========

Er... that doesn't make sense; range restrictions don't
turn strings into numbers. This says that Peter's shoesize
is both a string and a decimal; that's a contradiction.

It would make sense if the example were coded as:

<Person rdf:ID="Peter">
  <shoesize><rdf:Description rdf:value="9.5"/></shoesize>
  <age><rdf:Description rdf:value="46"/></age>
  <shirtsize><rdf:Description rdf:value="15"/></shirtsize>
</Person>

i.e. the shoesize isn't "15" but something who's rdf:value
is "15". Then the range restrictions enable us to conclude
that this something is a decimal, and in fact *the* decimal
whose rdf:value is "15".

You could have another property:
  <shoeSizeNumeral>15</shoeSizeNumeral>
whose range was string.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Friday, 30 March 2001 22:35:47 GMT

This archive was generated by hypermail 2.2.0+W3C0.50 : Wednesday, 11 January 2006 15:19:05 GMT