query-de9fbb61bd3e3df321aae9e38da1a2f6

rq turtle/ttl

Map of birthplaces

Use at

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map{"hide": "?loc"}
SELECT ?enwp ?image (CONCAT("Born ",STR(YEAR(?birthdate)),", ",?birthplaceLabel) AS ?born) ?loc ?personLabel WHERE {
VALUES ?person {wd:Q234816 wd:Q62530 wd:Q234421 wd:Q231549 wd:Q246135 wd:Q101638 wd:Q15994440 wd:Q230120 wd:Q260378 wd:Q1377789 wd:Q5322139 wd:Q254858 wd:Q6766368 wd:Q7259 wd:Q4949015 wd:Q47152 wd:Q272077 wd:Q198984 wd:Q1284275 wd:Q651786 wd:Q460152 wd:Q230507 wd:Q3263690 wd:Q270855 wd:Q5362637 wd:Q23620545 wd:Q27728558 wd:Q17892 wd:Q36322 wd:Q57286 wd:Q18576000 wd:Q7207 wd:Q45410399
}
OPTIONAL{ ?enwp schema:about ?person ; schema:isPartOf <https://en.wikipedia.org/> }
OPTIONAL{ ?person wdt:P18 ?image }
OPTIONAL{ ?person wdt:P569 ?birthdate }
OPTIONAL{ ?person wdt:P19 ?birthplace. ?birthplace wdt:P625 ?loc. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
                        ?birthplace rdfs:label ?birthplaceLabel.
                        ?person rdfs:label ?personLabel.
                       }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?birthdate"):::projected v5("?birthplace") v7("?birthplaceLabel"):::projected v9("?born") v2("?enwp"):::projected v3("?image"):::projected v6("?loc"):::projected v1("?person") v8("?personLabel"):::projected c3([https://en.wikipedia.org/]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?person/] bind0-->v1 bind00(["wd:Q234816"]) bind00 --> bind0 bind01(["wd:Q62530"]) bind01 --> bind0 bind02(["wd:Q234421"]) bind02 --> bind0 bind03(["wd:Q231549"]) bind03 --> bind0 bind04(["wd:Q246135"]) bind04 --> bind0 bind05(["wd:Q101638"]) bind05 --> bind0 bind06(["wd:Q15994440"]) bind06 --> bind0 bind07(["wd:Q230120"]) bind07 --> bind0 bind08(["wd:Q260378"]) bind08 --> bind0 bind09(["wd:Q1377789"]) bind09 --> bind0 bind010(["wd:Q5322139"]) bind010 --> bind0 bind011(["wd:Q254858"]) bind011 --> bind0 bind012(["wd:Q6766368"]) bind012 --> bind0 bind013(["wd:Q7259"]) bind013 --> bind0 bind014(["wd:Q4949015"]) bind014 --> bind0 bind015(["wd:Q47152"]) bind015 --> bind0 bind016(["wd:Q272077"]) bind016 --> bind0 bind017(["wd:Q198984"]) bind017 --> bind0 bind018(["wd:Q1284275"]) bind018 --> bind0 bind019(["wd:Q651786"]) bind019 --> bind0 bind020(["wd:Q460152"]) bind020 --> bind0 bind021(["wd:Q230507"]) bind021 --> bind0 bind022(["wd:Q3263690"]) bind022 --> bind0 bind023(["wd:Q270855"]) bind023 --> bind0 bind024(["wd:Q5362637"]) bind024 --> bind0 bind025(["wd:Q23620545"]) bind025 --> bind0 bind026(["wd:Q27728558"]) bind026 --> bind0 bind027(["wd:Q17892"]) bind027 --> bind0 bind028(["wd:Q36322"]) bind028 --> bind0 bind029(["wd:Q57286"]) bind029 --> bind0 bind030(["wd:Q18576000"]) bind030 --> bind0 bind031(["wd:Q7207"]) bind031 --> bind0 bind032(["wd:Q45410399"]) bind032 --> bind0 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v1 v2 --"schema:isPartOf"--> c3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P19".-> v5 v5 --"wdt:P625"--> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 v5 --"rdfs:label"--> v7 v1 --"rdfs:label"--> v8 end bind1[/"concat('Born ',str(year-from-dateTime(?birthdate)),', ',?birthplaceLabel)"/] v4 --o bind1 v7 --o bind1 bind1 --as--o v9