query-9ae8b50fe26cea383df2dc1225c8f458
Fungi with image not present at Basque Wikipedia ordered by number of sitelinks
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 bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?taxonname ?itemLabel ?irudia ?sitelinks WHERE {
?item wdt:P31 wd:Q16521.
?item wdt:P105 wd:Q7432.
?item wdt:P225 ?taxonname.
?item wdt:P171+ wd:Q27720.
?item wdt:P171+ ?family.
?family wdt:P105 wd:Q37517.
?item wdt:P18 ?irudia.
?item wikibase:sitelinks ?sitelinks.
?wen schema:about ?item.
?wen schema:isPartOf <https://en.wikipedia.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "la,eu". }
FILTER(NOT EXISTS {
?weu schema:about ?item.
?weu schema:inLanguage "eu".
})
}
ORDER BY DESC(?sitelinks)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?family")
v6("?irudia"):::projected
v3("?item"):::projected
v1("?sitelinks"):::projected
v4("?taxonname"):::projected
v7("?wen")
v2("?weu")
c10(["wd:Q27720"]):::iri
c3(["eu"]):::literal
c15([https://en.wikipedia.org/]):::iri
c7(["wd:Q7432"]):::iri
c17(["bd:serviceParam"]):::iri
c11(["wd:Q37517"]):::iri
c19(["la,eu"]):::literal
c5(["wd:Q16521"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?item"):::projected
e0v1("?weu"):::projected
e0c3(["eu"]):::literal
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c3
v3 --"wdt:P31"--> c5
v3 --"wdt:P105"--> c7
v3 --"wdt:P225"--> v4
v3 --"wdt:P171"--> c10
v3 --"wdt:P171"--> v5
v5 --"wdt:P105"--> c11
v3 --"wdt:P18"--> v6
v3 --"wikibase:sitelinks"--> v1
v7 --"schema:about"--> v3
v7 --"schema:isPartOf"--> c15
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c19
end