Imagemap magic

I’ve always found HTML imagemaps to be a curiously neglected technology. They seem somehow to evoke the Web of the mid-to-late 90s, to be terribly ‘1.0’. But there’s glue in the old horse yet… A client-side HTML imagemap lets you associate links (and via Javascript, behaviour) with regions of an image. As such, they’re a […]

Ruby client for querying SPARQL REST services

I’ve started a Ruby conversion of Ivan Herman’s Python SPARQL client, itself inspired by Lee Feigenbaum’s Javascript library. These are tools which simply transmit a SPARQL query across the ‘net to a SPARQL-protocol database endpoint, and handle the unpacking of the results. These queries can result in yes/no responses, variable-to-value bindings (rather like in SQL), […]

Commandline PHP for loading RDF URLs into ARC (and Twinkle for query UI)

#!/usr/bin/php <?php if ($argc != 2 || in_array($argv[1], array(‘–help’, ‘-help’, ‘-h’, ‘-?’))) { ?> This is a command line PHP script with one option: URL of RDF document to load <?php } else { $supersecret = “123rememberme”; #Security analysts recommend using data of birth + social security ID here # *** be careful with real […]

Querying across ‘social graph’ fragments

PREFIX : <> PREFIX owl: <> SELECT DISTINCT ?who ?src WHERE { GRAPH <> { ?p a owl:InverseFunctionalProperty . } GRAPH <> { [ :openid <> ; ?p ?pv ] } GRAPH ?src { [ ?p ?pv ; :knows [ :name ?who ] ] } } ORDER BY ?who Just a quick post to record […]