I couldn't find a reference if this spacing is illegal in owl or if it is a bug in the library.
The sourceforge markdown seems to delete the leading whitespaces so before the single " in the error are two tabs and before the two <ds/ds definitions are two tabs too.
Thanks in advance for clarification.
Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
XML Schema sets facet whiteSpace=collapse for booleans and decimals. #x9 (tab), #xA (line feed), #xD (carriage return), and #x20 (space) should be stripped from both ends. http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#decimal
Therefore your example is legal.
I have pushed a fix for this issue. It is in the master branch. Please check it out.
Thanks for catching!
Mikhail
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have an Ontology file created by a non public available third party lib and the "print_classes" example app crashes with the error:
As the output shows the error is due to the additional whitespaces and the line break after the 0.
The xml for that case looks like this:
I couldn't find a reference if this spacing is illegal in owl or if it is a bug in the library.
The sourceforge markdown seems to delete the leading whitespaces so before the single " in the error are two tabs and before the two <ds/ds definitions are two tabs too.
Thanks in advance for clarification.
Alexander
Hi Alexander,
XML Schema sets facet whiteSpace=collapse for booleans and decimals. #x9 (tab), #xA (line feed), #xD (carriage return), and #x20 (space) should be stripped from both ends.
http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#decimal
Therefore your example is legal.
I have pushed a fix for this issue. It is in the master branch. Please check it out.
Thanks for catching!
Mikhail
Thanks, with the new version from the master branch the ontology loads correctly.