Skip to content

Register the FAIR transforms by their PURLs instead of keeping copies - #35

Open
matentzn wants to merge 1 commit into
mainfrom
fair-map-sot
Open

matentzn wants to merge 1 commit into
mainfrom
fair-map-sot

Conversation

@matentzn

Copy link
Copy Markdown
Contributor

mapping-commons/fair-mappings-schema is now the source of truth for the two FAIR transformations and their slot-level SSSOM sets (mapping-commons/fair-mappings-schema#23). The copies in transforms/ and mappings/ had already drifted from it: old namespace, no creator handling, and the SSSOM set missing two rows.

  • registry.yml lists the four files by their PURLs, https://w3id.org/fair-map/transforms/{sssom,linkmlmap}-to-fair and https://w3id.org/fair-map/mappings/{sssom,linkmlmap}-to-fair, instead of the w3id.org/mapping-commons/... ids, which never resolved.
  • _process_transform_registry fetches each file from its mapping_set_id (or mirror_from) rather than looking in transforms/ and mappings/, which are removed.
  • build.yml now triggers on registry.yml instead of transforms/**. README and CONTRIBUTING point at fair-mappings-schema, and the "add a new format" steps say to add the transform there and give it a PURL.

Merge this last, after mapping-commons/fair-mappings-schema#23 and the w3id PR (perma-id/w3id.org#7147). The push to registry.yml triggers the rebuild, and until the PURLs resolve the four entries fail to fetch and drop out of data/mapping-specifications.json.

I ran _process_transform_registry on the new registry.yml, with each PURL served from the file on the fair-mappings-schema branch. All four entries come out with the new ids. I couldn't run the full ETL, because pyproject.toml pins fair-mappings to an old add-cli commit that still has scoring.py, which the released package no longer ships.

mapping-commons/fair-mappings-schema is now the source of truth for the
two transformations and their slot-level SSSOM sets, and the copies here
had already drifted from it. registry.yml lists the four files by their
https://w3id.org/fair-map/ PURLs, the ETL fetches each one from its
mapping_set_id (or mirror_from), and transforms/ and mappings/ go.

The registry workflow now runs on changes to registry.yml rather than
transforms/, and the README and CONTRIBUTING point at the new home.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant