query-c77d0a557de0e7b86213a5c00ac88399

rq turtle/ttl

الناس الذين عاشوا في نفس فترة شخص آخر People who lived in the same period as another person People who lived in the same period as another person Lidé, kteří žili ve stejném období jako jiná osoba People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person Les contemporain·e·s d’une personne donnée People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person Persone che hanno vissuto nello stesso periodo di un'altra persona People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person Mensen die in dezelfde periode leefden als een ander People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person Folk som levt under samma tidsperiod som en annan person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person People who lived in the same period as another person

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?personDescription ?birth ?death ?age
{
  ?person wdt:P31 wd:Q5. # instance of human
  ?person wdt:P569 ?birth . # birth date
  ?person wdt:P570 ?death . # death date
   # tell the optimizer that fields doesn’t mix dates, strings, integers or other data types, which simplifies the range comparison
  FILTER (?birth > "1452-04-15"^^xsd:date && ?death < "1519-05-02"^^xsd:dat) # And between these two dates
  bind( year(?death)-year(?birth) as ?age ) # Make a new variable called ?age that we can use
  FILTER (?age > 10 && ?age < 100) # Only find people with realistic ages
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". } # used to display a label
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?age"):::projected v2("?birth"):::projected v3("?death"):::projected v4("?person"):::projected c10(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal f0[["?age > '10^^xsd:integer'?age < '100^^xsd:integer'"]] f0 --> v5 f1[["?birth > '1452-04-15^^xsd:date'?death < s1519-05-02^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f1 --> v2 f1 --> v3 v4 --"wdt:P31"--> c6 v4 --"wdt:P569"--> v2 v4 --"wdt:P570"--> v3 bind2[/"year-from-dateTime(?death) - year-from-dateTime(?birth)"/] v3 --o bind2 v2 --o bind2 bind2 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end