Skip to content

Define no-language terms alongside ByLang forms - #630

Merged
niklasl merged 2 commits into
developfrom
feature/no-language-terms
Sep 30, 2026
Merged

niklasl merged 2 commits into
developfrom
feature/no-language-terms

Conversation

@niklasl

@niklasl niklasl commented Sep 29, 2026

Copy link
Copy Markdown
Member

This defines no-language terms alongside our *ByLang forms and move set definitions for same terms from kbv to shared. Compaction using this fix ensures that no @none keys appear in the (*ByLang) language containers, since the JSON-LD compaction algorithm prefers the null language terms in that case.

This should be enough to make data imported using any format (see libris/librisxl#1838) gets compacted to our specific idiomatic form. (Note that framing to embed blanks is a separate step.)

and move set definitions for same terms from kbv to shared.
@niklasl
niklasl requested review from kwahlin and olovy September 29, 2026 13:00

@olovy olovy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

See comments about set vs not set

Comment thread sys/context/shared.jsonld Outdated
Comment thread sys/context/shared.jsonld Outdated
Comment thread sys/context/shared.jsonld Outdated
Comment thread sys/context/shared.jsonld Outdated
@niklasl

niklasl commented Sep 29, 2026

Copy link
Copy Markdown
Member Author

@olovy Good call! on the non-sets I might also rework this a little (the balance between base, shared and kbv is brittle and should be removed; but until then we may need to keep more of this in shared).

@niklasl

niklasl commented Sep 29, 2026 •

Copy link
Copy Markdown
Member Author

It makes sense to allow for multiple change notes though, but we could revise that separately... 🤔

EDIT: Keeping changeNote as @set container (the other SKOS note properties (editorialNote and historyNote) were already defined as such).

to fix building syscore and ensure terms are shaped and remapped (we aim
to move away from this brittle balance).

Also remove spuriously added set container declarations for title,
prefLabel, and definition.
@niklasl
niklasl merged commit d2325a2 into develop Sep 30, 2026
@niklasl
niklasl deleted the feature/no-language-terms branch September 30, 2026 07:56
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.

2 participants