Posted by alejandrodf on August 21, 2011 at 10:18pm
I have created a multilingual site using locale module in English and Spanish. When I send a sparql query like this one
PREFIX schema: http://schema.org/
SELECT ?name ?job WHERE {
?x schema:name ?name .
?x schema:jobTitle ?job .
}
I get the name and the job in both languages. Do you know if it's possible to filter the language? I have checked my content types but I can't define a mapping for the language field, so I think I'm not going to be able to do this :(
Thanks in advaced!
Cheers,
Alejandro

Comments
It should be possible to use
It should be possible to use SPARQL's FILTER clause, for example:
SELECT ?name ?job WHERE {
?x schema:name ?name .
?x schema:jobTitle ?job .
FILTER (langMatches(lang(?job),'ES'))
}
would return results with job titles in Spanish.
The reason this doesn't work (at the moment) is that the 'name' and 'job' fields aren't having language tags attached when they're saved to the triplestore.
I'll raise this as an issue on the RDFx module queue.
David
Hi David, Thanks for your
Hi David,
Thanks for your response. This is a must have feature for my project, so I'm going to check the code to try to learn how it's work. I'll try to help with this issue :)
Also I have seen in Configuration >> RDF publishing settings there is a tab called "Translation Set". Do you think this is related? I don't think so, but in case I'm wrong I prefer to ask you!
Thanks for your help!