{"id":902,"date":"2020-02-03T16:51:19","date_gmt":"2020-02-03T16:51:19","guid":{"rendered":"http:\/\/wikidata.wwwnlsrc4.supercp.com\/?p=902"},"modified":"2020-07-29T14:54:33","modified_gmt":"2020-07-29T14:54:33","slug":"linked-dates","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/when-queries\/linked-dates\/","title":{"rendered":"Linked dates"},"content":{"rendered":"\n<h2>Retrieving dates linked to values<\/h2>\n\n\n\n<p>In the previous query, dates were directly linked to the items we selected. But dates are not always directly linked to the items of interest to us. Once you have learned to <a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries\/data-linked-to-values\/retrieving-data-linked-to-values\/\">retrieve data linked to values<\/a>, it is quite easy to retrieve date information related to items. For example, the following query shows the date of birth of the directors of the Star Wars movies on a time scale:<\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23Star%20Wars%20films%20directors%27%20birthday%0A%23defaultView%3ATimeline%0ASELECT%20DISTINCT%20%3Fdirector%20%3FdirectorLabel%20%3Fdate%0AWHERE%20%0A%7B%20%0A%20%20%3Fitem%20wdt%3AP179%20wd%3AQ22092344.%20%20%20%20%20%23%20item%20is%20part%20of%20the%20series%20Star%20Wars%20%28film%20series%29%0A%20%20%3Fitem%20wdt%3AP57%20%3Fdirector.%20%20%20%20%20%20%20%20%20%23%20item%E2%80%99s%20director%20property%E2%80%99s%20value%20is%20collected%20by%20the%20director%20variable%0A%20%20%3Fdirector%20wdt%3AP569%20%3Fdate.%20%20%20%20%20%20%20%20%23%20The%20date%20of%20birth%20of%20the%20director%20is%20collected%20in%20the%20%3Fdate%20variable%0A%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%22.%20%7D%0A%7D\" style=\"width:100%;max-width:100%;height:450px\" frameborder=\"0\"><\/iframe>\n\n\n\n<p>Note the query uses the <a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries\/instances-and-classes\/distinct\/\">DISTINCT\u00a0<\/a>modifier to remove duplicates from the results. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Retrieving dates linked to values In the previous query, dates were directly linked to the items we selected. But dates are not always directly linked to the items of interest to us. Once you have learned to retrieve data linked to values, it is quite easy to retrieve date information related to items. For example, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/902"}],"collection":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":5,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"predecessor-version":[{"id":1475,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/902\/revisions\/1475"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}