query-ca6ecfdfb12d0c274a688cdfd237e720
Mammals that are in catalan Wikipedia but not in Basque
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 ?familyLabel ?orderLabel ?sitelinks ?itemLabel WHERE {
?item wdt:P31 wd:Q16521.
?item wdt:P105 wd:Q7432.
?item wdt:P225 ?taxonname.
?item wdt:P171+ wd:Q7377.
?item wdt:P171+ ?family.
?family wdt:P105 wd:Q35409.
?family wdt:P171+ ?order.
?order wdt:P105 wd:Q36602.
?item wikibase:sitelinks ?sitelinks.
?cat schema:about ?item.
?cat schema:isPartOf <https://ca.wikipedia.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "la,eu". }
FILTER(NOT EXISTS {
?wen schema:about ?item.
?wen schema:inLanguage "eu".
})
MINUS {?item wdt:P141 wd:Q237350.}
}
ORDER BY DESC(?sitelinks)
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?cat")
v5("?family")
v3("?item"):::projected
v6("?order")
v1("?sitelinks"):::projected
v4("?taxonname"):::projected
v2("?wen")
c11(["wd:Q35409"]):::iri
c15([https://ca.wikipedia.org/]):::iri
c21(["wd:Q237350"]):::iri
c3(["eu"]):::literal
c7(["wd:Q7432"]):::iri
c10(["wd:Q7377"]):::iri
c17(["bd:serviceParam"]):::iri
c19(["la,eu"]):::literal
c5(["wd:Q16521"]):::iri
c12(["wd:Q36602"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v2("?item"):::projected
e0v1("?wen"):::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
v5 --"wdt:P171"--> v6
v6 --"wdt:P105"--> c12
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
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P141"--> c21
end