|
Hi, I tried to define enumerated datatypes within Protege 4 with no success. Trying for example to insert manually this code in the owl file : <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:list> <rdf:first rdf:datatype="&xsd;integer">15</rdf:first> <rdf:rest> <rdf:list> <rdf:first rdf:datatype="&xsd;integer">30</rdf:first> <rdf:rest> <rdf:list> <rdf:first rdf:datatype="&xsd;integer">40</rdf:first> <rdf:rest rdf:resource="&rdf;nil"/> </rdf:list> </rdf:rest> </rdf:list> </rdf:rest> </rdf:list> </rdf:rest> </rdf:list> </owl:oneof> </owl:datarange> </rdfs:range> </owl:datatypeproperty> this part is ignored when the file is reloaded into Protege. Has somebody found a solution to that problem ? Regards Laurent |


OWL is case sensitive... is the capitalisation of your terms correct in the data? I.e.,
DatatypeProperty,oneOf,`DataRange?Oh yep, and RDF/XML may be horrible, but it does have shortcuts for lists: http://www.w3.org/TR/REC-rdf-syntax/#section-Syntax-parsetype-Collection :)
Hey Laurent, if you're happy with your answer, please remember to accept! ;)