oclc online computer library center srw & oai ralph levan oclc research
TRANSCRIPT
OCLC Online Computer Library Center
SRW & OAIRalph LeVan
OCLC Research
OAI Search RequirementsOAI Search Requirements
Find a specific record
Restrict the database by date
Restrict the database by Set ID
OAI Retrieval RequirementsOAI Retrieval Requirements
<oai:header xmlns="http://www.w3.org/TR/xhtml1/strict" xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<oai:identifier>ocm56385578</oai:identifier>
<oai:datestamp>2004-09-29</oai:datestamp>
</oai:header>
SRW/U-OAI ProfileSRW/U-OAI ProfileOAI context set for search
OAI Header schema for retrieval
OAI Context SetOAI Context Setoai.identifier: contains arbitrary text used with the exact relation
oai.datestamp: contains dates of the form yyyy-mm-dd used with the numeric relations
oai.setId: contains arbitrary text used with the exact relation
Example RequestExample Requesthttp://localhost:8080/SRW/search/ORPublications
? query=oai.datestamp > ”2004-01-01”& version=1.1&operation=searchRetrieve& recordSchema=http%3A%2F%2Fwww.openarchives.org%2FOAI%2F2.0%2F%23header&maximumRecords=1&startRecord=1
Example ResponseExample Response<numberOfRecords>693</numberOfRecords>
<records> <record>
<recordSchema>http://www.openarchives.org/OAI/2.0/#header</recordSchema>
<recordPacking>xml</recordPacking>
<recordData>
<oai:header xmlns="http://www.w3.org/TR/xhtml1/strict" xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<oai:identifier>ocm56578713</oai:identifier>
<oai:datestamp>2004-09-29</oai:datestamp>
</oai:header>
</recordData>
<recordPosition>1</recordPosition> </record> </records>
<nextRecordPosition>11</nextRecordPosition>