next up previous contents
Next: RDF Operators Up: Body Previous: Datatype   Contents

XML Language

In the RDF graph, literals can be tagged with an xml:lang attribute such as en or fr. The query language enables to query the language of literals.

Examples : retrieve a resource with "test" in english as label :

?c rdfs:label "test"@en

Retrieve a resource with a title in english :

?doc kmp:title ?t@en

Limitation : query on language can only appear on the value part (the 3rd element of the triple). Hence this is not correct : ?l@en = "Olivier".

A literal in one language is not equal to the same literal in another language. The current implementation distinguishes en-us and en (they are not equal).



Olivier Corby 2005-07-01