query-bff5c9016d09f919b42385284b04e6f0
TODO
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 DISTINCT ?bridge ?bridgeLabel ?womanLabel ?city ?cityLabel ?waterbody ?waterbodyLabel (BOUND(?enArticle) AS ?hasEn) (BOUND(?frArticle) AS ?hasFr) WHERE {
?bridge wdt:P31/wdt:P279* wd:Q12280;
wdt:P138 ?woman .
?woman wdt:P21 wd:Q6581072 .
OPTIONAL {
?bridge wdt:P131+ ?city .
?city wdt:P31/wdt:P279* wd:Q486972 .
}
OPTIONAL {
?bridge wdt:P177 ?waterbody .
}
OPTIONAL {
?enArticle a schema:Article;
schema:about ?woman;
schema:isPartOf <https://en.wikipedia.org/>.
}
OPTIONAL {
?frArticle a schema:Article;
schema:about ?woman;
schema:isPartOf <https://fr.wikipedia.org/>.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} ORDER BY ?city
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?bridge"):::projected
v1("?city"):::projected
v5("?enArticle"):::projected
v6("?frArticle"):::projected
v7("?hasEn")
v8("?hasFr")
v4("?waterbody"):::projected
v3("?woman")
a1((" "))
a2((" "))
c11(["schema:Article"]):::iri
c3(["wd:Q12280"]):::iri
c15([https://fr.wikipedia.org/]):::iri
c19(["en"]):::literal
c6(["wd:Q6581072"]):::iri
c8(["wd:Q486972"]):::iri
c14([https://en.wikipedia.org/]):::iri
c17(["bd:serviceParam"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P138"--> v3
v3 --"wdt:P21"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v1
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P177".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."a".-> c11
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> c14
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v6 -."a".-> c11
v6 --"schema:about"--> v3
v6 --"schema:isPartOf"--> c15
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c19
end
bind0[/"bound(?enArticle)"/]
v5 --o bind0
bind0 --as--o v7
bind1[/"bound(?frArticle)"/]
v6 --o bind1
bind1 --as--o v8