{"id":167,"date":"2011-03-13T20:43:13","date_gmt":"2011-03-13T20:43:13","guid":{"rendered":"http:\/\/blog.soton.ac.uk\/tag4fun\/?p=167"},"modified":"2011-03-13T20:43:13","modified_gmt":"2011-03-13T20:43:13","slug":"semantic-web","status":"publish","type":"post","link":"https:\/\/blog.soton.ac.uk\/tag4fun\/2011\/03\/13\/semantic-web\/","title":{"rendered":"Semantic Web"},"content":{"rendered":"<p>The semantic web enables software to understand data on the web (http:\/\/www.w3.org\/2001\/sw\/SW-FAQ). This week I have been looking into ways that semantic data can be added to the application in a standards compliant way.<\/p>\n<p>The first port of call is <a href=\"http:\/\/www.foaf-project.org\/\">FOAF<\/a> where I found that it supports images through the <a href=\"http:\/\/xmlns.com\/foaf\/spec\/#term_Image\">Image<\/a> element. Images can be said to <a href=\"http:\/\/xmlns.com\/foaf\/spec\/#term_depicts\">depict<\/a> something which essentially allows us to say &#8220;This image contains Jonny and Deep&#8221; but does not allow us to be more specific about which part of the image is which person, etc.<\/p>\n<p>This more granular control is offered by pairing FOAF with <a href=\"http:\/\/dublincore.org\/\">Dublin Core<\/a>, specifically the <a href=\"http:\/\/dublincore.org\/documents\/dcmi-terms\/#terms-hasPart\">hasPart<\/a> property.<\/p>\n<p>An example of this is:<br \/>\n<code>&lt;foaf:Image rdf:about=\"http:\/\/example.com\/test.jpg\"&gt;<br \/>\n  &lt;img:height&gt;480&lt;\/img:height&gt;<br \/>\n  &lt;img:width&gt;640&lt;\/img:width&gt;<br \/>\n  &lt;img:area&gt;307200&lt;\/img:area&gt;<br \/>\n  &lt;img:hasPart&gt;<br \/>\n     &lt;img:Polygon&gt;<br \/>\n       &lt;img:polypath&gt;M1 141 L1 141L14 127 L24 127 L28 119 L28 99 L36 69 L59 38 L76 34 L101<br \/>\n40 L113 54 L133 105 L121 129 L122 139 L137 146 L152 166 L169 204 L185 229 L212 273<br \/>\nL229 294 L243 306 L263 315 L264 329 L253 333 L213 327 L204 311 L185 287 L127 201<br \/>\nL128 215 L125 230 L118 238 L112 250 L112 262 L113 270 L124 271 L133 284 L136 302<br \/>\nL132 349 L134 365 L140 428 L134 436 L117 439 L108 446 L102 480 L37 480 L16 449 L7<br \/>\n434 L3 420  L1 141  z&lt;\/img:polypath&gt;<br \/>\n       &lt;img:area&gt;57442&lt;\/img:area&gt;<br \/>\n       &lt;svgr:InPosition&gt;W&lt;\/svgr:InPosition&gt;<br \/>\n       &lt;img:fraction&gt;0.187&lt;\/img:fraction&gt;<br \/>\n       &lt;foaf:regionDepicts&gt;<br \/>\n         &lt;foaf:Person&gt;<br \/>\n           &lt;foaf:name&gt;Jonathan Scott&lt;\/foaf:name&gt;<br \/>\n           &lt;foaf:mbox_sha1sum&gt;0f4a7e36214bb4e06a570d6aec8a131695aeb0e0&lt;\/foaf:mbox_sha1sum&gt;<br \/>\n         &lt;\/foaf:Person&gt;<br \/>\n       &lt;\/foaf:regionDepicts&gt;<br \/>\n     &lt;\/img:Polygon&gt;<br \/>\n  &lt;\/img:hasPart&gt;<\/code><\/p>\n<p>This could be published at a url for example <code>http:\/\/jscott.me\/taggr\/http.example.com.test.jpg.rdf#<\/code> which could then be crawled to automatically populate a remote tagging application. I expect this will be implemented to some extent in the prototype before it is completed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The semantic web enables software to understand data on the web (http:\/\/www.w3.org\/2001\/sw\/SW-FAQ). This week I have been looking into ways that semantic data can be added to the application in a standards compliant way. The first port of call is &hellip; <a href=\"https:\/\/blog.soton.ac.uk\/tag4fun\/2011\/03\/13\/semantic-web\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":159,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6475],"tags":[6499,6500,6495,6498],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-technical-problems","tag-dublin-core","tag-foaf","tag-semantic","tag-semantic-web"],"_links":{"self":[{"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":2,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/posts\/167\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/tag4fun\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}