-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simply saving an OWL/XML (*.owl) ontology with ROBOT 1.9.2 is insufficient to canonicalize it #1090
Comments
Surprising! What happened when you tried without the ofn intermediary? |
Hi @matentzn. When I just did:
I found that annotation-values were not sorted in the output. After round-tripping through ofn, I got a stable result (including sorting of those values). Here's a fragment of a diff of the
|
Very important to know for us, thank you for taking the time to report this.. Apart from us knowing about this, is there anything you think that should be done here in terms of a fix? It seems we basically have to live with this (short of someone working on the OWX parser in the OWL API itself) |
Doesn't seem like there is too much that ROBOT could do (I can imagine internal workarounds, like setting up the ROBOT code to internally do an My only real suggestion would be to perhaps update the 1.9.2. release-notes, to tell people that they might need to do an |
I am experimenting with this behaviour by using the |
@CarMoreno What doesn't work? I think the suggestion in this thread it to use |
@jamesaoverton That's exactly what I am doing. I generated the
The axioms keep unsorted. |
@allenbaron super useful analysis, thank you! |
Just noting that after stabilizing serialization of an .ofn file, if I run a Full command to maintain stable ordering (and prefixes):
Serialization is stable when I run chained |
The recommendation in the release notes for
robot
1.9.2 suggests to:In my experience, that wasn't quite enough - complete canonicalization of my ontology didn't happen without round-tripping through OWL functional format - without doing that, some lines in the XML output were re-ordered when I round-tripped.
What worked for me (other variants might work too; haven't tested):
The text was updated successfully, but these errors were encountered: