query-925447341044c732b03819f8b2be3067
How can we restrict this query to get those that don't exist on French Wikipedia (language B)? I have tried the following:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?itemLabel ?sitelink WHERE {
?sitelink schema:isPartOf <https://it.wikipedia.org/>;
schema:about ?item;
wikibase:badge wd:Q17437796 . # Featured Article
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
FILTER NOT EXISTS {
?article schema:about ?item .
?article schema:isPartOf <https://fr.wikipedia.org/> . # Existing article on frwiki for the item.
}
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v3("?item")
v1("?itemLabel"):::projected
v4("?sitelink"):::projected
c8(["bd:serviceParam"]):::iri
c3([https://fr.wikipedia.org/]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4([https://it.wikipedia.org/]):::iri
c6(["wd:Q17437796"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://fr.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c3
v4 --"schema:isPartOf"--> c4
v4 --"schema:about"--> v3
v4 --"wikibase:badge"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end