odis-arch icon indicating copy to clipboard operation
odis-arch copied to clipboard

450 generate schemaorg to prov mapping

Open pbuttigieg opened this issue 1 year ago • 10 comments

Addressing #450

A GSheet to make the mapping editing easier, here.

pbuttigieg avatar Jul 11 '24 10:07 pbuttigieg

The core PROV terms (what are referred to as Starting Point terms) are mostly covered.

SmartSelect_20240711_141633_Chrome

I'm not convinced that adding the Expanded terms or the Qualified terms is really wise - these, especially the Qualified terms, look like PROV got carried away with itself. The semantics are either better handed by generic models like schema.org, or are convoluted. There may be a way to map via potentialActions, however.

pbuttigieg avatar Jul 11 '24 12:07 pbuttigieg

The Expanded terms are actually reasonably mappable. But things like Collections etc are not appropriate in the PROV domain - this is mission creep on PROV's part. The same is true for Person, Organization, etc. We can still map it I suppsoe, but this is by no means a vote of confidence of such terms.

SmartSelect_20240711_190126_Chrome

pbuttigieg avatar Jul 11 '24 17:07 pbuttigieg

xref https://github.com/ESIPFed/science-on-schema.org/issues/211

@ashepherd I think ProvONE has the same issues of mission creep as the expanded and qualifying PROV terms. We can still map, but I think the PROV realm is reinventing things unnecessarily.

pbuttigieg avatar Jul 11 '24 20:07 pbuttigieg

@matentzn this may be interesting to you, and a quick check of this SSSOM would be appreciated.

pbuttigieg avatar Jul 12 '24 21:07 pbuttigieg

schema-prov.sssom.txt

@pbuttigieg I fixed a few syntactic bugs. Would you like me to implement a sssom mapping registry for ODIS with mapping file validation etc?

matentzn avatar Jul 18 '24 15:07 matentzn

Thanks @matentzn

What would the registry entail? We'll likely have more SSSOM files on the way, thus it sounds sensible

pbuttigieg avatar Jul 18 '24 16:07 pbuttigieg

Here is an example:

https://github.com/mapping-commons/mh_mapping_initiative

Mappings: https://github.com/mapping-commons/mh_mapping_initiative/tree/master/mappings Registry file: https://github.com/mapping-commons/mh_mapping_initiative/blob/master/registry.yml QC checking: https://github.com/mapping-commons/mh_mapping_initiative/blob/master/.github/workflows/qc.yml

Its easy enough to set up, and I am happy to donate one to you!

matentzn avatar Jul 18 '24 17:07 matentzn

Here is an example:

https://github.com/mapping-commons/mh_mapping_initiative

Mappings: https://github.com/mapping-commons/mh_mapping_initiative/tree/master/mappings Registry file: https://github.com/mapping-commons/mh_mapping_initiative/blob/master/registry.yml QC checking: https://github.com/mapping-commons/mh_mapping_initiative/blob/master/.github/workflows/qc.yml

Its easy enough to set up, and I am happy to donate one to you!

@matentzn Sounds great! I'm for it, but I'll have to clear this with the rest of the team.

I'm assuming creating and maintaining mappings in the commons is open source and at no cost?

pbuttigieg avatar Jul 25 '24 14:07 pbuttigieg

I'm assuming creating and maintaining mappings in the commons is open source and at no cost?

100%, we can move it to your own repo if you like!

matentzn avatar Jul 25 '24 14:07 matentzn

@pbuttigieg I have created a minimal mapping registry for you here for inspection:

https://github.com/matentzn/odis-mapping-commons

Here is an example of a PR introducing a breaking change so you can see how QC works:

https://github.com/matentzn/odis-mapping-commons/pull/1

matentzn avatar Aug 04 '24 06:08 matentzn