Nearly there
Well, I'm pleased, anyway! Basic queries (no optionals, union, &c. yet), SPARQL XML result format output, remote fetching, s-expression syntax that should be easy to generate from the SQL-like syntax, fully-commented code, and even untested implementations of ASK, DESCRIBE, and CONSTRUCT. Two days' work, and 450 lines. When I'm done I'll throw an Araneida frontend on, et voila: a SPARQL endpoint for Lisp.* (sparql :select :distinct t
:vars '(name mbox)
:from "http://www.holygoat.co.uk/foaf.rdf"
:where '(graph-pattern
(triple x !foaf:knows !rich:RichardNewman)
(triple x !foaf:name name)
(triple x !foaf:mbox_sha1sum mbox)))
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2001/sw/
DataAccess/rf1/result2">
<head>
<variable name="NAME" />
<variable name="MBOX" />
</head>
<results>
<result>
<result>
<binding name="NAME">
<literal>Timothy Putnam</literal>
</binding>
<binding name="MBOX">
<literal> ✂ </literal>
</binding>
</result>
<result>
<binding name="NAME">
<literal>Matthew Fowler</literal>
</binding>
<binding name="MBOX">
<literal> ✂ </literal>
</binding>
</result>
…
This post might not look perfect in NetNewsWire. Indeed, thanks to pre's lack of wrapping (and thus my hard-wrapping) it probably won't look any good anywhere. Sue me.
Posted at 2005-06-16 10:50:46 by Richard • Link to Nearly there
Comments, trackbacks.
