Specific value of data property with range xsd:integer in nested class tree raises NumberFormatException #1191
Labels
Status: Reproduced
For issues that are (critical) bugs, denotes that the bug is reproduced, but no further action taken
Type: OWL API Bug
A bug in the OWL API that is manifested in Protege. Should be reported on the OWL API tracker
TL;DR
Open the file
ReproduceErrorNumberFormatException2.ttl
(files are in the attached .zip file).Navigate to 'Entities'->'Classes'.
There are two trees: Navigating down tree
1
tosubclass
an error occurs. Navigating down tree2
it works as expected. Check the error output (also included in attached fileprotege_error_output.txt
).Inspecting the file
ReproduceErrorNumberFormatException2.ttl
in a text editor the only difference is the data property "num value 92740100783". It works for other numbers, e.g. "92".In details
Error info:
I have constructed a program that generates a turtle formatted file that I wish to open and use in protégé.
I have recreated a minimum example (file:
ReproduceErrorNumberFormatException2.ttl
) that mirrors the ontology structure I generate while still contains the error. With risk of a bold guess, it seems like protégé tries to parse the integer '92740100783' as a string, even though the range is set toxsd:integer
. However, changing the number to another number, e.g. to '92', the parser works as expected.Note the naming of the IRI:s where the SubClass contains the same IRI as its superclass followed by the '#' separator for the class name.
Could not find any related issues to NumberFormatException in the issues list.
To reproduce:
Inspect the file
ReproduceErrorNumberFormatException2.ttl
attached in the post. Notice the difference between:<http://www.semanticweb.org/ReproduceError/Testing/SuperClass1#subclass>
and<http://www.semanticweb.org/ReproduceError/Testing/SuperClass2#subclass>
. The only difference between1
and2
is the data property:Ideally start protege from a terminal session.
Open the file
ReproduceErrorNumberFormatException2.ttl
in protege.Navigate to 'Entities'->'Classes'.
Open the class hierarchy in the following order to directly reproduce the error:
owl:Thing
>Head
>Top1
>SuperClass1
>SubClass
This may cause protégé to bug a little, restart in that case and do the following:
Open instead the working hierarchy:
owl:Thing
>Head
>Top2
>SuperClass2
>SubClass
Now, open the file
ReproduceErrorNumberFormatException2.ttl
in a text editor and change '92740100783' to '92' and open the file in protégé again, and follow the steps according to1.
above, and it should work as expected.Error message
See full error message in attached file
protege_error_output.txt
.Version info
Linux: Pop!_OS 22.04 LTS (Ubuntu based)
Protégé: 5.6.1
Files
ReproduceError.zip
The text was updated successfully, but these errors were encountered: