LH RDF not just xml anymore

LH Rdf is back!!

Yes development has started again and the first stop is to add additional formats to the output. Previously Lh Rdf only supported RDF-xml and has been designed almost exclusively around that. Therefore to add other formats I have bundled the Easyrdf library into the plugin. When the query string lhrdf is added to the feed URL the Easyrdf parser is invoked to parse the rdf xml output string and the output is then available in various triple formats.

See code extract:

$graph = new EasyRdf_Graph();
$graph->parse($out,”rdfxml”);
$data = $graph->serialise($_GET[‘lhrdf’]);

The format chosen by value of the lhrdf variable E.G. http://localhero.biz/?feed=lhrdf&lhrdf=json

As well as simply being cool, having an option to output JSON is the main benefit as the triples are now no longer imprisoned by the same domain policy.

Author: Peter Shaw

Is the founder and president of Princes Park Touch and the leader of the LocalHero project!

2 thoughts on “LH RDF not just xml anymore”

Fill in your details below or login

Install Factor

shawfactor.com

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu ⋮.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.