views:

20

answers:

1

i want to query a triple store which is multilingual ,

Query that works :

select * where {?s ?p "sdfsdf"@en}

i want that "sdfsdf" to be an attribute in general like ?o@en

how should i query then ?

+1  A: 

Filter by the language of the object:

select * where { ?s ?p ?o . filter (lang(?o) = "en") }

Note that your results will be of the form "sdfsdf"@en, rather than just the lexical form "sdfsdf". (You can do that additional work in SPARQL 1.1, and processors like ARQ using extensions)