possible syntax errors in the owl 2 primer

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:equivalentClass>
        <owl:Restriction>
          <owl:onProperty>
            <owl:ObjectProperty>
              <owl:inverseOf rdf:resource="hasChild"/>
            </owl:ObjectProperty>
          </owl:onProperty>
          <owl:Class rdf:resource="Dead"/>                        <----- this should be owl:someValuesFrom?
        </owl:Restriction>
      </owl:equivalentClass>
    </owl:Class>


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

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


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.

-Timothy



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

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