query-626d872afd37970d5876ae363a83049f
Propertiesinstance of (P31)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Table
SELECT ?item ?itemLabel ?itype ?articleEN WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org";
wikibase:api "Generator";
mwapi:generator "categorymembers";
mwapi:gcmtitle "Category:Defunct football leagues in Scotland";.
?item wikibase:apiOutputItem mwapi:item.
}
FILTER BOUND (?item)
?item wdt:P31 ?itype.
?articleEN schema:about ?item . ?articleEN schema:isPartOf <https://en.wikipedia.org/> .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?articleEN"):::projected
v1("?item"):::projected
v2("?itype"):::projected
c13(["Category:Defunct football leagues in Scotland"]):::literal
c15(["mwapi:item"]):::iri
c11(["categorymembers"]):::literal
c7(["en.wikipedia.org"]):::literal
c19([https://en.wikipedia.org/]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["Generator"]):::literal
f0[["bound(?item)"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"mwapi:language"--> c4
end
subgraph s2["http://wikiba.se/ontology#mwapi"]
style s2 stroke-width:4px;
c2 --"mwapi:endpoint"--> c7
c2 --"mwapi:api"--> c9
c2 --"mwapi:generator"--> c11
c2 --"mwapi:gcmtitle"--> c13
v1 --"mwapi:apiOutputItem"--> c15
end
v1 --"wdt:P31"--> v2
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c19