query-6c8dd8b3b96323cf37a447f375c01550
Deportistas españolas con artículos en español pero no en francés
Spanish 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:P27 wd:Q29 . ?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 ASC(?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 españolas con artículos en español pero no en francés
# Spanish 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:P27 wd:Q29 .
?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 ASC(?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
c21(["es, fr"]):::literal
c14(["wd:Q2066131"]):::iri
c16(["es"]):::literal
c12(["wd:Q29"]):::iri
c19(["bd:serviceParam"]):::iri
c17([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:P27"--> c12
v3 --"wdt:P106"--> c14
v3 --"wikibase:sitelinks"--> v1
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c16
v4 --"schema:isPartOf"--> c17
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end