query-4ff7a17951962d4dbc626cc4d004e78c
SPRAT wikidata items without an enwiki article SELECT ?item ?itemLabel?taxon_name ?sprat_ID WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } ?item wdt:P2455 ?sprat_ID. ?item wdt:P225 ?taxon_name.
MINUS {?article schema:about ?item. # and have an article about them ?article schema:isPartOf https://en.wikipedia.org/ . # on English Wikipedia} } } ORDER BY ?itemLabel ?item ?taxon_name
Use at
- https://query.wikidata.org/sparql
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#>
# SPRAT wikidata items without an enwiki article
SELECT ?item ?itemLabel?taxon_name ?sprat_ID WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
?item wdt:P2455 ?sprat_ID.
?item wdt:P225 ?taxon_name.
MINUS
{?article schema:about ?item. # and have an article about them
?article schema:isPartOf <https://en.wikipedia.org/> . # on *English* Wikipedia}
}
}
ORDER BY ?itemLabel ?item ?taxon_name
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article")
v2("?item"):::projected
v1("?itemLabel"):::projected
v4("?sprat_ID"):::projected
v3("?taxon_name"):::projected
c9([https://en.wikipedia.org/]):::iri
c2(["bd:serviceParam"]):::iri
c4(["en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P2455"--> v4
v2 --"wdt:P225"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c9
end