{"id":47,"date":"2009-11-02T20:37:08","date_gmt":"2009-11-02T19:37:08","guid":{"rendered":"http:\/\/blog.soton.ac.uk\/webteam\/2009\/11\/02\/anonymos-blibbles-in-rdf\/"},"modified":"2009-11-02T21:35:21","modified_gmt":"2009-11-02T20:35:21","slug":"anonymos-blibbles-in-rdf","status":"publish","type":"post","link":"https:\/\/blog.soton.ac.uk\/webteam\/2009\/11\/02\/anonymos-blibbles-in-rdf\/","title":{"rendered":"Anonymos blibbles in RDF"},"content":{"rendered":"<p>I learned today that you are allowed to name the little anonymous bits in RDF with URIs, and in fact it makes things easier as they don&#8217;t keep getting assigned new URIs each time someone decodes them.<\/p>\n<p>So take this bit of RDF:<\/p>\n<pre>&lt;<span>bibo:Article<\/span><span> rdf:about<\/span>=<span>\"http:\/\/eprints.ecs.soton.ac.uk\/id\/eprint\/23\"<\/span>&gt;\r\n\t&lt;<span>dct:creator<\/span><span> \r\nrdf:resource<\/span>=<span>'http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242'<\/span><span>\/<\/span>&gt;\r\n\t&lt;<span>bibo:authorList<\/span>&gt;\r\n\t\t&lt;<span>rdf:Seq<\/span>&gt;<\/pre>\n<pre>\t\t\t&lt;<span>rdf:_1<\/span><span> \r\nrdf:resource<\/span>=<span>'http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242'<\/span><span>\/<\/span>&gt;\r\n               \u00a0&lt;\/<span>rdf:Seq<\/span>&gt;\r\n\t&lt;\/<span>bibo:authorList<\/span>&gt;\r\n&lt;\/<span>bibo:Article<\/span>&gt;<\/pre>\n<p>Apparently I could give rdf:about attributes to the subelements:<\/p>\n<pre>&lt;<span>bibo:Article<\/span><span> rdf:about<\/span>=<span>\"http:\/\/eprints.ecs.soton.ac.uk\/id\/eprint\/23\"<\/span>&gt;\r\n\t&lt;<span>dct:creator<\/span><span> \r\nrdf:resource<\/span>=<span>'http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242'<\/span><span>\/<\/span>&gt;\r\n\t&lt;<span>bibo:authorList<\/span>&gt;\r\n\t\t&lt;<span>rdf:Seq<\/span> <span>\r\nrdf:about<\/span>=<span>\"http:\/\/eprints.ecs.soton.ac.uk\/id\/eprint\/23#authorlistseq\"<\/span>&gt;\r\n\t\t\t&lt;<span>rdf:_1<\/span><span> \r\nrdf:resource<\/span>=<span>'http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242'<\/span><span>\/<\/span>&gt;<\/pre>\n<pre>\t\t&lt;\/<span>rdf:Seq<\/span>&gt;\r\n\t&lt;\/<span>bibo:authorList<\/span>&gt;\r\n&lt;\/<span>bibo:Article<\/span>&gt;<\/pre>\n<p>This makes me happier as it means I can more easily understand how we get from RDF+XML to triples, and back. Only every other depth of tag can have a rdf:about as it alternates between thing-tags and relationship tags.<\/p>\n<p>A second cool thing that it helps to have my head-around is the meaning of the thing-tags (not the relationship tags). Basicically:<\/p>\n<pre>&lt;any-old-tag&gt;\r\n  \u00a0&lt;rdf:type rdf:resource=\"http:\/\/badger.org\/ns#burrow\"\/&gt;\r\n   ....\r\n&lt;\/any-old-tag&gt;<\/pre>\n<p>means the same as:<\/p>\n<pre>&lt;myns:burrow xmlns:myns=\"http:\/\/badger.org\/ns#b\"&gt;\r\n  ....\r\n&lt;\/myns:burrow&gt;<\/pre>\n<p>(ignoring the information from any-old-tag)<\/p>\n<p>This is still a learning process, so if I&#8217;ve made any mistakes, let me know at cjg@ecs.soton.ac.uk &#8212; it&#8217;s a venial sin to leave misinformation lying around the web!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I learned today that you are allowed to name the little anonymous bits in RDF with URIs, and in fact it makes things easier as they don&#8217;t keep getting assigned new URIs each time someone decodes them. So take this bit of RDF: &lt;bibo:Article rdf:about=&#8221;http:\/\/eprints.ecs.soton.ac.uk\/id\/eprint\/23&#8243;&gt; &lt;dct:creator rdf:resource=&#8217;http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242&#8217;\/&gt; &lt;bibo:authorList&gt; &lt;rdf:Seq&gt; &lt;rdf:_1 rdf:resource=&#8217;http:\/\/eprints.ecs.soton.ac.uk\/resource\/person\/242&#8217;\/&gt; \u00a0&lt;\/rdf:Seq&gt; &lt;\/bibo:authorList&gt; &lt;\/bibo:Article&gt; Apparently [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[803363],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-rdf"],"_links":{"self":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":8,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/47\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}