query-281fe71000ee2f462ce7395df6c7dedc
Iguania species names that have a year of publication but no author
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 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#>
SELECT ?taxonitem ?taxonname
WHERE
{
?taxonitem wdt:P171+ wd:Q661136. # Iguania
?taxonitem p:P105 ?rank.
?rank ps:P105 wd:Q7432. # species
?taxonitem p:P225 ?name.
?name ps:P225 ?taxonname.
FILTER EXISTS {
?name pq:P574 [] . # Year of taxon publication
}
FILTER NOT EXISTS {
?name pq:P405 [] . # taxon author
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?name")
v3("?rank")
v2("?taxonitem"):::projected
v4("?taxonname"):::projected
a2((" "))
a1((" "))
c4(["wd:Q661136"]):::iri
c13(["en"]):::literal
c7(["wd:Q7432"]):::iri
c11(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P405"--> e0a1
e0v1("?name"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"p:qualifier/P405"--> a1
f1[[" "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:qualifier/P574"--> e1a1
e1v1("?name"):::projected
e1a1((" ")):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> a2
v1 --"p:qualifier/P574"--> a2
v2 --"p:direct/P171"--> c4
v2 --"p:P105"--> v3
v3 --"p:statement/P105"--> c7
v2 --"p:P225"--> v1
v1 --"p:statement/P225"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end