Skip to content

Fix mappings IRI separator to enable round-tripping#350

Merged
dalito merged 1 commit intomainfrom
issue349-fix-mapping-iri-separator
Feb 25, 2026
Merged

Fix mappings IRI separator to enable round-tripping#350
dalito merged 1 commit intomainfrom
issue349-fix-mapping-iri-separator

Conversation

@dalito
Copy link
Member

@dalito dalito commented Feb 25, 2026

rdf_mappings_to_v1() was joining multiple IRIs with spaces, but the reader (expand_iri_list) splits on newlines. This caused silent data loss on round-trip: the entire space-joined string was treated as a single malformed IRI.

This PR changes all 5 " ".join() calls to "\n".join() to match the read side, consistent with how parent_iris and influenced_by_iris already work.

Closes #349

Change all 5 " ".join() calls for mapping IRIs to "\n".join() to match
the read side, consistent with how parent_iris and influenced_by_iris
already work.
@dalito dalito added this to the 1.0.5 milestone Feb 25, 2026
@dalito dalito self-assigned this Feb 25, 2026
@dalito dalito added the bug Something is not working as expected. label Feb 25, 2026
@dalito dalito moved this from New to In progress in Voc4Cat cross-repo view Feb 25, 2026
@dalito dalito merged commit 564987d into main Feb 25, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Completed in Voc4Cat cross-repo view Feb 25, 2026
@dalito dalito deleted the issue349-fix-mapping-iri-separator branch February 25, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is not working as expected.

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

Potential issue in the Mappings sheet for mulitple IRIs

1 participant