Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-settings.php on line 512 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-settings.php on line 527 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-settings.php on line 534 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-settings.php on line 570 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-includes/cache.php on line 103 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-includes/query.php on line 61 Deprecated: Assigning the return value of new by reference is deprecated in /var/san/www/prod/html/blogs/darcusb/wp-includes/theme.php on line 1109 darcusblog » 2006 » February - geek tools and the scholar

Archive for February, 2006

OPA Proxy Script

Posted in General on February 26th, 2006 by darcusb – Comments Off

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:

<citation><biblioref xlink:href="urn:isbn:013937681X"/></citation>

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).