query-4cdd2bd9ce3f66c7403a8131c5b8aa7c
taxa with enwiki articles where author name is Peter Brian Heenan
SELECT ?item ?stat ?taxon_name ?article WHERE {
?item p:P225 [ps:P225 ?taxon_name ; pq:P405 wd:Q18637582].
?article schema:about ?item. # and have an article about them
?article schema:isPartOf https://en.wikipedia.org/ . # on English Wikipedia}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?taxon_name ?item
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# taxa with enwiki articles where author name is Peter Brian Heenan
SELECT ?item ?stat ?taxon_name ?article WHERE {
?item p:P225 [ps:P225 ?taxon_name ; pq:P405 wd:Q18637582].
?article schema:about ?item. # and have an article about them
?article schema:isPartOf <https://en.wikipedia.org/> . # on *English* Wikipedia}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?taxon_name ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v2("?item"):::projected
v1("?taxon_name"):::projected
a1((" "))
c7([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q18637582"]):::iri
c11(["en"]):::literal
a1 --"p:statement/P225"--> v1
a1 --"p:qualifier/P405"--> c3
v2 --"p:P225"--> a1
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end