Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalized language tags. #2039

Closed
afs opened this issue Oct 13, 2023 · 0 comments · Fixed by #2134
Closed

Normalized language tags. #2039

afs opened this issue Oct 13, 2023 · 0 comments · Fixed by #2134
Assignees
Labels
Jena5 Changes relating to Jena5

Comments

@afs
Copy link
Member

afs commented Oct 13, 2023

In RDF 1.1, it says that language tags are compared case insensitively and also that "Lexical representations of language tags MAY be converted to lower case." It is in RDF semantics as D-entailment.

The issue has come to prominence because of work on RDF canonicalization and hashing (RCH) which works on the syntax of graphs. Signing and Verifiable Credentials than rely on RCH. So syntax matters, not the value.

Jena5 will switch to normalized language tags. e.g. "en-GB"
Data should be reloaded to be safe.

https://lists.apache.org/thread/l6trf46ko83vdg3hfzgrvbhgcotzv4xc (2023-09-28)

NB Canonicalization of language tags is different - that involves , for example, replacing the country code with the preferred code.

The correct termninology from BCP47/RFC5646 is "format".

@afs afs added the Jena5 Changes relating to Jena5 label Oct 13, 2023
@afs afs self-assigned this Oct 13, 2023
This was referenced Oct 15, 2023
afs added a commit to afs/jena that referenced this issue Dec 9, 2023
afs added a commit to afs/jena that referenced this issue Dec 23, 2023
afs added a commit to afs/jena that referenced this issue Dec 24, 2023
afs added a commit to afs/jena that referenced this issue Dec 24, 2023
afs added a commit to afs/jena that referenced this issue Dec 24, 2023
afs added a commit to afs/jena that referenced this issue Dec 26, 2023
afs added a commit to afs/jena that referenced this issue Dec 26, 2023
afs added a commit to afs/jena that referenced this issue Dec 26, 2023
@afs afs closed this as completed in #2134 Dec 27, 2023
afs added a commit that referenced this issue Dec 27, 2023
cnanjo pushed a commit to fhircat/jena that referenced this issue Mar 2, 2024
cnanjo pushed a commit to fhircat/jena that referenced this issue Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jena5 Changes relating to Jena5
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant