[Fwd: Re: Typos in OWL Reference document]

Subject: Re: Typos in OWL Reference document
Date: Mon, 17 Nov 2003 10:14:50 +0100
From: Olivier Corby <Olivier.Corby@sophia.inria.fr>
To: public-webont-comments@w3.org

[..]

> 6.2 Enumerated datatype
> 
> I think that the following does not conform to RDF/XML syntax because
> there are several resource nodes (i.e. rdf:List nodes) within the
> owl:oneOf property, whereas in RDF there should be only one resource
> node within a property :
> 
> 
> <owl:DatatypeProperty rdf:ID="tennisGameScore">
>    <rdfs:range>
>      <owl:DataRange>
>        <owl:oneOf>
> 
>          <rdf:List>
>            <rdf:first rdf:datatype="&xsd;integer">0</rdf:first>
>            <rdf:rest rdf:nodeID="l2"/>
>          </rdf:List>
> 
>          <rdf:List rdf:nodeID="l2">
>            <rdf:first rdf:datatype="&xsd;integer">15</rdf:first>
>            <rdf:rest rdf:nodeID="l3"/>
>          </rdf:List>
> 
>          <rdf:List rdf:nodeID="l3">
>            <rdf:first rdf:datatype="&xsd;integer">30</rdf:first>
>            <rdf:rest rdf:nodeID="l4"/>
>          </rdf:List>
> 
>          <rdf:List rdf:nodeID="l4">
>            <rdf:first rdf:datatype="&xsd;integer">40</rdf:first>
>            <rdf:rest rdf:resource="&rdf;nil"/>
>          </rdf:List>
> 
>        </owl:oneOf>
>      </owl:DataRange>
>    </rdfs:range>
> </owl:DatatypeProperty>
> 
> 
> 
> A correct syntax would be :
> 
> 
> 
> <owl:DatatypeProperty rdf:ID="tennisGameScore">
>    <rdfs:range>
>      <owl:DataRange>
>        <owl:oneOf>
> 
>          <rdf:List>
>            <rdf:first rdf:datatype="&xsd;integer">0</rdf:first>
>            <rdf:rest rdf:nodeID="l2"/>
>          </rdf:List>
> 
>        </owl:oneOf>
>      </owl:DataRange>
>    </rdfs:range>
> </owl:DatatypeProperty>
> 
> 
>          <rdf:List rdf:nodeID="l2">
>            <rdf:first rdf:datatype="&xsd;integer">15</rdf:first>
>            <rdf:rest rdf:nodeID="l3"/>
>          </rdf:List>
> 
>          <rdf:List rdf:nodeID="l3">
>            <rdf:first rdf:datatype="&xsd;integer">30</rdf:first>
>            <rdf:rest rdf:nodeID="l4"/>
>          </rdf:List>
> 
>          <rdf:List rdf:nodeID="l4">
>            <rdf:first rdf:datatype="&xsd;integer">40</rdf:first>
>            <rdf:rest rdf:resource="&rdf;nil"/>
>          </rdf:List>

It seems to me the commenter is right. This suggests to me to leave out 
this example altogether, as it was introduced to make the "oneOf" list 
more readable.

Guus


> 

-- 
Free University Amsterdam, Computer Science
De Boelelaan 1081a, 1081 HV Amsterdam, The Netherlands
Tel: +31 20 444 7739/7718
E-mail: schreiber@cs.vu.nl
Home page: http://www.cs.vu.nl/~guus/

Received on Monday, 17 November 2003 06:05:28 UTC