query-b6b8858eaf17783a76c6ef6766a7d99b
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?type ?typeLabel WHERE { {
SELECT ?item WHERE {?item wdt:P31/wdt:P279* wd:Q928830;wdt:P5817 wd:Q55654238.
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "EN.wikipedia.org";
wikibase:api "Generator";
mwapi:generator "search";
mwapi:gsrsearch "WAS A";
mwapi:gsrlimit "max".
?item wikibase:apiOutputItem mwapi:item .
}
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} LIMIT 5000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
c5(["wd:Q55654238"]):::iri
c15(["WAS A"]):::literal
c19(["mwapi:item"]):::iri
c17(["max"]):::literal
c22(["en"]):::literal
c3(["wd:Q928830"]):::iri
c13(["search"]):::literal
c7(["bd:serviceParam"]):::iri
c9(["EN.wikipedia.org"]):::literal
c11(["Generator"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P5817"--> c5
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c7 --"mwapi:endpoint"--> c9
c7 --"mwapi:api"--> c11
c7 --"mwapi:generator"--> c13
c7 --"mwapi:gsrsearch"--> c15
c7 --"mwapi:gsrlimit"--> c17
v1 --"mwapi:apiOutputItem"--> c19
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"mwapi:language"--> c22
end