{"id":699,"date":"2004-10-17T12:23:38","date_gmt":"2004-10-17T12:23:38","guid":{"rendered":"http:\/\/beta.robertprice.co.uk\/robblog\/2004\/10\/querying_rdf_in_perl_with_rdf_core-shtml\/"},"modified":"2004-10-17T12:23:38","modified_gmt":"2004-10-17T12:23:38","slug":"querying_rdf_in_perl_with_rdf_core-shtml","status":"publish","type":"post","link":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/","title":{"rendered":"Querying RDF In Perl With RDF::Core"},"content":{"rendered":"<p>\nExtracting data from an <acronym title=\"Resource Definition Framework\">RDF<\/acronym> file seems like an easy job for <a href=\"http:\/\/www.perl.com\/\">Perl<\/a>.\n<\/p>\n<p>\nI have discussed <a href=\"#\">how to parse RDF in Perl<\/a> using the <a href=\"http:\/\/search.cpan.org\/~dpokorny\/RDF-Core-0.31\/lib\/RDF\/Core.pm\">RDF::Core<\/a> module before. In that example I used the <code>getStmts<\/code> functionality. This is fine for simple things, but it&#8217;s a bit messy. Thankfully RDF::Core provides us with a query language similar to <a href=\"http:\/\/www.w3.org\/Submission\/RDQL\/\">RDQL<\/a> to help us get the data we want.\n<\/p>\n<p>\nLet&#8217;s take a quick look at <a href=\"http:\/\/www.robertprice.co.uk\/foaf.rdf\">my <acronym title=\"Friend of a Friend\">FOAF<\/acronym> file<\/a> for some example RDF to query. I know <a href=\"http:\/\/www.iamcal.com\/\">Cal Henderson<\/a>, and this is represented in my <acronym title=\"Friend of a Friend\">FOAF<\/acronym> file as&#8230;\n<\/p>\n<div class=\"code\"><code>&lt;foaf:knows&gt;<br \/>\n&lt;foaf:Person&gt;<br \/>\n&lt;foaf:nick&gt;Cal&lt;\/foaf:nick&gt;<br \/>\n&lt;foaf:name&gt;Cal Henderson&lt;\/foaf:name&gt;<br \/>\n&lt;foaf:mbox_sha1sum&gt;2971b1c2fd1d4f0e8f99c167cd85d522a614b07b&lt;\/foaf:mbox_sha1sum&gt;<br \/>\n&lt;rdfs:seeAlso rdf:resource=\"http:\/\/www.iamcal.com\/foaf.xml\"\/&gt;<br \/>\n&lt;\/foaf:Person&gt;<br \/>\n&lt;\/foaf:knows&gt;<br \/>\n<\/code><\/div>\n<p>\nFor a detailed explantion of the above RDF, have a look at my previous article &#8211; <a href=\"\/robblog\/archive\/2004\/10\/What_Is_An_RDF_Triple_.shtml\">What Is An RDF Triple?<\/a>\n<\/p>\n<p>\nHow could I find Cal&#8217;s foaf file using RDF::Core&#8217;s query language? It&#8217;s really simple and we&#8217;d use the following query.\n<\/p>\n<div class=\"code\"><code>select ?x-&gt;rdfs:seeAlso,<br \/>\nfrom ?x-&gt;foaf:nick{?y}<br \/>\nwhere ?y='Cal'<br \/>\n<\/code><\/div>\n<p>\nThat just means we want to select the value of the triple rdfs:seeAlso where the parent triple has the foaf:nick of the value of Cal.\n<\/p>\n<p>\nWhy stop there? Lets get some more information on Cal.\n<\/p>\n<div class=\"code\"><code>select ?x-&gt;foaf:name, ?x-&gt;foaf:nick, ?x-&gt;rdfs:seeAlso, ?x-&gt;foaf:mbox_sha1sum<br \/>\nfrom ?x-&gt;foaf:nick{?y}<br \/>\nwhere ?y='Cal'<br \/>\n<\/code><\/div>\n<p>\nNow we have Cal&#8217;s name, nickname, address of his FOAF file and the checksum of his email address.\n<\/p>\n<p>\nLet&#8217;s see how to get this all in Perl now.\n<\/p>\n<p>\nWe need to setup some RDF::Core objects and parse the FOAF file before we can query it. We&#8217;ll use this code to do so.\n<\/p>\n<div class=\"code\"><code>## list of known namespaces we might need.<br \/>\nmy $namespaces = {<br \/>\n'foaf'\t=&gt; 'http:\/\/xmlns.com\/foaf\/0.1\/',<br \/>\n'rdfs'\t=&gt; 'http:\/\/www.w3.org\/2000\/01\/rdf-schema#',<br \/>\n'rdf'\t=&gt; 'http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#',<br \/>\n'dc'\t=&gt; 'http:\/\/purl.org\/dc\/elements\/1.1\/',<br \/>\n};<br \/>\n## create our model and storage for triples.<br \/>\nmy $store = RDF::Core::Storage::Memory-&gt;new;<br \/>\nmy $model = RDF::Core::Model-&gt;new(Storage =&gt; $store);<br \/>\n## create node factory for query<br \/>\nmy $factory = RDF::Core::NodeFactory-&gt;new;<br \/>\n## create our parse and parse the Source file.<br \/>\nmy $parser = RDF::Core::Model::Parser-&gt;new(<br \/>\nModel =&gt; $model,<br \/>\nBaseURI =&gt; 'http:\/\/xmlns.com\/foaf\/0.1\/',<br \/>\nSource =&gt; '.\/foaf.rdf',<br \/>\nSourceType =&gt; 'file'<br \/>\n);<br \/>\n$parser-&gt;parse;<br \/>\n<\/code><\/div>\n<p>\nFor a full explanation of the above code, have a look at my previous article &#8211; <a href=\"\/robblog\/archive\/2004\/10\/Parsing_RDF_In_Perl_With_RDF_Core.shtml\">How To Parse RDF In Perl<\/a>.\n<\/p>\n<p>\nWe now need to add the new code.\n<\/p>\n<p>\nFirstly we need to a RDF::Core::Evaluator and a RDF::Core::Query object. These two objects handle the querying of the data held in our <var>$model<\/var>.\n<\/p>\n<div class=\"code\"><code>## create an evaluator based on our model, factory and namespaces.<br \/>\nmy $evaluator = RDF::Core::Evaluator-&gt;new(<br \/>\nModel\t=&gt; $model,<br \/>\nFactory =&gt; $factory,<br \/>\nNamespaces =&gt; $namespaces,<br \/>\n);<br \/>\n## create a query object based on the evaluator.<br \/>\nmy $query = RDF::Core::Query-&gt;new(Evaluator =&gt; $evaluator);<br \/>\n<\/code><\/div>\n<p>\nAs we have a query object, we can just insert our query statement using it&#8217;s query method.\n<\/p>\n<div class=\"code\"><code>## run our query and save the results in $results.<br \/>\nmy $results = $query-&gt;query(\"select ?x-&gt;foaf:name, ?x-&gt;foaf:nick, ?x-&gt;rdfs:seeAlso, ?x-&gt;foaf:mbox_sha1sum from ?x-&gt;foaf:nick{?y} where ?y='Cal'\");<br \/>\n<\/code><\/div>\n<p>\nThis executes the query and returns the results as a reference to an array in the <var>$results<\/var> variable. We need to use the first arrayref returned in <var>$results<\/var> to get the data we need. This will be a list of RDF::Core::Literal or RDF::Core::Resource objects. As these both inherit from RDF::Core::Node, let&#8217;s just use that object&#8217;s getLiteral method to return the string values of the data we need and print it out.\n<\/p>\n<div class=\"code\"><code>## go over the results and print the data out.<br \/>\nforeach my $result (@{$results-&gt;[0]}) {<br \/>\nprint $result-&gt;getLabel, \"n\";<br \/>\n}<br \/>\n<\/code><\/div>\n<p>\nThis will return us the following data.\n<\/p>\n<div class=\"code\"><code>Cal Henderson<br \/>\nCal<br \/>\nhttp:\/\/www.iamcal.com\/foaf.xml<br \/>\n2971b1c2fd1d4f0e8f99c167cd85d522a614b07b<br \/>\n<\/code><\/div>\n<p>\nHere&#8217;s the final code in all it&#8217;s glory.\n<\/p>\n<div class=\"code\"><code>#!\/usr\/bin\/perl -w<br \/>\nuse strict;<br \/>\nuse RDF::Core::Evaluator;<br \/>\nuse RDF::Core::Model;<br \/>\nuse RDF::Core::Model::Parser;<br \/>\nuse RDF::Core::NodeFactory;<br \/>\nuse RDF::Core::Query;<br \/>\nuse RDF::Core::Resource;<br \/>\nuse RDF::Core::Storage::Memory;<br \/>\n## list of known namespaces we might need.<br \/>\nmy $namespaces = {<br \/>\n'foaf'\t=&gt; 'http:\/\/xmlns.com\/foaf\/0.1\/',<br \/>\n'rdfs'\t=&gt; 'http:\/\/www.w3.org\/2000\/01\/rdf-schema#',<br \/>\n'rdf'\t=&gt; 'http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#',<br \/>\n'dc'\t=&gt; 'http:\/\/purl.org\/dc\/elements\/1.1\/',<br \/>\n};<br \/>\n## create our model and storage for triples.<br \/>\nmy $store = RDF::Core::Storage::Memory-&gt;new;<br \/>\nmy $model = RDF::Core::Model-&gt;new(Storage =&gt; $store);<br \/>\n## create node factory for query<br \/>\nmy $factory = RDF::Core::NodeFactory-&gt;new;<br \/>\n## create our parse and parse the Source file.<br \/>\nmy $parser = RDF::Core::Model::Parser-&gt;new(<br \/>\nModel =&gt; $model,<br \/>\nBaseURI =&gt; 'http:\/\/xmlns.com\/foaf\/0.1\/',<br \/>\nSource =&gt; '.\/foaf.rdf',<br \/>\nSourceType =&gt; 'file'<br \/>\n);<br \/>\n$parser-&gt;parse;<br \/>\n## create an evaluator based on our model, factory and namespaces.<br \/>\nmy $evaluator = RDF::Core::Evaluator-&gt;new(<br \/>\nModel\t=&gt; $model,<br \/>\nFactory =&gt; $factory,<br \/>\nNamespaces =&gt; $namespaces,<br \/>\n);<br \/>\n## create a query object based on the evaluator.<br \/>\nmy $query = RDF::Core::Query-&gt;new(Evaluator =&gt; $evaluator);<br \/>\n## run our query and save the results in $results.<br \/>\nmy $results = $query-&gt;query(\"select ?x-&gt;foaf:name, ?x-&gt;foaf:nick, ?x-&gt;rdfs:seeAlso, ?x-&gt;foaf:mbox_sha1sum from ?x-&gt;foaf:nick{?y} where ?y='Cal'\");<br \/>\n## go over the results and print the data out.<br \/>\nforeach my $result (@{$results-&gt;[0]}) {<br \/>\nprint $result-&gt;getLabel, \"n\";<br \/>\n}<br \/>\n<\/code><\/div>\n<p>\nIf you see warnings (when running using <code>-w<\/code> or <code>use warnings;<\/code>) from RDF::Core about use of an uninitialised value before the results are printed don&#8217;t worry. This is just a small bug in RDF::Core and won&#8217;t affect the running of the code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Extracting data from an RDF file seems like an easy job for Perl. I have discussed how to parse RDF in Perl using the RDF::Core module before. In that example I used the getStmts functionality. This is fine for simple things, but it&#8217;s a bit messy. Thankfully RDF::Core provides us with a query language similar &hellip; <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Querying RDF In Perl With RDF::Core&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[47,56],"class_list":["post-699","post","type-post","status-publish","format-standard","hentry","category-dev","tag-perl","tag-rdf"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Querying RDF In Perl With RDF::Core - Robert Price<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Querying RDF In Perl With RDF::Core - Robert Price\" \/>\n<meta property=\"og:description\" content=\"Extracting data from an RDF file seems like an easy job for Perl. I have discussed how to parse RDF in Perl using the RDF::Core module before. In that example I used the getStmts functionality. This is fine for simple things, but it&#8217;s a bit messy. Thankfully RDF::Core provides us with a query language similar &hellip; Continue reading &quot;Querying RDF In Perl With RDF::Core&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2004-10-17T12:23:38+00:00\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"Querying RDF In Perl With RDF::Core\",\"datePublished\":\"2004-10-17T12:23:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/\"},\"wordCount\":456,\"keywords\":[\"Perl\",\"RDF\"],\"articleSection\":[\"Dev\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/\",\"name\":\"Querying RDF In Perl With RDF::Core - Robert Price\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\"},\"datePublished\":\"2004-10-17T12:23:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/querying_rdf_in_perl_with_rdf_core-shtml\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Querying RDF In Perl With RDF::Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Querying RDF In Perl With RDF::Core - Robert Price","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/","og_locale":"en_GB","og_type":"article","og_title":"Querying RDF In Perl With RDF::Core - Robert Price","og_description":"Extracting data from an RDF file seems like an easy job for Perl. I have discussed how to parse RDF in Perl using the RDF::Core module before. In that example I used the getStmts functionality. This is fine for simple things, but it&#8217;s a bit messy. Thankfully RDF::Core provides us with a query language similar &hellip; Continue reading \"Querying RDF In Perl With RDF::Core\"","og_url":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/","og_site_name":"Robert Price","article_published_time":"2004-10-17T12:23:38+00:00","author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/#article","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/"},"author":{"name":"rob","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"Querying RDF In Perl With RDF::Core","datePublished":"2004-10-17T12:23:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/"},"wordCount":456,"keywords":["Perl","RDF"],"articleSection":["Dev"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/","url":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/","name":"Querying RDF In Perl With RDF::Core - Robert Price","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website"},"datePublished":"2004-10-17T12:23:38+00:00","author":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"breadcrumb":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.robertprice.co.uk\/robblog\/querying_rdf_in_perl_with_rdf_core-shtml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"Querying RDF In Perl With RDF::Core"}]},{"@type":"WebSite","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website","url":"https:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=699"}],"version-history":[{"count":0,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/699\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}