开发者

multilingual sparql

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?


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜