sparql Working with language tags Getting a language tag from a literal


Literals in RDF may be language tagged strings. These literals have a text part as well as a language tag. For instance, the literal "color"@en has the text part "color" and the language tag "en". In a SPARQL query, use the lang function to get the language of a literal with a language tag. If a literal does not have a language tag, then lang returns the empty string, "".