![]() |
|
![]() |
OAI-SQ Overview
OAI-SQ is a simple extension to the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH), intended to provide a method of performing keyword or field-based searches of an OAI repository. It is not intended to provide the level of sophistication available via other established search and retrieval protocols such as Z39.50. Syntax
OAI-SQ queries are backwards-compatible versions of the OAI-PMH 2.0
Keyword Search
An OAI-SQ keyword search request value consists of the string Fielded Search
An OAI-SQ fielded search request value consists of the string Escaping Characters
Any character within the search request string except the "!" separators
and the initial (Please Note: Early implementations of OAI-SQ (e.g. SPT/CWIS 1.3.1) use "|" instead of "!" as a separator character and differ in a couple of other respects (see below).) Considerations
Identifying OAI-SQ Capability
OAI-PMH servers that support OAI-SQ keyword searching should return
Search Mechanism Specifics
Because OAI-SQ is only intended to provide a mechanism for conveying search parameters to an OAI-PMH server, particulars of the search operation, such as the ordering of search results or support for mechanisms like phrase searching or term exclusion, are left to the discretion of the individual OAI-SQ implementer. OAI-PMH Compatibility
Use of the "~XX" encoding mechanism may be necessary to maintain strict
compliance with the OAI-PMH protocol because OAI-PMH 2.0 specifies that
only characters that appear in the RFC2396 "unreserved character" set
may appear in a
Some OAI-SQ servers may allow characters outside the above set, so if strict OAI-PMH base protocol compliance is not a concern (e.g. when both server and client are known entities) then use of the "~XX" mechanism may only be necessary if search terms include a "!" character. Early Implementations
Early implementations of OAI-SQ (e.g. versions of SPT and CWIS prior to 1.4.0) differ from the version described here in three respects:
Examples
setSpec to retrieve records or identifiers that include the word "biochemistry":
URI to retrieve records that include the word "biochemistry":
setSpec to retrieve records or identifiers that include the word "anthropology" in the Description field and "diamond" in the Creator field:
URI to retrieve identifiers that include the word "anthropology" in the Description field and "diamond" in the Creator field:
setSpec to retrieve records or identifiers that include the term "yahoo!" in the Publisher field and the term "stewart brand" in the Creator field:
(Note the use of "~21" to include the "!" character in the first search
string, since that character is reserved by OAI-SQ, and the use of "~0A"
to include a space in the second search string, since the space character
is not allowed in OAI-PMH setSpec values.)
If you have comments or questions about OAI-SQ, please e-mail
oaisq@scout.wisc.edu |
|
Copyright © 2008 Internet Scout Project. | Reproduction information
|
|