{"id":255,"date":"2020-01-12T15:45:54","date_gmt":"2020-01-12T15:45:54","guid":{"rendered":"http:\/\/wikidata.wwwnlsrc4.supercp.com\/?page_id=255"},"modified":"2020-07-28T15:01:14","modified_gmt":"2020-07-28T15:01:14","slug":"adding-description","status":"publish","type":"post","link":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/simple-queries\/the-simplest-query\/adding-description\/","title":{"rendered":"Adding description"},"content":{"rendered":"\n<h2>Retrieving an item&#8217;s description<\/h2>\n\n\n\n<p>As was previously explained in the <a href=\"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/introduction\/introduction-to-wikidata\/\">introduction to Wikidata<\/a>, each item on Wikidata has a unique Q number. Items also have a label in one or more languages. In addition, an item may also have a description \u2013 a short phrase in a particular language. Because item labels are not necessarily unique, the\u00a0description\u00a0on a Wikidata item is designed to disambiguate items with the same or similar labels.\u00a0A\u00a0description\u00a0does not need to be unique either; however no two items can have both the same label and the same description. <\/p>\n\n\n\n<p>In WDQS,  the string &#8220;Description&#8221;, like the string &#8220;Label&#8221;, is a special reserved string for retrieving the description of the item that is specified by the variable name. In other words, if a variable in the SELECT clause is named ?NAMEDescription, then WDQS produces the description for the item in variable ?NAME.  <\/p>\n\n\n\n<p> The following query retrieves the films of the Star Wars series, their label and their description. <\/p>\n\n\n\n<iframe class=\"\" src=\"https:\/\/query.wikidata.org\/#%23Star%20Wars%20films%0A%0ASELECT%20%3Fitem%20%20%3FitemLabel%20%3FitemDescription%0AWHERE%20%0A%7B%20%0A%20%20%3Fitem%20wdt%3AP179%20wd%3AQ22092344.%0A%20%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> <br> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Retrieving an item&#8217;s description As was previously explained in the introduction to Wikidata, each item on Wikidata has a unique Q number. Items also have a label in one or more languages. In addition, an item may also have a description \u2013 a short phrase in a particular language. Because item labels are not necessarily [&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":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/255"}],"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=255"}],"version-history":[{"count":13,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":1454,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions\/1454"}],"wp:attachment":[{"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wdqs-tutorial.toolforge.org\/index.php\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}