query-1e5779ea10cfcbcb732f6c68fbff393e
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 DISTINCT ?item ?itemLabel
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch "NWA haswbstatement:P31=Q13442814".
?title wikibase:apiOutput mwapi:title.
?item wikibase:apiOutputItem mwapi:item.
}
# BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
?item wdt:P921/wdt:P31/wdt:P279* wd:Q60186.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?title")
a1((" "))
a2((" "))
c6(["www.wikidata.org"]):::literal
c12(["mwapi:item"]):::iri
c2(["bd:serviceParam"]):::iri
c16(["wd:Q60186"]):::iri
c4(["Search"]):::literal
c19(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10(["mwapi:title"]):::iri
c8(["NWA haswbstatement:P31=Q13442814"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:srsearch"--> c8
v1 --"mwapi:apiOutput"--> c10
v2 --"mwapi:apiOutputItem"--> c12
end
v2 --"wdt:P921"--> a1
a1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c16
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c19
end