Substance comment
From Tetherless World Wiki
Contents |
Problem 1:
Original Header:
<rdf:RDF xmlns="http://sweet.jpl.nasa.gov/ontology/substance.owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:numerics="http://sweet.jpl.nasa.gov/ontology/numerics.owl#" xmlns:property="http://sweet.jpl.nasa.gov/ontology/property.owl#" xmlns:units="http://sweet.jpl.nasa.gov/ontology/units.owl#">
Comment: I think we may want to add one more declaration so when when use Pellet to test the file it won't result a bunch of "Problems encountered parsing RDF"
xml:base="http://sweet.jpl.nasa.gov/ontology/substance.owl#"
Problem 2:
(line 592 column 24): {W108} Not an XML Name: 'O+'
Line 592: <owl:Class rdf:ID="O+">
Comment: I think the problem is cause by '+', we can use other name to indicate '+', example: "O-positive"
Problem 3
(line 1579 column 24): {E201} Multiple children of property element
<owl:Class rdf:ID="Ice">
<rdfs:subClassOf rdf:resource="#Water"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasState"/>
<owl:allValuesFrom rdf:resource="#Solid"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasChemical"/>
<owl:allValuesFrom rdf:resource="#Water"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
Comment: Following correction can solve the problem:
<owl:Class rdf:ID="Ice">
<rdfs:subClassOf rdf:resource="#Water"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasState"/>
<owl:allValuesFrom rdf:resource="#Solid"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasChemical"/>
<owl:allValuesFrom rdf:resource="#Water"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
new owl file: Substance.owl
new test result using TW Istance Evalution: Substance.owl result
new test result using Pellet: Substance.owl result
About Warnings in above test result
example:
Individual [ThermalInfraredRadiation]: its known type [Class] is not compatible with the expected type [Quantity] which is suggested by the rdfs:domain restriction on the property [hasUnit]. Individual <http://sweet.jpl.nasa.gov/ontology/substance.owl#ThermalInfraredRadiation>: its known type <http://www.w3.org/2002/07/owl#Class> is not compatible with the expected type <http://sweet.jpl.nasa.gov/ontology/numerics.owl#Quantity> which is suggested by the rdfs:domain restriction on the property <http://sweet.jpl.nasa.gov/ontology/numerics.owl#hasUnit>. Check the triple (<http://sweet.jpl.nasa.gov/ontology/substance.owl#ThermalInfraredRadiation>, <http://sweet.jpl.nasa.gov/ontology/numerics.owl#hasUnit>, ...)
Comment: All warnings suggest same problem as above example, ThermalInfraredRadiation. The problem is that when test this file by direct input the file, the file itself imports other online owl file and eventually it will load online version of substance.owl file(http://sweet.jpl.nasa.gov/ontology/substance.owl). In this online version, there is a class call 'ThermalInfraredRadiation', and in this testing file, it declares 'ThermalInfraredRadiation' as an individual of type 'ElectromagneticRadiation'.
