On 02/07/14 12:01, Benson Margulies wrote:
I always see two-letter ISO-639-1 language codes. This isn't enough,
not all languages have them.

Does the spec specifically call for these, or does it also allow for -3?

--benson


RDF 1.1 Concepts:

http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal

so it's BCP 47 / RFC 5646

The grammars do not include the RFC grammar (because a big language tag grammar would dwarf the rest).

http://www.w3.org/TR/turtle/#grammar-production-LANGTAG

[144s]  LANGTAG         ::=     '@' [a-zA-Z]+ ('-' [a-zA-Z0-9]+)*

So neutral and the grammars provide a more general match to language codes.

Jena has a language tag parser: LangTag.

        Andy

Reply via email to