query-6e314671ddb98c1a53538a8dcce5aaf5

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX      foaf:  <http://xmlns.com/foaf/0.1/>
PREFIX      dbpprop:  <http://dbpedia.org/property/>
SELECT ?item ?NobelId  ?name ?LaureateNobelUri ?WDBirth ?NobelBirth ?WDDeath ?NobelDeath {
   SERVICE <http://data.nobelprize.org/sparql> {
      SELECT distinct ?NobelId ?name ?LaureateNobelUri ?NobelBirth ?NobelDeath ?NobelGender WHERE {
      ?LaureateNobelUri <http://data.nobelprize.org/terms/laureateAward> ?NobelAwardid.
      BIND(REPLACE(str(?LaureateNobelUri),"http://data.nobelprize.org/resource/laureate/","") AS ?NobelId)
      OPTIONAL{ ?LaureateNobelUri foaf:name ?name }
      OPTIONAL{ ?LaureateNobelUri foaf:birthday ?NobelBirth}
      OPTIONAL{ ?LaureateNobelUri dbpprop:dateOfDeath ?NobelDeath}
      }
   }
   OPTIONAL {?item wdt:P2888 ?LaureateNobelUri}
   OPTIONAL {?item wdt:P569 ?WDBirth}
   OPTIONAL {?item wdt:P570 ?WDDeath}
}  order by desc(xsd:integer(?NobelId))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?LaureateNobelUri"):::projected v3("?NobelAwardid") v5("?NobelBirth"):::projected v6("?NobelDeath"):::projected v4("?NobelId"):::projected v8("?WDBirth"):::projected v9("?WDDeath"):::projected v7("?item"):::projected v4("?name"):::projected subgraph s1["http://data.nobelprize.org/sparql"] style s1 stroke-width:4px; v2 --http://data.nobelprize.org/terms/laureateAward--> v3 bind0[/"replace(str(?LaureateNobelUri),'http://data.nobelprize.org/resource/laureate/','')"/] v2 --o bind0 bind0 --as--o v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -.http://xmlns.com/foaf/0.1/name.-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -.http://xmlns.com/foaf/0.1/birthday.-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -.http://dbpedia.org/property/dateOfDeath.-> v6 end end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v7 -."wdt:P2888".-> v2 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v7 -."wdt:P569".-> v8 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v7 -."wdt:P570".-> v9 end