Dan Chudnov released a first cut at a cool proxy script that demos the new unAPI he’s been working on.
How to ask for a record by isbn, and get it returned as MODS:
python opa.py urn:isbn:013937681X mods
The script then has some logic where it looks at the uri and knows where to search for the record (in this case Amazon). And it’s all configurable. This is similar in principle to Alf Eaton’s CiteProxy.
What’s interestingly timely about this for me is that I’ve been working on a new article that uses my new RDF-based citeproc. My citations now look like this:
So where possible, I’m using standard uris (and preferably urn’s) as identifiers. This approach to citation has a number of advantages, including that it is well-suited to this sort of proxy-based approach.
Last week I wrote a little Bash script + XSLT to accomplish the above, which takes an isbn, pings the LoC SRU gateway, and converts the result to an RDF form that citeproc can handle. It’s quicker than having to create the records myself, and the output is quite good (though it doesn’t make any use of RDF normalization and linking).