query-6ad76521616790bac09ea223bed17270
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 {
SERVICE bd:slice {
?item p:P569 [].
bd:serviceParam bd:slice.offset 0 . # Start at item number (not to be confused with QID)
bd:serviceParam bd:slice.limit 100000 . # List this many items
}
?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((" "))
a2((" "))
c7(["100000^^xsd:integer"]):::literal
c11(["wd:Q6581072"]):::iri
c19(["es"]):::literal
c5(["0^^xsd:integer"]):::literal
c3(["bd:serviceParam"]):::iri
c21([https://es.wikipedia.org/]):::iri
c9(["wd:Q5"]):::iri
subgraph s1["http://www.bigdata.com/rdf#slice"]
style s1 stroke-width:4px;
v1 --"p:P569"--> a1
c3 --"bd:slice.offset"--> c5
c3 --"bd:slice.limit"--> c7
end
v1 --"p:direct/P31"--> c9
v1 --"p:direct/P21"--> c11
v1 --"p:direct/P18"--> v2
v1 --"p:direct/P19"--> v3
v1 --"p:P569"--> a2
a2 --"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"--> c19
v7 --"schema:isPartOf"--> c21
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"wikibase:language"--> c19
end