query-068e12620c2a2d1c25db13e8847e1771
TODO
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 ?item ?itemLabel
WHERE
{
# some code for selecting a set of items
?item ?predicate wd:Q81009.
?property wikibase:directClaim ?predicate .
# include only those with no en wiki article
FILTER NOT EXISTS { ?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> . }
# include only those with a fr wiki article
?article_fr schema:about ?item ;
schema:isPartOf <https://fr.wikipedia.org/> ;
schema:name ?sitelink .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article")
v5("?article_fr")
v2("?item"):::projected
v3("?predicate")
v4("?property")
v6("?sitelink")
c3([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c6([https://fr.wikipedia.org/]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q81009"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 -->v3--> c4
v4 --"wikibase:directClaim"--> v3
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c6
v5 --"schema:name"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end