0

I want to query a triple store which is multilingual.

Query that works:

SELECT * WHERE {?s ?p "sdfsdf"@en}

I want "sdfsdf" to be an attribute in general like ?o@en.

How should i query then?

4

1 回答 1

3

按对象的语言过滤:

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

请注意,您的结果将采用形式"sdfsdf"@en,而不仅仅是词汇形式"sdfsdf"。(您可以在 SPARQL 1.1 中做这些额外的工作,并且像 ARQ 这样的处理器使用扩展)

于 2010-05-24T15:39:31.347 回答