query-2ced8dd6731771b1d0de0c9a2ed29dd5
Book French with « Bretagne » in the French label SELECT distinct ?book ?title ?authorLabel WHERE { ?book rdfs:label ?title ;wdt:P31 wd:Q3331189 ; FILTER (lang(?title) = "fr"). FILTER regex (?title, "Bretagne"). SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Book French with « Bretagne » in the French label
SELECT distinct ?book ?title ?authorLabel
WHERE
{
?book rdfs:label ?title ;wdt:P31 wd:Q3331189 ;
FILTER (lang(?title) = "fr").
FILTER regex (?title, "Bretagne").
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?book"):::projected
v1("?title"):::projected
c7(["bd:serviceParam"]):::iri
c5(["wd:Q3331189"]):::iri
c2(["fr"]):::literal
f0[["regex(?title,'Bretagne')"]]
f0 --> v1
f1[["?title = 'fr'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c2
end