query-6f2ad14d7a607e6f474c5deb0492fbac
Propertiesaward received (P166)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * WHERE {
?item wdt:P166 wd:Q38104 .
?item rdfs:label ?name .
FILTER(lang(?name) = "en")
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Categories" .
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam mwapi:titles ?name .
bd:serviceParam mwapi:category ?category .
bd:serviceParam mwapi:title ?title .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?category"):::projected
v2("?item"):::projected
v1("?name"):::projected
v4("?title"):::projected
c8(["Categories"]):::literal
c3(["wd:Q38104"]):::iri
c10(["en.wikipedia.org"]):::literal
c6(["bd:serviceParam"]):::iri
f0[["?name = 'en'"]]
f0 --> v1
v2 --"wdt:P166"--> c3
v2 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c6 --"mwapi:api"--> c8
c6 --"mwapi:endpoint"--> c10
c6 --"mwapi:titles"--> v1
c6 --"mwapi:category"--> v3
c6 --"mwapi:title"--> v4
end