sru cql
Download
Skip this Video
Download Presentation
SRU & CQL

Loading in 2 Seconds...

play fullscreen
1 / 16

SRU & CQL - PowerPoint PPT Presentation


  • 115 Views
  • Uploaded on

SRU & CQL. Ralph LeVan Senior Research Scientist, OCLC [email protected] Code4Lib Pre-Conference Brown University 23 February 2009. The Basics. REST-ful API for Search and Retrieve CQL – A rich, standardized query grammar Self-describing service through Explain records.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' SRU & CQL' - britanni-howell


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
sru cql

SRU & CQL

Ralph LeVan

Senior Research Scientist, OCLC

[email protected]

Code4Lib Pre-Conference

Brown University

23 February 2009

the basics
The Basics
  • REST-ful API for Search and Retrieve
  • CQL – A rich, standardized query grammar
  • Self-describing service through Explain records
rest ful api for search and retrieve
REST-ful API for Search and Retrieve
  • Base URL: http://worldcat.org/identities/search/Identities
  • Querystring: query=local.Name+all+%22ralph+levan%22
  • Important Optional Parms:
    • startRecord
    • maximumRecords
    • recordSchema
rest ful api for search and retrieve1
REST-ful API for Search and Retrieve
  • Untrustworthy Optional Parms:
    • sortKeys
rest ful api for search and retrieve2
REST-ful API for Search and Retrieve
  • Amusing Parms:
    • recordPacking
rest ful api for search and retrieve3
REST-ful API for Search and Retrieve
  • Omittable Mandatory Parms:
    • version
    • operation
slide7
CQL
  • Standard Boolean operations
  • Search Terms: [Index relation] quotedString
    • query=dog
    • query=cql.any exact “moby dick”
  • Indexes defined by server
  • Standard relations:
    • exact, =, all, any
searchretrieveresponse
searchRetrieveResponse
  • <?xml version="1.0" ?>
  • <?xml-stylesheet type="text/xsl" href="/identities/NameFinderResponse.xsl"?>
  • <searchRetrieveResponse xmlns="http://www.loc.gov/zing/srw/">
searchretrieveresponse elements
searchRetrieveResponse elements
  • <version>1.1</version>
  • <numberOfRecords>3</numberOfRecords>
  • <resultSetId>6dsxzt</resultSetId>
  • <resultSetIdleTime>300</resultSetIdleTime>
  • <records><record></record>...</records>
  • <echoedSearchRetrieveRequest>...
  • <diagnostics>...
  • <extraResponseData>...
record elements
record elements
  • <recordSchema>
  • info:srw/schema/1/Identities</recordSchema>
  • <recordPacking>xml</recordPacking>
  • <recordData>...
  • <recordPosition>1</recordPosition>
explain
Explain
  • <explainResponse xmlns="http://www.loc.gov/zing/srw/">
  • <version>1.1</version>
  • <record>
  • <recordSchema>
  • http://explain.z3950.org/dtd/2.0/</recordSchema>
  • <recordPacking>xml</recordPacking>
  • <SRW:recordData>
explain record
Explain Record
  • <explain authoritative="true" xmlns="http://explain.z3950.org/dtd/2.0/">
  • <serverInfo protocol="SRW/U">…
  • <databaseInfo>…
  • <indexInfo>…
  • <schemaInfo>…
  • <configInfo>…
indexinfo
indexInfo
  • <set identifier="http://staff.oclc.org/~levan/localContextSets/Identities" name="local"/>
  • <index>
  • <title>local.BirthDate</title>
  • <map>
  • <name set="local">BirthDate</name>
  • </map>
  • <configInfo>
  • <supports type=\'relation\'>any</supports>
  • </configInfo>
  • </index>
schemainfo
schemaInfo
  • <schema sort="false" retrieve="true" name="Identities"
  • identifier="info:srw/schema/1/Identities”
  • location="http://www.oclc.org/standards/Identities/schema/Identities.xsd">
  • <title>Identities records in their native format</title>
  • </schema>
configinfo
configInfo
  • <default type="maximumRecords">250</default>
  • <default type="numberOfRecords">10</default>
  • <default type="retrieveSchema">
  • info:srw/schema/1/Identities</default>
links
Links
  • http://www.loc.gov/standards/sru/
ad