query-d495561b26405d8238b082d106a4ab92
Generating labels with pairs of square brackets
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?taxon_name ?NT_Flora_ID WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
?item wdt:P5953 ?NT_Flora_ID.
?item wdt:P225 ?taxon_name.
?item wdt:P171 wd:Q81666. # whose genus is Acacia
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;
v4("?NT_Flora_ID"):::projected
v5("?article")
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?taxon_name"):::projected
c11([https://en.wikipedia.org/]):::iri
c2(["bd:serviceParam"]):::iri
c4(["en"]):::literal
c8(["wd:Q81666"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P5953"--> v4
v2 --"wdt:P225"--> v3
v2 --"wdt:P171"--> c8
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c11
end