Use unaltered prefixed terms with term definitions - #623
Open
niklasl wants to merge 1 commit into
Open
Conversation
Specifically define some `bibdb:` and `ls:` prefixed names as always being used with language containers. Some notes: - JSON-LD 1.1 prohibits defining prefixed names where the expanded IRI differs between term (key) and actual `@id` (see step 14.2.4.2 of https://w3c.github.io/json-ld-api/#create-term-definition). - Previously, "virtual" prefixed terms with our convention for language containers where defined (by adding a `ByLang` to the local name). - Our convention still works for `@vocab`-resolved names, since there is no rule against that ("all bets are off" for regular keys), but prefixed names (presumably) signal a specific meaning). - If need be, we could define other compact terms without prefixes (or at worst define `owl:sameAs` IRIs and map to names actually containing the `ByLang` convention; that could be more confusing though).
kwahlin
approved these changes
Sep 3, 2026
kwahlin
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Let's merge together with libris/lxlviewer#1681 when we've verified that nothing else breaks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specifically define some
bibdb:andls:prefixed names as always being used with language containers.Some notes:
@id(see step 14.2.4.2 of https://w3c.github.io/json-ld-api/#create-term-definition).ByLangto the local name).@vocab-resolved names, since there is no rule against that ("all bets are off" for regular keys), but prefixed names (presumably) signal a specific meaning).owl:sameAsIRIs and map to names actually containing theByLangconvention; that could be more confusing though).