query-b62266b1055f85bea08ccdee1d917704
TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel {
?item wdt:P17 wd:Q41 .
?enwp schema:about ?item; schema:isPartOf <https://en.wikipedia.org/> .
?enwp wikibase:badge ?badge .
FILTER(?badge=wd:Q17437796) # featured article
# FILTER(?badge=wd:Q17437798) # good article
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Xaris333/query
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/01
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?badge")
v3("?enwp")
v2("?item"):::projected
c6([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q41"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?badge = 'wd:Q17437796'"]]
f0 --> v1
v2 --"wdt:P17"--> c3
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c6
v3 --"wikibase:badge"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end