W3C home > Mailing lists > Public > public-owl-dev@w3.org > July to September 2011

possible syntax errors in the owl 2 primer

From: Timothy Redmond <tredmond@stanford.edu>
Date: Thu, 21 Jul 2011 16:15:12 -0700
Message-ID: <4E28B300.3060706@stanford.edu>
To: public-owl-dev@w3.org

I hope that this is the right place to report this.

In the OWL 2 primer [1] there is an rdf version of the sample ontology.  
You can find it by going to [2], disabling all the syntaxes except rdf 
and then going to [3].  I have attached a copy for reference.  It looks 
like it has a couple of syntax errors (the owl api doesn't like this 
ontology).  First the Orphan class has a definition as follows:

    <owl:Class rdf:about="Orphan">
              <owl:inverseOf rdf:resource="hasChild"/>
          <owl:Class rdf:resource="Dead"/>                        <----- this should be owl:someValuesFrom?

I think that the inner owl:Class should be owl:someValuesFrom.  Second 
the Teenager class

    <owl:Class rdf:about="Teenager">
          <owl:onProperty rdf:resource="hasAge"/>
              <owl:onDataType rdf:resource="&xsd;integer"/>         <-------- should be owl:onDatatype?
              <owl:withRestrictions rdf:parseType="Collection">
                  <xsd:minExclusive rdf:datatype="&xsd;integer">12</xsd:minExclusive>
                  <xsd:maxInclusive rdf:datatype="&xsd;integer">19</xsd:maxInclusive>

I think that the second "t" in owl:onDataType should not be capitalized.

Also the import seems to fail which is more annoying (it takes a long 
time to fail) than a real problem.


[2]http://www.w3.org/TR/owl2-primer/#OWL_Syntaxes  <http://www.w3.org/TR/owl-primer/#OWL_Syntaxes>

Received on Thursday, 21 July 2011 23:15:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:20 UTC