Validate prefix maps against Semantic Farm - #73
Conversation
|
I like the idea and allowed CI to run for you as new contributor. ...as the CI runs show such checks should be in place. |
|
Before we merge this, we should fix #74 to keep CI green. |
|
We also need to take a look at why we have some prefixes in our LinkML schema. For the Prefix dcatap_linkml, I would like to get feedback from @dalito, @markdoerr, and @StroemPhi if we should even implement this. I opened an Issue at biopragmatics/bioregistry#1868, which we could use as a draft. |
|
As I just wrote to @HendrikBorgelt via RC, I'm for registering all our namespaces also in the Semantic Farm to make use of @cthoyt's automated checks. And I'm for snake_casing. |
|
regarding AFO, most of the subspaces were already in Semantic Farm. I added one for allotrope.equipment in biopragmatics/bioregistry#1919 |
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex Revert "prepared schema files for prefixes by the semantic farm" This reverts commit f710e24. prepared schema files for prefixes by the semantic farm As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
As discussed in PR nfdi-de#73, I changed prefixes: dcatapplus --> dcat_ap_plus iana --> iana.mediatype: https://www.iana.org/assignments/media-types/ SOSA --> sosa AFE --> allotrope.equipment Deleted: vl & ex
Motivation
LinkML doesn't support modelers in defining meaningful prefix maps.
Therefore, we have to look to external tooling to do so. I wrote about tooling in the Semantic Farm that supports modelers to define meaningful prefix maps: https://cthoyt.com/2026/01/06/bioregistry-linkml-validation.html
Summary of Changes
This PR adds the Semantic Farm LinkML prefix map validation / feedback workflow into the tests in this repository. It immediately surfaces several issues, some of which could be added as new prefixes in the Semantic Farm, and some of which might need to be reconsidered.
This PR also bumps the minimum python version from 3.9 to 3.10 - 3.9 is past end of life and software like Bioregistry (and soon, LinkML) don't support it.
Errors in DCAT-AP LinkML
$ bioregistry validate linkml --use-preferred https://github.com/nfdi-de/dcat-ap-plus/blob/main/src/dcat_ap_plus/schema/dcat_ap_linkml.yamlgives:
https://www.iana.org/assignments/media-types/Errors in DCAT-AP Plus
$ bioregistry validate linkml --use-preferred https://github.com/nfdi-de/dcat-ap-plus/blob/main/src/dcat_ap_plus/schema/dcat_ap_plus.yamlgives:
https://www.iana.org/assignments/media-types/allotrope.equipmentin biopragmatics/bioregistry#1919, switch to using that instead of AFESee Also
P.S. I made this PR biopragmatics/bioregistry#1866 to expose this functionality more nicely :)