1 / 11

SRU/W ???

“SRU/W – Interfaces to your Repository –What is it?” CONZUL Symposium Kristian Thornley Web Applications Developer: eLearning & Web Support Unit CPIT, May 2007 SRU/W ??? Search and Retrieve via URL or Web Service Warning Some More Acronyms… SRU via URL implemented as a RESTful Service

Faraday
Download Presentation

SRU/W ???

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. “SRU/W – Interfaces to your Repository –What is it?”CONZUL SymposiumKristian ThornleyWeb Applications Developer: eLearning & Web Support UnitCPIT, May 2007

  2. SRU/W ??? • Search and Retrieve via URL or Web Service • Warning Some More Acronyms… • SRU via URL implemented as a RESTful Service • No protocol envelope = lower overhead • Human(ish) readable (e.g…) • Easier to transform via XSLT • SRW via Web Service implemented as a SOAP Service • (More) Machine readable (e.g…) • Complex data structures defined/enforced by XSD • Easier to parse via Programming Language

  3. History • Specification developed and maintained at the Library of Congress • Derived from Z39.50 • Platform Independent

  4. SRU/W vs. OAI-PMH • Each has their own role • SRW/U • Searching rather than harvesting • Complex queries via CQL • End-user Application Interface • OAI-PMH • Runs in the background • OAI-PMH specification/selection limited to sets and date ranges • Creates synergy when coupled

  5. Researcher Example SRU/W over OAI-PMH Institution C Institution B Institution A A ? B B C A C D D

  6. Researcher Example SRU/W over OAI-PMH Institution C Institution B Institution A B C A D HTMLPage OAI-PMH OAI-PMH SRU/W dc:creator = “Bloggs, J”

  7. SRW/U Operations • explain request • Like OAI-PMH Identify • Wraps a ZeeRex Message describing the Database • searchRetrieve request • The guts of the protocol • scan request (not implemented.. yet) • Summarises possible search terms and expected hits returned if executed

  8. Features of the searchRetrieve Request • query (required) • Main component encapsulated CQL (Common Query Language) more on this later… • Must be URL encoded in SRU • version (required) • Current 1.1 • maximumRecords, startRecord • Pagination support • recordPacking • String or XML • recordSchema • How should the results be presented (DC,QDC,MODS…) • stylesheet • Post-request XSL Transformation (e.g…) (only available in SRU)

  9. CQL • Another Acronym… • Requests vary from simple • dc:title = test • To complex • ((dc:title = “test”) OR (dc:identifier contains “test”) NOT dc:creator = “test” • Allows mix and match • mods:titleInfo = “test” OR dc:title = “test” • Varied levels of conformance • Levels 0 – 2 (current level is 1) • Level 2 includes: • Proximity, context sets, xquery, sort etc…

  10. OK how do we use it… • Use “Classic” Web site interface • http://harvester.oarinz.ac.nz/index.php/oarinzsearch/html • Implement pre-built client • http://harvester.oarinz.ac.nz/index.php/about • Develop your own • Lots of languages have libraries that make it easy e.g. C#, Java, PHP, Python, Perl

  11. Some Examples • http://harvester.oarinz.ac.nz/plugins/generic/pkpsruclient/flash/queryBuilder1.2.swf • MS Office integration

More Related