query-98bd4c54dc0963c80fbc07de09cb42ba
Bilingual names streets Bouzinac
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?place_name_sign ?lang1Label ?lang2Label
WHERE
{
?item p:P1766 ?sign_statement .
?sign_statement a wikibase:BestRank .
?sign_statement ps:P1766 ?place_name_sign .
?sign_statement pq:P407 ?lang1 .
?sign_statement pq:P407 ?lang2 .
FILTER (STR(?lang1) < STR(?lang2))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Bouzinac/Rues
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/09
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?lang1")
v2("?lang2")
v5("?place_name_sign"):::projected
v4("?sign_statement")
c7(["bd:serviceParam"]):::iri
c3(["wikibase:BestRank"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["str(?lang1) < str(?lang2)"]]
f0 --> v1
f0 --> v2
v3 --"p:P1766"--> v4
v4 --"a"--> c3
v4 --"p:statement/P1766"--> v5
v4 --"p:qualifier/P407"--> v1
v4 --"p:qualifier/P407"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end