query-dac765390afcd2bde614b1146d455d60
Deportistas con artículos en español pero no en francés
Sportswomen with pages in Spanish but not in French
PREFIX schema: http://schema.org/
SELECT ?item ?itemLabel ?linkcount WHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P21 wd:Q6581072 . ?item wdt:P106 wd:Q2066131 . ?item wikibase:sitelinks ?linkcount . ?article_ schema:about ?item . ?article_ schema:inLanguage "es" . ?article_ schema:isPartOf https://es.wikipedia.org/ FILTER (?linkcount >= 1) . FILTER NOT EXISTS { ?article schema:about ?item . ?article schema:inLanguage "fr" . ?article schema:isPartOf https://fr.wikipedia.org/ } SERVICE wikibase:label { bd:serviceParam wikibase:language "es, fr" } } GROUP BY ?item ?itemLabel ?linkcount ORDER BY DESC(?linkcount)
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#>
# Deportistas con artículos en español pero no en francés
# Sportswomen with pages in Spanish but not in French
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel ?linkcount WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P21 wd:Q6581072 .
?item wdt:P106 wd:Q2066131 .
?item wikibase:sitelinks ?linkcount .
?article_ schema:about ?item .
?article_ schema:inLanguage "es" .
?article_ schema:isPartOf <https://es.wikipedia.org/>
FILTER (?linkcount >= 1) .
FILTER NOT EXISTS {
?article schema:about ?item .
?article schema:inLanguage "fr" .
?article schema:isPartOf <https://fr.wikipedia.org/>
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "es, fr" }
}
GROUP BY ?item ?itemLabel ?linkcount
ORDER BY DESC(?linkcount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v4("?article_")
v3("?item"):::projected
v1("?linkcount"):::projected
c5([https://fr.wikipedia.org/]):::iri
c10(["wd:Q6581072"]):::iri
c3(["fr"]):::literal
c19(["es, fr"]):::literal
c12(["wd:Q2066131"]):::iri
c14(["es"]):::literal
c17(["bd:serviceParam"]):::iri
c15([https://es.wikipedia.org/]):::iri
c8(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v1 --"schema:isPartOf"--> e0c5
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c5([https://fr.wikipedia.org/]):::iri
e0c3(["fr"]):::literal
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
f0 --> c4
f0 --> c5
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c3
v2 --"schema:isPartOf"--> c5
f1[["?linkcount >= '1^^xsd:integer'"]]
f1 --> v1
v3 --"wdt:P31"--> c8
v3 --"wdt:P21"--> c10
v3 --"wdt:P106"--> c12
v3 --"wikibase:sitelinks"--> v1
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c14
v4 --"schema:isPartOf"--> c15
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c19
end