Two comments on Guus' quantity/unit pattern example: <represented here in reformatted form for readability> ObjectProperty(diameterValue domain(Wheel) range(LengthQuantity)) Class(Quantity) DatatypeProperty(value domain(Quantity) range(xsd:decimal)) DatatypeProperty(unit domain(Quantity) range(Unit)) Class(LengthQuantity subClassOf(Quantity) Restriction(unit, allValuesFrom(LengthQuantity)) ) Individual( myWheel type(Wheel) diameterValue(type(LengthQuantity) value(15) unit(cm)) ) Shouldn't the Restriction in the LengthQuantity definition actually be on allValuesFrom(LengthUnit) where : Class(LengthUnit subClassOf(Unit) Restriction unionOf (mm, cm, km, inch, feet, mile ...) ) Class(Unit) and shouldn't LengthQuantity have a further Restriction on value as follows: Restriction (value allValuesFrom(xsd:nonNegativeInteger))? -EvanReceived on Thursday, 15 April 2004 09:53:14 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:17:11 GMT