Presentation is loading. Please wait.

Presentation is loading. Please wait.

A centre of expertise in digital information management www.ukoln.ac.uk UKOLN is supported by: SRU: An overview of the SRU protocol and how it can be used.

Similar presentations


Presentation on theme: "A centre of expertise in digital information management www.ukoln.ac.uk UKOLN is supported by: SRU: An overview of the SRU protocol and how it can be used."— Presentation transcript:

1 A centre of expertise in digital information management www.ukoln.ac.uk UKOLN is supported by: SRU: An overview of the SRU protocol and how it can be used to facilitate Web Service-based search Monica Duke (Software Developer) The British Library, 2 nd June 2009

2 A centre of expertise in digital information management www.ukoln.ac.uk SRU: in a nutshell Web Service for Search and Retrieval Search protocol –Client sends message –Server processes message, sends response –Query language Syntax for query parameters

3 A centre of expertise in digital information management www.ukoln.ac.uk History Derived from Z39.50 Brought over most useful bits, in simplified format Lower implementation barrier

4 A centre of expertise in digital information management www.ukoln.ac.uk SRU Timeline Version 1.0 (experimental) Nov 2002 Version 1.1 (stable) Feb 2004 Version 1.2 (latest) 2006/7 1.2 –Organizational Changes (rebranding) –Technical Changes Standardization sought 2007

5 A centre of expertise in digital information management www.ukoln.ac.uk Standardization –Both Industry and Academia participate –Neutral ground for merging competing de facto standards Process –Open Discussion –Formation of OASIS Technical Committee –Discussion, Ballot –Leading to SRU 2.0 –http://www.dlib.org/dlib/january09/denenberg/01denenberg.html

6 A centre of expertise in digital information management www.ukoln.ac.uk What is a Web Service? Facilitates communication to a networked application – Client requests something – Server carries out the request and reports success or failure – Responses and requests (sometimes) are encoded in XML Programmers embed calls to a web service as a part of a useful local application – Query a online database – Receive news updates – Receive stock quotations

7 A centre of expertise in digital information management www.ukoln.ac.uk What is REST? REpresentational State Transfer – A design philosophy not a protocol – The fundamental concept behind the web – Each URL/URI is a unique state transferred from server to client Characteristics of REST-ful web services: – Always over HTTP – Request: Form a URL + query string http://myrest.com/?query=cat&operation=search – Response: Comes back in XML

8 A centre of expertise in digital information management www.ukoln.ac.uk REST vs SOAP/XML-RPC Eric Lease Morgan classifies web services: SOAP-ful Web Services – More complicated; but potentially more robust than REST – Can use any sort of transport mechanism, email; SSH, telnet – Encoded using the SOAP XML wrapper – W3C standard for web services – Example – The Google API (incorporate Googles search results into your own program) REST-ful Web Services – Serve up as arbitrary application defined XML only – Transported via HTTP requests only

9 A centre of expertise in digital information management www.ukoln.ac.uk SRU: SOAP and REST SOAP-ful version: SRW Search defined using XML More complex parameters possible REST-ful version: SRU Since 1.2, both rebranded as SRU to reflect actual usage SRW SRU via SOAP

10 A centre of expertise in digital information management www.ukoln.ac.uk Basic SRU server Understands queries written in CQL (Common Query Language) Queries sent to an SRU server as a URL parameter Receive a structured XML response with search results Take this Result and… Format it for your users using XSLT More processing- do something else with it

11 A centre of expertise in digital information management www.ukoln.ac.uk SRU: Three Basic Operations Explain (please describe yourself) Search/Retrieve (search, sort, fetch) Scan (browse)

12 A centre of expertise in digital information management www.ukoln.ac.uk SRU search parameters Base URL: identifies the service Parameters: Query recordSchema maximumRecords startRecord

13 A centre of expertise in digital information management www.ukoln.ac.uk Example search retrieve http://example.org/http://example.org/? operation=searchRetrieve& query=dog& version=1.2

14 A centre of expertise in digital information management www.ukoln.ac.uk Example response 1.1 3 info:srw/schema/1/dc-v1.1 xml The bottom dog http://example.org/bottom.html (next record….)

15 A centre of expertise in digital information management www.ukoln.ac.uk XSLT for formatting Send an xslt parameter Response is processed Results are presented in diferent formats

16 SRU in Use: OAI OAI Harvesters OAI Data Providers SRU Server Make Data Available Harvest and Maintain Updated Indexes of Data Search and Present Data to Users

17 SRU in Use: European Library

18 A centre of expertise in digital information management www.ukoln.ac.uk Competing standards OpenSearch/A9 part of the OASIS standardization Simpler keyword searching OpenURL

19 A centre of expertise in digital information management www.ukoln.ac.uk Why choose SRU? Part of the standardization process in OASIS Allows control over query and results Library community Open questions –Will standardization influence uptake? –Will other approaches join the effort?

20 A centre of expertise in digital information management www.ukoln.ac.uk Repositories and SRU Individually? Through aggregation…

21 A centre of expertise in digital information management www.ukoln.ac.uk Where to find out more Official page –http://www.loc.gov/standards/sru/http://www.loc.gov/standards/sru/ Mailing List (Implementor's ListServ) Bibliography –http://www.loc.gov/standards/sru/background /bibliography.htmlhttp://www.loc.gov/standards/sru/background /bibliography.html –Introduction, SRU and OAI, SRU and The European Library

22 A centre of expertise in digital information management www.ukoln.ac.uk Acknowledgements Rob Sanderson Kevin Reiss (2005) A Rest-ful Web Services Approach to Library Federated Search using SRU


Download ppt "A centre of expertise in digital information management www.ukoln.ac.uk UKOLN is supported by: SRU: An overview of the SRU protocol and how it can be used."

Similar presentations


Ads by Google
http://slideplayer.com/slide/782891/
slideplayer.com
crawl=CC-MAIN-2017-26
123689
application/http; msgtype=response
sha1:AGFRBFXJTOHU2PE7HCQGDMOQH6WOOTHX
<urn:uuid:e813ac7c-d748-49c4-9eb3-6116b95f30e7>
2017-06-23T14:37:06Z
88.99.70.210
text/html
sha1:74OQMQG4ZLBQHNLPYB6SE3NYRW7IH47N
<urn:uuid:5d949fa9-1f59-486a-9023-23d246f2dbca>
http://slideplayer.com/slide/782891/
length
response
<urn:uuid:00ce0e77-fbdc-471a-8580-4b4abfc4f468>
robots: classic
hostname: ip-10-164-45-54.ec2.internal
software: Nutch 1.6 (CC)
isPartOf: CC-MAIN-2017-26
operator: Common Crawl Admin
description: Wide crawl of the web for June 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf