Open twhetzel opened 3 days ago
I think it's because the OMIM repo is using the lowercase abbreviation
accidentally, but I'm looking into this.
So it looks like this problem is happening now because in the most recent ODK, it is using pronto==2.5.7
(my local is 2.5.5 and I don't get this error until I upgrade to that).
So it looks like there are 3 things that need to be fixed:
omim
, there needs to be an annotation prop declaration for mondo#ABBREVIATION
: https://github.com/monarch-initiative/omim/pull/144mondo-ingest
, http://purl.obolibrary.org/obo/mondo#ABBREVIATION needs to be added to properties.txt
mondo-ingest
(or in omim
), mondo#ABBREVIATION
needs to be declared as a sub-property of oio:synonymType
.Regarding (3), it seems to make sense to do that in omim
, but I haven't taken a stab at it yet.
Interestingly through in mondo-ingest
, when you look at components/omim.owl
, you see this:
<owl:AnnotationProperty rdf:about="http://purl.obolibrary.org/obo/mondo#GENERATED">
<rdfs:subPropertyOf rdf:resource="http://www.geneontology.org/formats/oboInOwl#SynonymTypeProperty"/>
</owl:AnnotationProperty>
But this does not exist in the component-download-omim.owl.owl
. So it appears this is being added during the goal $(COMPONENTSDIR)/omim.owl
, but I can't see where it's doing that.
Anyway I think I should add the sub-property in the omim
repo instead.
@joeflack4 can you use http://purl.obolibrary.org/obo/OMO_0003000
in the OMIM repo for the abbreviation and then add a step when the component is built in the mondo-ingest repo to change from http://purl.obolibrary.org/obo/OMO_0003000
to http://purl.obolibrary.org/obo/mondo#ABBREVIATION
and any other needed mondo-ingest changes? This is my preferred solution.
This should follow what is being done with DOID where it uses OMO_0003012
(acronym) and these values should be treated as abbreviations in the synonym sync.
#GENERATED
is being added in $(COMPONENTSDIR)/omim.owl
by --update ../sparql/fix-labels-with-brackets.ru \
We can do that as well, if you wish.
I just asked Claude, and the synonym type declaration appears to just be a one liner:
graph.add((custom_property, RDFS.subPropertyOf, synonym_type))
Though I of course can't say 100% that it'd fix it; I think so though.
But if this is what you prefer, I'll definitely do that.
If it's what other sources are doing, that also makes it a good idea. And it is consistent with the OMIM repo of using a wide variety of already existing properties in the OBO universe (e.g. lots from RO).
#GENERATED is being added in $(COMPONENTSDIR)/omim.owl by --update ../sparql/fix-labels-with-brackets.ru \
Ah yes, that's right! Thanks.
The full build on
develop
fails with the error below.The synonym type and abbreviation properties in the omim.owl from the 15-Sep-2024 Tagged release are incorrect as well.
OMIM -- Incorrect IRIs
MONDO - Correct IRIs
@joeflack4 can you check if this error is because of the incorrect IRIs in the released omim files compared to what they should be in Mondo or if this is because the omim files are using the Mondo specific abbreviation property, e.g.
http://purl.obolibrary.org/obo/mondo#ABBREVIATION
instead of the OBO standard property ofhttp://purl.obolibrary.org/obo/OMO_0003000
or some additional issue (e.g. the correct IRI needs to be in a config file)?Build Error Log from `develop`
``` ... python3 ../scripts/migrate.py \ --ontology-path components/omim.owl \ --mondo-mappings-path tmp/mondo.sssom.tsv \ --onto-config-path metadata/omim.yml \ --mapping-status-path reports/omim_mapping_status.tsv \ --min-id 850056 \ --max-id 999999 \ --mondo-terms-path reports/mirror_signature-mondo.tsv \ --slurp-dir-path slurp/ \ --outpath slurp/omim.tsv /usr/local/lib/python3.10/dist-packages/pronto/ontology.py:283: NotImplementedWarning: cannot process plain `owl:AnnotationProperty` cls(self).parse_from(_handle) # type: ignore Traceback (most recent call last): File "/work/src/ontology/../scripts/migrate.py", line 284, inBuild Error Log from `main`
``` ... python3 ../scripts/migrate.py \ --ontology-path components/omim.owl \ --mondo-mappings-path tmp/mondo.sssom.tsv \ --onto-config-path metadata/omim.yml \ --mapping-status-path reports/omim_mapping_status.tsv \ --min-id 850056 \ --max-id 999999 \ --mondo-terms-path reports/mirror_signature-mondo.tsv \ --slurp-dir-path slurp/ \ --outpath slurp/omim.tsv /usr/local/lib/python3.10/dist-packages/pronto/ontology.py:283: NotImplementedWarning: cannot process plain `owl:AnnotationProperty` cls(self).parse_from(_handle) # type: ignore Traceback (most recent call last): File "/work/src/ontology/../scripts/migrate.py", line 278, in