query-a0f4659f6b056fb5810cdada7eb9d2a5
The following query may be used in an upcoming editathon in Marseille. It outputs items for women in Marseille (place of birth or place of death) with a Wikidata entry, but without a Wikipedia article in French:
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 ?person ?personLabel ?personDescription ?occupation
WHERE {
{ ?person wdt:P19 wd:Q23482 } UNION { ?person wdt:P20 wd:Q23482 }.
?person wdt:P21 wd:Q6581072 .
MINUS { ?sitelink schema:isPartOf <https://fr.wikipedia.org/> ;
schema:about ?person . }
OPTIONAL {?person wdt:P106 ?occupation }.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr" } .
}
Query found at
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Atelier_2018
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Intro-2019-05-13
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?occupation"):::projected
v1("?person"):::projected
v2("?sitelink")
c2(["wd:Q23482"]):::iri
c7([https://fr.wikipedia.org/]):::iri
c5(["wd:Q6581072"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,fr"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P19"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P21"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"schema:isPartOf"--> c7
v2 --"schema:about"--> v1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P106".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end