Problem with serialization in Protégé 5.6: offsets in "genid" #1164
Labels
Status: Reproduced
For issues that are (critical) bugs, denotes that the bug is reproduced, but no further action taken
Type: Bug
Indicates that Protege is not working as expected
We have just migrated from Protégé 5.5 to Protégé 5.6, and we detected a tricky bug in the serialization.
In our ontology, we have classes with
rdfs:subClassOf
axioms, which are annotated withrdfs:comment
using OWL 2 axiom annotations.With Protégé 5.5, no identifier was generated in this case, but now with Protégé 5.6 an identifier with the "genid" prefix is used in the serialization. See this example with the generated "genid1":
The problem we have is that when we add a new OWL 2 axiom annotations in our ontology, all the axiom annotations that follow the new one (in the order of the serialized file) are changed with a new "genid" (an offset in introduced for each genid).
See this example: result of the
git diff
command after introduction of a new axiom annotation (the previously generatedgenid1
is replaced bygenid3
):Our ontology is full of these annotations (hundreds of them), so at each new annotation introduced, git is polluted with a lot of these non-pertinent changes. Commits diff in git history become unreadeable, and merges between branches are now a lot more complex.
Is there a way to prevent this behaviour with Protégé 5.6 ?
You will find a full example in the ZIP file below :
tst0.rdf
is an small example ontology with OWL 2 axiom annotations, andtst1.rdf
is the same ontology with a new annotation added. Compare both files to see offsets in "genid".tst.zip
Thank you for your help !
The text was updated successfully, but these errors were encountered: