query-e0a3ef616c33f2a7302df3ff5d71b972
Request to .. (2022-04-06) ValterVB: Request date: 6 April 2022, byLink to discussions justifying the requestTask descriptionRemove P31=Q21191270 from items extraxct from following query, because already exist P31=Q61220733 that is a subclass of Q21191270.
Use at
- https://query.wikidata.org/sparql
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 ?item ?label WHERE {
?item wdt:P31 wd:Q21191270.
?item wdt:P31 wd:Q61220733.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
?item rdfs:label ?label
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?label"):::projected
c5(["bd:serviceParam"]):::iri
c3(["wd:Q61220733"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q21191270"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P31"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v2
end