4. WAIS-Implementierung von Z39.50-1988
Durch die Zusammenarbeit mit der Z39.50 Implementors Group (ZIG) nutzten die WAIS-Entwickler eine empfohlene Teilmenge von Z39.50-1988 sowie spezifische Annahmen, um ihre Anforderungen zu erfüllen. Im Laufe der Zeit sind viele dieser
Anforderungen in die Definition nachfolgender Versionen von Z39.50 eingegangen. Wenn neue Anforderungen offensichtlich werden, wird WAIS zusätzliche Annahmen dokumentieren und mit der ZIG bei der Entwicklung von Erweiterungen zusammenarbeiten.
WAIS unterstützte die Init- und Search-Facilities von Z39.50-1988. Suche und Abruf wurden beide über die Search Facility implementiert, wie in diesem Abschnitt beschrieben.
Die Suche wurde vom Client mit einer Search-Request-APDU (Application Protocol Data Unit, Protokolldateneinheit der Anwendungsschicht) unter Verwendung einer Type-3-Abfrage eingeleitet. Die Abfrage enthielt zwei Hauptfelder:
1. The "seed words", or text, typed by the user.
2. A list of document objects, where a document object is a
full document, or portion thereof, to be used in relevance
feedback. Each document object contains a document
identifier (Doc-ID) [5], type, chunk-code, and start and
end locations. The Doc-ID and type specify the location and
format, respectively, of the document. The chuck-code
determines the unit of measure for the start and end
locations. Examples of chunk-codes used include
byte, line, paragraph, and full document. If the chunk code
is a full document, the start and end locations are ignored.
Eine vom Server zurückgegebene Search-Response-APDU enthielt eine nach Relevanz geordnete Liste von Datensätzen, sogenannte WAIS Citations. Eine WAIS Citation verweist auf ein Dokument auf dem Server. Jede WAIS Citation enthält die folgenden Felder:
1. Headline - a set of words that convey the main idea of the
document.
2. Rank - the numerical score of the document based on its
relevance to the query, normalized to a top score of 1000.
3. List of available formats - e.g. text, postscript, tiff, etc.
4. Doc-ID - the location of the document.
5. Length - the length of the document in bytes.
Die Anzahl der zurückgegebenen WAIS Citations wurde durch die während des Init ausgehandelte bevorzugte Nachrichtengröße begrenzt.
Der Abruf eines Dokuments wurde vom Client mit einer Search-Request-APDU unter Verwendung einer Type-1-Abfrage eingeleitet. Die Abfrage enthielt bis zu vier Terme:
1. Term: Doc-ID
Use Attribute: system-control-number code = "un"
Relation Attribute: equal code = "re"
2. Term: the requested document format
Use Attribute: data-type code = "wt"
Relation Attribute: equal code = "re"
3. Term: the start location
Use Attribute: paragraph, line, byte code = "wp", "wl",
"wb"
Relation Attribute: greater-than-or-equal code = "ro"
4. Term: the end location
Use Attribute: paragraph, line, byte code = "wp", "wl",
"wb"
Relation Attribute: less-than code = "rl"
Da Volltexte und Bilder häufig größer als der Empfangspuffer des Clients waren, wurden die Clients so konzipiert, dass sie Dokumente optional in Blöcken abrufen können, wobei die Start- und Endpositionen des Blocks in der Abfrage angegeben werden. Ein Beispiel für eine vollständig spezifizierte Abrufabfrage ist:
query = ( ( use = "un", relation = "re", term = <Doc-ID> )
AND
( use = "wt", relation = "re", term = postscript )
AND
( use = "wb", relation = "ro", term = 0 )
AND
( use = "wb", relation = "ro", term = 2000 )
)
Eine Abrufantwort wurde vom Server mit einer Search-Response-APDU ausgegeben. Dabei wurde ein einzelner Datensatz zurückgegeben, der dem angeforderten Dokument bzw. einem Teil davon entsprach und im angegebenen Format vorlag.