query-7c6405cc5d9419892fe951d3eb102a42
MisterSynergy
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?description WHERE {
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Generator";
mwapi:generator "search";
mwapi:gsrsearch "poète français";
mwapi:gsrlimit "max".
?item wikibase:apiOutputItem mwapi:title.
}
?item wdt:P31 wd:Q5.
?item wdt:P27 wd:Q142.
?item schema:description ?description.
FILTER (LANG(?description) = "fr")
FILTER CONTAINS(?description, "poète français")
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;
v1("?description"):::projected
v2("?item"):::projected
c6(["www.wikidata.org"]):::literal
c13(["max"]):::literal
c2(["fr"]):::literal
c10(["search"]):::literal
c4(["bd:serviceParam"]):::iri
c1(["poète français"]):::literal
c17(["wd:Q5"]):::iri
c15(["mwapi:title"]):::iri
c8(["Generator"]):::literal
c19(["wd:Q142"]):::iri
f0[["contains(?description,'poète français')"]]
f0 --> v1
f1[["?description = 'fr'"]]
f1 --> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c4 --"mwapi:endpoint"--> c6
c4 --"mwapi:api"--> c8
c4 --"mwapi:generator"--> c10
c4 --"mwapi:gsrsearch"--> c1
c4 --"mwapi:gsrlimit"--> c13
v2 --"mwapi:apiOutputItem"--> c15
end
v2 --"wdt:P31"--> c17
v2 --"wdt:P27"--> c19
v2 --"schema:description"--> v1
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"mwapi:language"--> c2
end