{"id":2679,"date":"2015-05-22T15:18:09","date_gmt":"2015-05-22T15:18:09","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=2679"},"modified":"2024-08-20T15:15:19","modified_gmt":"2024-08-20T15:15:19","slug":"sparql-on-wordpress","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/sparql-on-wordpress\/","title":{"rendered":"SPARQL on WordPress"},"content":{"rendered":"\n<p>For various reasons I needed to look at SPARQL again. What&#8217;s the easiest way to put it up?, <acronym title=\"i.e. on this wordpress instance\">Here!<\/acronym> I&#8217;ve been working with <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/lh-tools\/\">LH-Tools<\/a> which <a href=\"https:\/\/shawfactor.com\/2012\/03\/29\/lh-tools-a-sparql-endpoint-for-wordpress\/\">is commented on at its authors site,<\/a> and <a href=\"https:\/\/wordpress.org\/plugins\/lh-rdf\/\">LH-RDF<\/a>. I did not get this to finish satisfactorily, mainly based on my lack of SPARQL skills. <em>May 2015<\/em> I returned to this page sporadically. Here are my notes &#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>LH-Tools implements a SPARQL endpoint, and LH-RDF implements a series of alternative RDF schemas. LH-RDF has been deactivated at the moment, and so I no longer have the SPARQL query screen available.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2015\/05\/w3cSPARQL-logo.png\"><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"76\" src=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2015\/05\/w3cSPARQL-logo.png\" alt=\"\" class=\"wp-image-2680\" srcset=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2015\/05\/w3cSPARQL-logo.png 392w, https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2015\/05\/w3cSPARQL-logo-300x58.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><\/figure><\/div>\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/poolparty-thesaurus\/\">Pool Party<\/a> are now playing. i,e. there&#8217;s <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/poolparty-thesaurus\/\">a Pool Party plugin<\/a>.<\/p>\n\n\n\n<p>I have errors occurring when using LH-RDF; see the comments to track. <em>Jan 2017<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Queries<\/h3>\n\n\n\n<p>I think that, <code>http:\/\/${SITENAME}\/feed\/rdf<\/code> offers rdf based on standard wordpress functionality, although it seems to have a limited number of entries. LH Tools via its settings panel can use this as the query target. This seems to be working. The settings panel has been used to point the query screen at the default feed URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Headers<\/h3>\n\n\n\n<p>These applications and wordpress do not write the HTML &lt;link&gt; record. I&nbsp; need to check if this is still true. (How to best&nbsp; insert <a title=\"here is an example posted at stack overflow\" href=\"http:\/\/stackoverflow.com\/questions\/20938159\/working-with-wordpress-header-php-how-to-generate-link-alternate-dynamically\">the code into header.php<\/a>, or do I have to get inside the plugin code?) <em>May 2015<\/em>. I don&#8217;t understand this, the documentation for LH-RDF claims it does, but it&#8217;s otherwise broken at the moment.<em> Jan 2017.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">LH-RDF<\/h3>\n\n\n\n<p>There is a readme file in the LH-RDF plugins directory, by re-saving the permalinks options the pretty rdf name becomes visible.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>https:\/\/davelevy.info\/wiki\/feed\/lhrdf<\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/?feed=lhrdf&amp;lhrdf=json\">https:\/\/davelevy.info\/wiki\/?feed=lhrdf&amp;lhrdf=json<\/a>, the json and sioc feeds gnerate errors.<\/li>\n<\/ul>\n\n\n\n<p>However in the summer of 2015, the LH RDF panel needed <a href=\"https:\/\/wordpress.org\/plugins\/posts-to-posts\/\">&#8220;post-to-posts&#8221;<\/a> plugin which is no longer supported by it&#8217;s original author. Also when installed php error&#8217;s occurred and were displayed on the panel page and the feed pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SPARQL<\/h3>\n\n\n\n<p>An example tutorial<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/www.cambridgesemantics.com\/semantic-university\/sparql-by-example#%281%29\">SPARQL by example, Cambridge Semantics<\/a><\/li>\n<\/ul>\n\n\n\n<p>And there&#8217;s much more, I was looking for a course,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/lmgtfy.com\/?q=learning+sparql+course\">http:\/\/lmgtfy.com\/?q=learning+sparql+course<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Some Links<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The Endpoint i.e. Query Screen on this blog\/wiki.<\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/feed\/rdf\/\">https:\/\/davelevy.info\/wiki\/feed\/rdf\/<\/a>, the default RDF feed on this blog\/wiki<\/li>\n\n\n\n<li>The <a title=\"https:\/\/wordpress.org\/plugins\/lh-tools\" href=\"https:\/\/wordpress.org\/plugins\/lh-tools\">lh tools plugin i.e the endpoint<\/a> at the wordpress codex<\/li>\n\n\n\n<li>The <a title=\"https:\/\/en-gb.wordpress.org\/plugins\/lh-rdf\/\" href=\"https:\/\/en-gb.wordpress.org\/plugins\/lh-rdf\/\">RDF feed generator (LH RDF) plugin<\/a>&nbsp;at the wordpress codex<\/li>\n\n\n\n<li>The <a title=\"https:\/\/shawfactor.com\/2012\/03\/29\/lh-tools-a-sparql-endpoint-for-wordpress\/\" href=\"https:\/\/shawfactor.com\/2012\/03\/29\/lh-tools-a-sparql-endpoint-for-wordpress\/\">author&#8217;s comments on LH-TOOLs<\/a><\/li>\n\n\n\n<li>A <a href=\"https:\/\/web.archive.org\/web\/20170330002955\/https:\/\/lhero.org\/portfolio\/lh-rdf\/\">commentary on LD RDF<\/a> on lhero.org<\/li>\n<\/ol>\n\n\n\n<p>and Pool Party plugin<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/en-gb.wordpress.org\/plugins\/poolparty-thesaurus\/\">https:\/\/en-gb.wordpress.org\/plugins\/poolparty-thesaurus\/<\/a><\/li>\n<\/ol>\n\n\n\n<p>and the ticket requests<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/wordpress.org\/support\/topic\/v121-lh-rdf-error-message\/\">https:\/\/wordpress.org\/support\/topic\/v121-lh-rdf-error-message\/<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>For various reasons I needed to look at SPARQL again. What&#8217;s the easiest way to put it up?, Here! I&#8217;ve been working with LH-Tools which is commented on at its authors site, and LH-RDF. I did not get this to finish satisfactorily, mainly based on my lack of SPARQL skills. May 2015 I returned to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":11357,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[27,3],"tags":[926,929,925,920,889,911,28],"class_list":["post-2679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-technology","tag-lhrdf","tag-poolparty","tag-rdf","tag-software","tag-sparql","tag-technology","tag-wordpress"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2015\/05\/sparkle-timzankert-unsplash-w1080-cropped.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=2679"}],"version-history":[{"count":5,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2679\/revisions"}],"predecessor-version":[{"id":11358,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/2679\/revisions\/11358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/11357"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=2679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=2679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=2679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}