4. Z39.50-1988 の WAIS 実装
Z39.50 Implementors Group (ZIG) と協力しながら、WAIS の開発者たちは Z39.50-1988 の推奨サブセットと固有の前提を用いて要件を満たした。時が経つにつれ、これらの
要件の多くは、その後 Z39.50 の後続バージョンの定義へと反映された。新たな要件が明らかになった際には、WAIS は追加の前提を文書化し、ZIG と協力して拡張の開発に取り組む。
WAIS は Z39.50-1988 の Init Facility と Search Facility をサポートしていた。検索と取得の双方が、本章で述べるように Search Facility を用いて実装された。
検索は、クライアントが Type-3 クエリを用いて Search Request APDU (Application Protocol Data Unit) を送信することで開始された。このクエリには 2 つの主要フィールドが含まれていた。
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.
サーバが返す Search Response APDU には、関連度順に並べ替えられたレコード、すなわち WAIS Citations のリストが含まれていた。WAIS Citation はサーバ上の文書を参照する。各 WAIS Citation には次のフィールドが含まれていた。
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.
返される WAIS Citations の数は、Init 時にネゴシエーションされた推奨メッセージ・サイズによって制限されていた。
文書の取得は、クライアントが Type-1 クエリを用いて Search Request APDU を送信することで開始された。このクエリには最大 4 つの項を含めることができた。
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"
全文や画像はクライアントの受信バッファよりも大きいことが多かったため、クライアントは必要に応じて文書をチャンク単位で取得するよう設計され、クエリ内でチャンクの開始位置と終了位置を指定した。完全に指定された取得クエリの例を次に示す。
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 )
)
取得応答はサーバによって Search Response APDU として発行された。この場合、要求された文書、またはその一部分に対応する単一のレコードが、指定された形式で返された。