query-a804aa40b1e7de51ebfd84b4b8dd1531
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT
DISTINCT
?item ?itemLabel ?itemDescription ?wdimage # WHAT
?Sdate ?SdatePrecision # WHEN
?where ?whereLabel # WHERE
?articleUrl
WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P21 wd:Q6581072. # female
?item wdt:P18 ?wdimage.
?item wdt:P19 ?where.
?item p:P569/psv:P569 ?SdateNode.
?SdateNode wikibase:timeValue ?Sdate.
?SdateNode wikibase:timePrecision ?SdatePrecision.
OPTIONAL { ?articleUrl schema:about ?item .
?articleUrl schema:inLanguage "es" .
?articleUrl schema:isPartOf <https://es.wikipedia.org/> . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "es" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?Sdate"):::projected
v4("?SdateNode")
v6("?SdatePrecision"):::projected
v7("?articleUrl"):::projected
v1("?item"):::projected
v2("?wdimage"):::projected
v3("?where"):::projected
a1((" "))
c4(["wd:Q6581072"]):::iri
c13(["es"]):::literal
c17(["bd:serviceParam"]):::iri
c15([https://es.wikipedia.org/]):::iri
c2(["wd:Q5"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P21"--> c4
v1 --"p:direct/P18"--> v2
v1 --"p:direct/P19"--> v3
v1 --"p:P569"--> a1
a1 --"p:statement/value/P569"--> v4
v4 --"wikibase:timeValue"--> v5
v4 --"wikibase:timePrecision"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:about".-> v1
v7 --"schema:inLanguage"--> c13
v7 --"schema:isPartOf"--> c15
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c13
end