Many thanks to [@bendiken][1] and [@bhuga][2] for helping me get started with RDF.rb! Thanks to their tutorials and test suites, I was able to build a pretty good adapter in about 10 hours. The adapter already implements query_pattern, insert_statements and delete_statements.
My next challenge will be to support AllegroGraph queries. AllegroGraph has two server-side query languages: SPARQL, and a weird-but-powerful [Prolog dialect using Lisp syntax][3]. The Prolog dialect allows me to run [graph algorithms][4] and other [funky][5] [queries][6] on the server:
(select (?person ?name ?email)
;; Find everybody within one or two degrees of jsmith.
(ego-group-member !people:jsmith 2 !foaf:knows ?person)
(q ?person !foaf:name ?name)
(q ?person !foaf:mbox ?email))