Description
Require a simple ASCII language-tag shape, lowercase it, and serialize lexical with normalizedLanguage for identityKey.
RDF literals distinguish lexical spelling, datatype identifiers, language tags, and local blank-node scope. A token-shape check covers only part of RDF term validity.
Require a simple ASCII language-tag shape, lowercase it, and serialize lexical with normalizedLanguage for identityKey.
When to use this tool
Use RDF Language Tag Literal Pair when you need one explicit RDF term or scope consistency check.
How to use the tool and how it works
- Enter lexical, language. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read normalizedLanguage, identityKey. Use the output convention below.
Require a simple ASCII language-tag shape, lowercase it, and serialize lexical with normalizedLanguage for identityKey.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| lexical | Lexical | Required. Text; maximum UTF-16 length 8192. |
| language | Language | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| normalizedLanguage | Normalized Language | Required. Text; maximum UTF-16 length 8192. |
| identityKey | Identity Key | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"lexical": "colour",
"language": "EN-gb"
},
"output": {
"normalizedLanguage": "en-gb",
"identityKey": "[\"colour\",\"en-gb\"]"
}
} Limitations and assumptions
- This normalizes tag case only; full BCP 47 validity, Unicode normalization, and semantic literal equivalence are not checked.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use a conforming RDF parser and the relevant datatype and language-tag rules for complete graph validation.
References
Similar or alternative tools
- Thesaurus Preferred Alt Label Conflict
Validate aligned label/language pairs and simple language-tag grammar.
- RDF Data Type Language Conflict
Mark hasLanguage for nonempty language.