{"id":81,"date":"2018-02-21T12:42:52","date_gmt":"2018-02-21T12:42:52","guid":{"rendered":"http:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/?p=81"},"modified":"2018-02-22T08:50:23","modified_gmt":"2018-02-22T08:50:23","slug":"structured-linked-open-data","status":"publish","type":"post","link":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/structured-linked-open-data\/","title":{"rendered":"Structured, linked, open data"},"content":{"rendered":"<p><strong>How is data structured on Wikidata?<\/strong><\/p>\n<p>Every item of data on Wikidata represents a unique entity so is given a unique Q number to identify it.<\/p>\n<p><a href=\"https:\/\/www.wikidata.org\/wiki\/Q42\">Douglas Adams is Q42<\/a>. Can you guess what <a href=\"https:\/\/www.wikidata.org\/wiki\/Q13\">Q13<\/a> is?<\/p>\n<p><a href=\"http:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-content\/uploads\/sites\/24\/2018\/02\/Slide12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-83\" src=\"http:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-content\/uploads\/sites\/24\/2018\/02\/Slide12.png\" alt=\"\" width=\"960\" height=\"540\" srcset=\"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-content\/uploads\/sites\/24\/2018\/02\/Slide12.png 960w, https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-content\/uploads\/sites\/24\/2018\/02\/Slide12-300x169.png 300w, https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-content\/uploads\/sites\/24\/2018\/02\/Slide12-768x432.png 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>Within these item pages, information is stored in a series of statements.<\/p>\n<p>A statement consists of claims which are made up of Properties and Values. Properties have a unique P number. The most important is <strong>P31 (instance of)<\/strong> as this is the all important <strong>&#8216;what is it?&#8217;<\/strong> statement.<\/p>\n<p>The <strong>Value<\/strong> can be another item of data on Wikidata so in this way links are built up <em>between<\/em> items on Wikidata.<\/p>\n<p><strong>Statements<\/strong> should be referenced so the information is verifiable. Adding the <strong>Reference URL (P854)<\/strong> is important so we can add in the provenance of where the data was sourced from.<\/p>\n<p><strong>Qualifiers<\/strong> may also be needed to ensure the information is accurate and true. e.g. Jane Belson was only Douglas Adams&#8217; wife for a certain period of time so we need to add a qualifier on the dates for the statement about his spouse to be true.<\/p>\n<h3>Some example use cases<\/h3>\n<p>1. The GeneWiki project &#8211; <a href=\"https:\/\/www.wikidata.org\/wiki\/User:ProteinBoxBot\/SPARQL_Examples#BOSC_2017_examples\">queries<\/a>. (<a href=\"https:\/\/media.ed.ac.uk\/media\/Using+Wikidata+as+an+open%2C+community+maintained+database+of+biomedical+knowledge+-+Andrew+Su\/1_2x6jcank\">video<\/a>)<\/p>\n<p>2. The collections of the National Library of Wales. &#8211; <a href=\"http:\/\/histropedia.com\/showcase\/wikidata-viewer.html?query=%23National%20Library%20of%20Wales%20collection%0ASELECT%20?work%20?title%20?inception%20?precision%20?type_of_work%20?creator%20?genre%20?depicting%20?material_used%20?exhibition_history%20?image%20%0AWHERE%20%7B%0A%7B%20%0ASELECT%20?work%20?inception%20?precision%20?instanceOfItem%20?creatorItem%20?genreItem%20?depictingItem%20?materialUsedItem%20?exhibitionHistoryItem%20(SAMPLE(?image)%20as%20?image)%20(COUNT(?article)%20as%20?rank)%0AWHERE%20%7B%0A?work%20wdt:P195%20wd:Q666063%20.%0A?work%20p:P571\/psv:P571%20?inceptionStatementNode%20.%0A?inceptionStatementNode%20wikibase:timeValue%20?inception%20.%0A?inceptionStatementNode%20wikibase:timePrecision%20?precision%20.%0AOPTIONAL%20%7B?work%20wdt:P18%20?image%7D%0AOPTIONAL%20%7B?article%20schema:about%20?work%7D%0AOPTIONAL%20%7B?work%20wdt:P31%20?instanceOfItem%20%7D%0AOPTIONAL%20%7B?work%20wdt:P170%20?creatorItem%20%7D%0AOPTIONAL%20%7B?work%20wdt:P136%20?genreItem%20%7D%0AOPTIONAL%20%7B?work%20wdt:P180%20?depictingItem%20%7D%0AOPTIONAL%20%7B?work%20wdt:P186%20?materialUsedItem%20%7D%0AOPTIONAL%20%7B?work%20wdt:P608%20?exhibitionHistoryItem%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%7D%20GROUP%20BY%20?work%20?inception%20?precision%20?instanceOfItem%20?creatorItem%20?genreItem%20?depictingItem%20?materialUsedItem%20?exhibitionHistoryItem%0A%7D%20%23end%20subquery%0ASERVICE%20wikibase:label%20%7B%0Abd:serviceParam%20wikibase:language%20%27en%27%20.%0A?work%20rdfs:label%20?title%20.%0A?instanceOfItem%20rdfs:label%20?type_of_work%20.%0A?creatorItem%20rdfs:label%20?creator%20.%0A?genreItem%20rdfs:label%20?genre%20.%0A?depictingItem%20rdfs:label%20?depicting%20.%0A?materialUsedItem%20rdfs:label%20?material_used%20.%0A?exhibitionHistoryItem%20rdfs:label%20?exhibition_history%20.%0A%7D%0A%7D%0AORDER%20BY%20DESC%20(?rank)&amp;url=work&amp;title=title&amp;from=inception&amp;fromPrecision=precision&amp;imageUrl=image&amp;colourCodeBy=type_of_work&amp;threshold=1&amp;filterBy=creator,genre,depicting,material_used,exhibition_history&amp;view=timeline\">Histropedia timeline.<\/a> (<a href=\"https:\/\/media.ed.ac.uk\/media\/Wikidata+loves+Galleries%2C+Libraries%2C+Archives+%26+Museums+-+Jason+Evans%2C+National+Library+of+Wales+at+WikidataCon+2017\/1_748wx3g0\">video<\/a>)<\/p>\n<p>3. <a href=\"https:\/\/tools.wmflabs.org\/scholia\/\">Scholia<\/a> &#8211; create on-the-fly scholarly profiles. (<a href=\"https:\/\/media.ed.ac.uk\/media\/ScholiaA+a+tool+to+handle+scientific+bibliographic+information+in+Wikidata+-+Finn+%C3%85rup+Nielsen+at+WikidataCon+2017\/1_3jvjedfi\">video<\/a>)<\/p>\n<p>4. The <a href=\"http:\/\/everypolitician.org\/\">EveryPolitician<\/a> project. (<a href=\"https:\/\/media.ed.ac.uk\/media\/1_yikc1b8b\">video<\/a>).<\/p>\n<p>5. <a href=\"https:\/\/www.wikidata.org\/wiki\/Wikidata:WikiProject_sum_of_all_paintings\">The Sum of All paintings project<\/a> &#8211; a WikiProject to get an item for every notable painting. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Special:PrefixIndex\/User:Jane023\">Worklists<\/a>.<\/p>\n<p>6. <a href=\"http:\/\/zone47.com\/crotos\/\">Crotos<\/a> &#8211;\u00a0a search and display engine for visual artworks powered by <a href=\"https:\/\/www.wikidata.org\"><b>Wikidata<\/b><\/a> <img decoding=\"async\" src=\"http:\/\/zone47.com\/crotos\/img\/wd_ico_day.png\" alt=\"\" \/> and <a href=\"https:\/\/commons.wikimedia.org\/\"><b>Wikimedia Commons.\u00a0<\/b><\/a><\/p>\n<p>7. Filter results on Crotos to only show images that have particular things depicted e.g. <a href=\"http:\/\/zone47.com\/crotos\/?l=en&amp;p=&amp;nb=20&amp;disp=1&amp;s=boat&amp;y1=-40000&amp;y2=2016&amp;p31=&amp;p361=21542493\">images with boats<\/a>.<\/p>\n<p>7. <a href=\"http:\/\/zone47.com\/crotos\/lab\/cropper\/\">IIIF Cropper on Crotos.\u00a0<\/a> &#8211; crop parts of images to show only what you are interested it is depicting. e.g. <a href=\"http:\/\/zone47.com\/crotos\/lab\/cropper\/p180iiif.php?q=7307\">kisses<\/a><\/p>\n<p>8. The <a href=\"https:\/\/meta.wikimedia.org\/wiki\/WikiCite\">WikiCite<\/a> project &#8211; an initiative (and a series of events) aiming to build a <a class=\"extiw\" title=\"w:bibliographic database\" href=\"https:\/\/en.wikipedia.org\/wiki\/bibliographic_database\">bibliographic database<\/a> in <a title=\"Wikidata\" href=\"https:\/\/meta.wikimedia.org\/wiki\/Wikidata\">Wikidata<\/a> to serve free knowledge. <a class=\"extiw\" title=\"wikidata:Wikidata:WikiProject Source MetaData\" href=\"https:\/\/www.wikidata.org\/wiki\/Wikidata:WikiProject_Source_MetaData\">WikiProject Source MetaData<\/a> is the place on <a title=\"Wikidata\" href=\"https:\/\/meta.wikimedia.org\/wiki\/Wikidata\">Wikidata<\/a> where coordination of these efforts happens.<\/p>\n<p>9. The <a href=\"https:\/\/www.wikidata.org\/wiki\/Wikidata:WikiProject_Zika_Corpus\">Zika Corpus<\/a> (<a href=\"http:\/\/histropedia.com\/showcase\/wikidata-viewer.html?query=SELECT%20?item%20?itemLabel%20?date%20?published_in%20?Author%20?Original_language_of_work%20%0AWHERE%20%7B%0A%7B%20%20%0A%20%20?item%20wdt:P921%20wd:Q202864%20.%0A%7D%20%0AUNION%20%7B%0A%20%20%20%20?item%20wdt:P921%20wd:Q8071861%20.%0A%7D%0A%20%20?item%20wdt:P577%20?date%20.%20%0A%20%20?item%20wdt:P1433%20?publishedIn%20.%0AOPTIONAL%20%7B%20%20?item%20wdt:P50%20?author%20.%20%7D%0AOPTIONAL%20%7B?item%20wdt:P364%20?language%20.%20%7D%0A%20%20SERVICE%20wikibase:label%20%7B%20%0A%20%20%20%20bd:serviceParam%20wikibase:language%20%22%5BAUTO_LANGUAGE%5D,en%22.%20%0A%20%20%20%20?item%20rdfs:label%20?itemLabel%20.%0A%20%20%20%20?author%20rdfs:label%20?Author%20.%0A%20%20%20%20?publishedIn%20rdfs:label%20?published_in%20%20.%0A%20%20%20%20?language%20rdfs:label%20?Original_language_of_work%20.%20%0A%20%20%20%7D%0A%7D&amp;url=item&amp;title=itemLabel&amp;from=date&amp;imageUrl=undefined&amp;colourCodeBy=published_in&amp;filterBy=Author,Original_language_of_work&amp;view=timeline\">timeline<\/a>).<\/p>\n<p>10. MPs&#8217;<a href=\"https:\/\/query.wikidata.org\/embed.html#%23defaultView%3ABubbleChart%0ASELECT%20(COUNT(%3Fmp)%20AS%20%3Fmps)%20%3Fjob%20%3FjobLabel%0AWHERE%20%7B%20%0A%3Fmp%20wdt%3AP39%20wd%3AQ16707842%3B%0A%20wdt%3AP106%20%3Fjob.%0AFILTER%20(%3Fjob%20not%20in%20(wd%3AQ82955%2C%20wd%3AQ486839)%20)%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%7D%20GROUP%20BY%20%3Fjob%20%3FjobLabel%0AORDER%20BY%20DESC(%3Fmps)\"> occupations<\/a> and MPs&#8217; <a href=\"https:\/\/query.wikidata.org\/embed.html#%23defaultView%3ABubbleChart%0ASELECT%20%28COUNT%28%3Fmp%29%20AS%20%3Fmps%29%20%3Feducation%20%3FeducationLabel%20%3FeducationDescription%0AWHERE%20%7B%20%0A%3Fmp%20wdt%3AP39%20wd%3AQ16707842%3B%0A%20wdt%3AP69%20%3Feducation.%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%7D%20GROUP%20BY%20%3Feducation%20%3FeducationLabel%20%3FeducationDescription%0AORDER%20BY%20DESC%28%3Fmps%29\">place of education<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How is data structured on Wikidata? Every item of data on Wikidata represents a unique entity so is given a unique Q number to identify it. Douglas Adams is Q42. Can you guess what Q13 is? Within these item pages, information is stored in a series of statements. A statement consists of claims which are [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":84,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":4,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/posts\/81\/revisions\/88"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/media\/84"}],"wp:attachment":[{"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinking.is.ed.ac.uk\/wikidata-basics\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}