SRU (Search/Retrieve via URL) is an interesting REST Web Service protocol.

Enough technobabble. Let’s run an example.

Suppose you want to retrieve the data that the library of congress has on a book called “First Impressions of the New World” by “Trotter Isabella Strange”, you issue the following query (follow the hyperlink for the XML result):

(dc.title=”First Impressions of the New World”) and (dc.creator all “Trotter Isabella Strange”)

You want to use this in software? Download my corresponding Perl and Python code examples: srucodeexamples.zip.

Further reading: See the wikipedia entry or even better, check the refbase entry.

(Special thanks to Owen Kaser for making me discover this exciting new technology.)

No Comments »

No comments yet.

Leave a comment

Warning: When entering a long comment, please ensure that you make copy of your text prior to submitting it. If the server should fail or if you hit a bug, you might lose your work. I am not responsible for your lost effort.

To spammers: I carefully review every single post and make sure that spam gets deleted. You are wasting your time if you are manually entering spam using this form. Read my terms of use to see what I consider to be abusive.

Example: duo plus septem is '9'. The numbers are expressed in latin numerals but you should give your answers using ordinary digits.

 

« Blog's main page

Powered by WordPress