Skip to content

Update mapping*.csv files to make them valid - #498

Draft
ThomasreburG wants to merge 3 commits into
pan-ontologies:masterfrom
ThomasreburG:ISS-466-SSSOM-Mapping
Draft

ThomasreburG wants to merge 3 commits into
pan-ontologies:masterfrom
ThomasreburG:ISS-466-SSSOM-Mapping

Conversation

@ThomasreburG

Copy link
Copy Markdown
Collaborator

Motivation

The mapping*.csv files should be valid against https://gbv.github.io/sssom-js/

Modification

  • Add object_source and subject_source curie
  • Adjust object_source and subject_source accordingly
  • Change mapping_set_id to URL to the mapping file
  • fix column switches and capital curies in the table

Result

Creates valid JSON-LD mapping files

Related Issues

closes #460

* Add object_source and subject_source curie
* Adjust object_source and subject_source accordingly
* Change mapping_set_id to URL to the mapping file
* Fix column switches and capital curies in the table
@ThomasreburG
ThomasreburG marked this pull request as draft September 17, 2026 13:45
@ThomasreburG

Copy link
Copy Markdown
Collaborator Author

open Questions:

  • Check object_source , link owl or something similar
  • Add mapping files as part of the release asset with own versioning
  • Change mapping_set_id to curie or URL with w3id

@kara-mela

Copy link
Copy Markdown
Collaborator

Thanks for your improvements!

I just checked the files. The HI mapping does not validate for me. I copied the content into the validator and I receive

Missing mapping slots at line 20: subject_id, predicate_id, object_id, mapping_justification

For the rest, we need to discuss the following points

  • panet prefix not working, w3id not resolving
  • mapping_set_id does not include a version, but should
    - include in file name?
  • mapping_set_version should be date of commit. The changes we are doing here also update the mapping. It should be reflected in the version.

@ThomasreburG

Copy link
Copy Markdown
Collaborator Author

If you have a csv file you have to choose SSOM/CSV. SSSOM/TSV is preselected. Otherwise you would have to paste a TSV file with tabs instead of ,

@kara-mela

Copy link
Copy Markdown
Collaborator

I received links for sssom-valid example files.

  • mapping_set_id: is a url to the file in their repo: https://github.com/selgebali/datacite-metadata-toolkit/blob/main/mappings/datacite-dcterms.sssom.tsv
  • additionally, they use mapping_set_version: 0.2.0 and mapping_date: 2026-05-22
    • in my opinion, these two information should reflect the last changes on the file
  • w3id needs further discussion elsewhere

Comment thread mappings/mapping_HI.csv Outdated
# mapping_set_description: Manually curated alignment of the PaNET ontology with the Helmholtz Imaging Vocabulary.
# Intended to be used for ontological analysis.
# mapping_set_id: https://github.com/pan-ontologies/PaNET/blob/master/mappings/mapping_HI.csv
# mapping_set_version: '2025-11-18'

@kara-mela kara-mela Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

mapping_set_version: 'v1.0.1'
mapping_set_date: '2026-10-26' # or any date close to the merge of this PR

Comment thread mappings/mapping_HI.csv Outdated
# subject_source: https://pan-ontologies.github.io/PaNET/latest/index-en.html,,,,,,,,,
# ,,,,,,,,,
# curie_map:
# panet: https://w3id.org/PaN/PaNET/1.3.0/PaNET#

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fix panet prefix and mapping_set_version
and set mapping_set_date
@thamnos

thamnos commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Are the open questions mentioned in Thomas' comment resolved? And Melanie's issue? I'm a bit lost in terms of voting what the status of this issue really is.

@kara-mela

Copy link
Copy Markdown
Collaborator

@thamnos: Thomas and me have discussed my open questions in detail and clarified them. The latest merge request solves all (known) open problems.

@kara-mela

Copy link
Copy Markdown
Collaborator

Information from @paulmillar:

I just checked and seemingly no. There's no version-specific redirections.

We have a download URL for the latest version:

 https://purl.org/pan-science/PaNET/PaNET.owl

https://purl.archive.org/purl/pan-science/PaNET/PaNET.owl
https://github.com/pan-ontologies/PaNET/releases/latest/download/PaNET.owl

but no redirection for a specific version.

I'm now not sure that purl.org could support version-specific URLs.

The v1.3.0 download URL looks like:

https://github.com/pan-ontologies/PaNET/releases/download/v1.3.0/PaNET.owl

However, purl only support for parametric redirection doesn't support
inserting the parameter in the middle (like with "v1.3.0" in the above URL).

I think, this means that we need to keep the 2 prefixes for PaNET for now.

@g-guenther

Copy link
Copy Markdown

If you have a csv file you have to choose SSOM/CSV. SSSOM/TSV is preselected. Otherwise you would have to paste a TSV file with tabs instead of ,

Is there a reason not to use the SSSOM/TSV format? It is the supposed standard: "Implementations MUST support the SSSOM/TSV format. They MAY support the other formats." [1] Consider to replace commas with tabs. You might also consider to use the recommended file name extension '.sssom.tsv'.

@ThomasreburG

Copy link
Copy Markdown
Collaborator Author

If you have a csv file you have to choose SSOM/CSV. SSSOM/TSV is preselected. Otherwise you would have to paste a TSV file with tabs instead of ,

Is there a reason not to use the SSSOM/TSV format? It is the supposed standard: "Implementations MUST support the SSSOM/TSV format. They MAY support the other formats." [1] Consider to replace commas with tabs. You might also consider to use the recommended file name extension '.sssom.tsv'.

Yes this can be done and I have also a tsv version. Currently I just update the csv file, since they where present. The question would be, do we want to have both versions (csv+tsv) inside the repo or maybe switch to tsv?

@kara-mela

Copy link
Copy Markdown
Collaborator

I created the initial mappings as csv, as we already had PaNET in csv format (not a very good reason). I also decided to handle all information of a single mapping in one file, instead of two (as recommended by the Software Development Kit) to avoid too many individual files and keep information together.

I certainly missed the strong recommendation for tsv format and also to use the .sssom.tsv extension. Therefore, I agree with switching to tsv and adding the extension, as this seems to align better with the standard.

Thanks for the insights, @g-guenther.

panet prefix with purl
@kara-mela

Copy link
Copy Markdown
Collaborator

2nd Vote

👍: I agree with the proposed changes.
👎: I DON'T agree with the proposed changes. (Add a comment below.)
👀: I had a look and I want to stay neutral. (This helps us to evaluate the overall feedback.)

@g-guenther

g-guenther commented Nov 12, 2026 •

Copy link
Copy Markdown

For documentation: In today's meeting there were 4 issues addressed concerning this topic.

  1. Trailing comma or tab in CSV/TSV: Issue opened at Trailing comma or tab in CSV/TSV gbv/sssom-js#38
  2. Why is the TSV format preferred over the CSV format? This question does not pertain to the SSSOM Validator/sssom-js repository but rather to the SSSOM repository. That is why I left it out for now.
  3. Separate files for header and mappings block: The common approach is to have header and mappings block in the same file as described in the beginning of 1. At the end of the page it is stated that 'The metadata block MAY be stored in a separate file' 2.
  4. Non-compact URIs in subject_source or object_source header elements: Issue opened at Non-CURIEs in subject_source gbv/sssom-js#39

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.

Check mappings with sssom mapping validator

4 participants