Posted by admin on

SPARQL on WordPress

For various reasons I needed to look at SPARQL again. What’s the easiest way to put it up?, Here! I’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
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.
Pool Party are now playing. i,e. there’s a Pool Party plugin.
I have errors occurring when using LH-RDF; see the comments to track. Jan 2017


I think that, http://${SITENAME}/feed/rdf 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.

HTML Headers

These applications and wordpress do not write the HTML <link> record. I  need to check if this is still true. (How to best  insert the code into header.php, or do I have to get inside the plugin code?) May 2015. I don’t understand this, the documentation for LH-RDF claims it does, but it’s otherwise broken at the moment. Jan 2017.


There is a readme file in the LH-RDF plugins directory, by re-saving the permalinks options the pretty rdf name becomes visible.

However in the summer of 2015, the LH RDF panel needed “post-to-posts” plugin which is no longer supported by it’s original author. Also when installed php error’s occurred and were displayed on the panel page and the feed pages.


An example tutorial

And there’s much more, I was looking for a course,

Some Links

  1. The Endpoint i.e. Query Screen on this blog/wiki.
  2., the default RDF feed on this blog/wiki
  3. The lh tools plugin i.e the endpoint at the wordpress codex
  4. The RDF feed generator (LH RDF) plugin at the wordpress codex
  5. The author’s comments on LH-TOOLs
  6. A commentary on LD RDF on

and Pool Party plugin


and the ticket requests



Comments ( 7 )

  1. Dave
    I used a plugin LH RDF to render the feed into RDF. This became incompatible with the wordpress rewrite module on 21/8/2015 when I updated the module. I have deactivated the plugin.
  2. Dave
    LH RDF broke this a.m. i.e. 21 August 2015, when I upgraded some stuff. A further upgrade was issued that fixed the destructive behaviour. It was fixed within 24 hours.
  3. Dave
    I have discovered further problems with these tools. It writes error rdf. I have reported it here, on the wordpress codex site.
  4. Dave
    I returned to this last night, and recognise that the page is not well organised, but probably matches my thoughts. I shall have another look and probably adjust the page.
  5. Dave
    The LH RDF readme says, "If you wish to map additional relationships install the Posts 2 Posts add some connections then map them to rdf by going to Settings LH RDF->Mappings". I have no idea what does add some connections mean? Has the author made some assumptions when mapping the WP Schema to an RDF object map, and this is a way of adding RDF relationships; the settings screen doesn't make it seem so. This comment was made in Jan 2017, to preserve content originally created in 2015.
  6. Dave
    This ought to be simpler, I documented a google query I used when looking for a course on SPARQL.
  7. Jamstack |
    […] simpler than integrating a 3rd party API via javascript but only if the plug-in works, check out my experiments with SPARQL., but implementing a search by API called from the browser would be cool. Did I do this on my old […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.