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

RFC: RMLTC0015b-CSV & RMLTC0015b-JSON & RMLTC0015b-XML #15

Open
pmaria opened this issue Feb 19, 2020 · 1 comment
Open

RFC: RMLTC0015b-CSV & RMLTC0015b-JSON & RMLTC0015b-XML #15

pmaria opened this issue Feb 19, 2020 · 1 comment

Comments

@pmaria
Copy link

pmaria commented Feb 19, 2020

RFC for:

The R2RML spec states:

A term map with a term type of rr:Literal may have a specified language tag. It is represented by the rr:language property on a term map. If present, its value must be a valid language tag.

The question is what "valid" means here. In RFC 3066 (referenced by the R2RML spec) there is no explicit definition of validity.

Validity is defined in successor BCP 47, and requires next to the language tag being "well-formed", require its "subtags appear in the IANA Language Subtag Registry as of the particular registry date".

Looking at https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal, that requires a language tag to be well-formed, but not valid per se.

From all this it isn't completely clear at the moment which requirements an RML engine should follow.

Now, besides all that, looking at these test-cases, the language tags that are supposedly invalid are "english" and "spanish", yet, taking both RFC 3066 and BCP 47 into account, both are well-formed language tags. They are however invalid according to the BCP 47 definition. But, I have doubts that this level of validation should be required by engines. That would require an engine to keep up with the IANA Subtag Registry.

Proposed:

@chrdebru
Copy link

I agree. Especially given that RDF 1.1 only requires well-formed language tags. We could have two test cases:

  • Considering well-formed tags which should be mandatory
  • Considering valid tags that would not be part of the core test suite, but "nice to have" (i.e., it could give an engine an A+)

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

No branches or pull requests

2 participants