开发者

multilingual sparql

开发者 https://www.devze.com 2022-12-31 05:22 出处:网络
I want to query a triple store 开发者_如何学编程which is multilingual. Query that works: SELECT * WHERE {?s ?p \"sdfsdf\"@en}

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

精彩评论

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