Skip to content

Add new slot derived_from#548

Merged
cthoyt merged 29 commits into
masterfrom
add-derived-from
May 26, 2026
Merged

Add new slot derived_from#548
cthoyt merged 29 commits into
masterfrom
add-derived-from

Conversation

@cthoyt
Copy link
Copy Markdown
Member

@cthoyt cthoyt commented May 23, 2026

Resolves #537

This PR adds a new field derived_from that enables mapping inference (e.g., via chaining, inversion) to refer back to the mappings from which it was derived.

This was motivated by needs from the NFDI use case, and also would enable nearly full subsumption of the SeMRA data model by the SSSOM data model.

It's been a few weeks since I posted the issue outlining this proposal and got some feedback on slack, so I thought it was time to make a concrete contribution.

  • docs/ have been added/updated if necessary (added inference.md)
  • make test has been run locally
  • tests have been added/updated (if applicable)
  • CHANGELOG.md has been updated.

If you are proposing a change to the SSSOM metadata model, you must

  • provide a full, working and valid example in examples/
  • provide a link to the related GitHub issue in the see_also field of the linkml model
  • provide a link to a valid example in the see_also field of the linkml model
  • update the "Model changes across versions" (in src/docs/spec-models.md) accordingly
  • run SSSOM-Py test suite against the updated model

Implementations

@cthoyt cthoyt marked this pull request as ready for review May 23, 2026 07:28
@cthoyt cthoyt requested review from gouttegd and matentzn and removed request for gouttegd May 23, 2026 07:51
@cthoyt cthoyt changed the title Add derived from Add new slot derived_from May 23, 2026
Copy link
Copy Markdown
Contributor

@gouttegd gouttegd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good to me, but before this can be merged, either ts4nfdi/mapping-sameness-identifier#2 must be resolved or the PR must be amended to remove the bit about the appropriate CURIE/URI prefix for encoding MSIs as CURIEs being “left to the curators”.

Comment thread examples/schema/derived_from.sssom.tsv Outdated
Comment thread examples/schema/derived_from.sssom.tsv Outdated
Comment thread examples/schema/derived_from.sssom.tsv Outdated
Comment thread examples/schema/derived_from.sssom.tsv Outdated
Comment thread project/graphql/sssom_schema.graphql
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/spec-model.md Outdated
Comment thread src/sssom_schema/schema/sssom_schema.yaml Outdated
Comment thread examples/schema/derived_from.sssom.tsv
@cthoyt cthoyt force-pushed the add-derived-from branch from 812e09a to 4e5d541 Compare May 24, 2026 12:48
@cthoyt
Copy link
Copy Markdown
Member Author

cthoyt commented May 24, 2026

@gouttegd thanks for the feedback. I agree that the introduction of MSIs here is problematic because of current unresolved discussions about MSI, so opted to remove references to it in the description.

I also switched to using example.com dummy URI prefixes in the examples

Comment thread src/sssom_schema/schema/sssom_schema.yaml Outdated
gouttegd
gouttegd previously approved these changes May 25, 2026
Copy link
Copy Markdown
Contributor

@gouttegd gouttegd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@cthoyt cthoyt enabled auto-merge (squash) May 25, 2026 07:57
@cthoyt
Copy link
Copy Markdown
Member Author

cthoyt commented May 25, 2026

@matentzn ready for your final review

Copy link
Copy Markdown
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree in principle with all this, but some quick fixes and RFCs

Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/sssom_schema/schema/sssom_schema.yaml Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md
Comment thread src/docs/inference.md Outdated
Comment thread src/sssom_schema/schema/sssom_schema.yaml Outdated
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
cthoyt and others added 2 commits May 25, 2026 19:29
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
@cthoyt cthoyt requested a review from gouttegd May 26, 2026 08:42
@cthoyt
Copy link
Copy Markdown
Member Author

cthoyt commented May 26, 2026

@matentzn @gouttegd ready for re-review

@mapping-commons mapping-commons deleted a comment from matentzn May 26, 2026
@cthoyt
Copy link
Copy Markdown
Member Author

cthoyt commented May 26, 2026

sorry nico, I deleted a comment about fixing the word CURIEs in the text that was resolved already but seemed to be hanging for some reason (github bug?)

Copy link
Copy Markdown
Contributor

@gouttegd gouttegd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few last details, but otherwise still good.

Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/sssom_schema/schema/sssom_schema.yaml Outdated
@cthoyt cthoyt requested a review from gouttegd May 26, 2026 09:54
gouttegd
gouttegd previously approved these changes May 26, 2026
@cthoyt cthoyt enabled auto-merge (squash) May 26, 2026 10:12
Copy link
Copy Markdown
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits but basically done

Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Comment thread src/docs/inference.md Outdated
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
cthoyt and others added 6 commits May 26, 2026 15:12
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
@cthoyt cthoyt requested review from gouttegd and matentzn May 26, 2026 13:16
Copy link
Copy Markdown
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thank you!

@cthoyt cthoyt merged commit f087f5e into master May 26, 2026
3 checks passed
@cthoyt cthoyt deleted the add-derived-from branch May 26, 2026 13:25
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.

[New metadata element]: derived_from

3 participants