-
Notifications
You must be signed in to change notification settings - Fork 0
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
update import of UO #15
Conversation
…e uo-extracted.owl
oeo-imports/uo/uo-extracted.owl
Outdated
@@ -142,7 +157,7 @@ | |||
</owl:Axiom> | |||
<owl:Axiom> | |||
<owl:annotatedSource rdf:resource="http://purl.obolibrary.org/obo/UO_0000000"/> | |||
<owl:annotatedProperty rdf:resource="http://www.w3.org/2000/01/rdf-schema#comment"/> | |||
<owl:annotatedProperty rdf:resource="http://purl.obolibrary.org/obo/#IAO_0000115"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to open this link in a browser and it failed. Changing several parts of the link also doesn't fix it. Ontobee is currently down, which complicates proposing a fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UO uses "rdfs:comment" as annotation property for definitions. We want to change this to "IAO_0000115" (definition), to be conform to OEO. This is done for all imported classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<owl:annotatedProperty rdf:resource="http://purl.obolibrary.org/obo/#IAO_0000115"/> | |
<owl:annotatedProperty rdf:resource="http://purl.obolibrary.org/obo/IAO_0000115"/> |
The problem is the #
character in the URL. Without that, the URL resolves to: https://ontobee.org/ontology/IAO?iri=http://purl.obolibrary.org/obo/IAO_0000115
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell this PR looks fine, apart from the #
character where there is a specific comment.
I can confirm that the uo-extracted.owl opens properly in Protégé and I do not spot any other problems. So I approve this PR, assuming that you will fix the line with the IRI discussion for IAO_0000115 before merging.
I tried it out, this annotation comes automatically from ROBOT, see line 22 in the shell script. |
Protégé complains only if it is syntactically correct. Protégé does not check whether every IRI is correct.
Have you tried what happens if the current state of uo-extracted.owl is imported in the OEO? Does Protégé show the |
oeo-imports/uo/extract-uo-module.sh
Outdated
## add prefix for OBO xmlns:obo="http://purl.obolibrary.org/obo/" | ||
# Linux sed -i 's/xmlns:owl/xmlns:obo="http:\/\/purl.obolibrary.org\/obo\/"\xmlns:owl/' uo-module-temp.owl | ||
# windows | ||
(Get-Content -ReadCount 0 uo-temp-extracted.owl) -replace 'xmlns:owl', 'xmlns:obo="http://purl.obolibrary.org/obo/#" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed your script again. I think this line causes the problem with the additional #
. What happens if you delete it here?
(Get-Content -ReadCount 0 uo-temp-extracted.owl) -replace 'xmlns:owl', 'xmlns:obo="http://purl.obolibrary.org/obo/#" | |
(Get-Content -ReadCount 0 uo-temp-extracted.owl) -replace 'xmlns:owl', 'xmlns:obo="http://purl.obolibrary.org/obo/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, seems to work. The prefix can live without the # 👍
ToDo: we change the definition in OEO for unit, therefore we should remove the imported definition in uo-extracted in the shell script |
From OEO meeting 82: or Remove Unit from import and import only the subclasses? |
based on #14 and OpenEnergyPlatform/ontology#1690