query-f0e7fa4142a7e58cfc36324149cf2ed3

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?homme ?hommeLabel ?LieuDeNaissanceLabel (CONCAT(STR(?lat),", ",STR(?long)) as ?coord) ?LieuDeDécèsLabel (CONCAT(STR(?lat2),", ",STR(?long2)) as ?coord2) 
WHERE 
  {
  ?homme wdt:P106 wd:Q82955.
  ?homme wdt:P27 wd:Q142.
  ?homme wdt:P570 ?dod. 
  filter(year(?dod)>=1900 && year(?dod)<2000)
  ?homme wdt:P19 ?LieuDeNaissance.
  ?LieuDeNaissance p:P625/psv:P625/wikibase:geoLatitude ?lat.
  ?LieuDeNaissance p:P625/psv:P625/wikibase:geoLongitude ?long.                
  ?homme wdt:P20 ?LieuDeDécès.
  ?LieuDeDécès p:P625/psv:P625/wikibase:geoLatitude ?lat2.
  ?LieuDeDécès p:P625/psv:P625/wikibase:geoLongitude ?long2.       
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en"} 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?LieuDeDécès") v3("?LieuDeNaissance") v9("?coord") v10("?coord2") v1("?dod") v2("?homme"):::projected v4("?lat"):::projected v7("?lat2"):::projected v5("?long"):::projected v8("?long2"):::projected a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) a7((" ")) a8((" ")) c4(["wd:Q82955"]):::iri c15(["bd:serviceParam"]):::iri c17(["fr,en"]):::literal c6(["wd:Q142"]):::iri f0[["year-from-dateTime(?dod) >= '1900^^xsd:integer'year-from-dateTime(?dod) < '2000^^xsd:integer'"]] f0 --> v1 v2 --"p:direct/P106"--> c4 v2 --"p:direct/P27"--> c6 v2 --"p:direct/P570"--> v1 v2 --"p:direct/P19"--> v3 v3 --"p:P625"--> a1 a1 --"p:statement/value/P625"--> a2 a2 --"wikibase:geoLatitude"--> v4 v3 --"p:P625"--> a3 a3 --"p:statement/value/P625"--> a4 a4 --"wikibase:geoLongitude"--> v5 v2 --"p:direct/P20"--> v6 v6 --"p:P625"--> a5 a5 --"p:statement/value/P625"--> a6 a6 --"wikibase:geoLatitude"--> v7 v6 --"p:P625"--> a7 a7 --"p:statement/value/P625"--> a8 a8 --"wikibase:geoLongitude"--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end bind1[/"concat(str(?lat),', ',str(?long))"/] v4 --o bind1 v5 --o bind1 bind1 --as--o v9 bind2[/"concat(str(?lat2),', ',str(?long2))"/] v7 --o bind2 v8 --o bind2 bind2 --as--o v10