"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

Z39.50 server in BlueNet MEST

Contents

Related pages



Purpose of this document

Feasibility study to use the Z39.50 server as a replacement for CSW.

Used software

BlueNetMEST trunk version revision 2055
yaz-client (Z39.50 client, debian package 'yaz') version 3.0.34 linux
zclient and izclient (Z39.50 clients from Isite2 package) version 2.3.2-Win, Release 2007092402 windows
Mercury Z39.50 Client version 1.3 windows

Documents

Z39.50 standard http://www.loc.gov/z3950/agency/Z39-50-2003.pdf
Attribute documentation http://www.loc.gov/z3950/agency/bib1.html
Prefix Query Format (grammar) http://www.indexdata.dk/yaz/doc/tools.tkl#PQF
RPN queries http://www.indexdata.com/zebra/doc/querymodel-rpn.tkl

Experimenting with the clients

Settings for the clients that seemed to work from my machine and auscope-portal.arrc.csiro.au:
  • server: auscope-portal
  • port: 2100
  • no authentication (tried geonetwork admin credentials, but I couldn't experience any differences)

Mercury

This client connects to the server and has a graphical interface to create complex queries. It is judging from the about box based on yaz. Any query I tried either produced a result count of 0:

auscope-portal:2100
Result Count: 0
Records Returned: 0

or produced an error:

auscope-portal:2100
Result Count: 0
Records Returned: 0
Error Message: Unknown error and diagnostic set (13) com.k_int.IR.PresentException: Start+Count-1 must be < the number of items in the result set

izclient

This client also successfully connect to the server. It is very basic and provides a text interface to log in and send a query. It only provides a prompt stating "Enter Term []:".

  • Search for "wfs" yields the following result:

30 total records matched your query

1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12)
13)
14)
15)
16)
17)
18)
19)
20)

Enter # of record to view (<CR> returns to menu):

  • Search for "OGC:WFS" doesn't return any record:

0 total records matched your query

zclient

This client provides a command line interface. I tried the following searches:

  • zclient auscope-portal 2100 find wfs returns 31 total records matched your query
  • zclient auscope-portal 2100 find @attr 1=4 wfs returns No records returned!
  • zclient auscope-portal 2100 find OGC:WFS returns No records returned!

yaz-client

This client provides a command line interface and runs on linux. I tried a few queries after having a look at above documents and this demo script file.

I read on the GeoNetwork developer list, that full text search only is not possible: http://n2.nabble.com/Full-text-search-via-z39.50-td2019510.html#a2019511

But I also found evidence that there are attributes which should find text in any field. Specifically:
Use attribute Value
Body of text 1010
Any 1016
Anywhere 1035

I tried the following queries (see yaz-shell.txt):
  • find "wfs"
    • title -> 10 hits
    • body of text -> 0 hits
    • any -> 30 hits
    • anywhere -> 0 hits
  • find "WFS"
    • title -> 10 hits
    • body of text -> 0 hits
    • any -> 30 hits
    • anywhere -> 0 hits
  • find "OGC:WFS"
    • title -> 0 hits
    • body of text -> 0 hits
    • any -> 0 hits
    • anywhere -> 0 hits
  • find truncated (@attr 5=3) "OGC:WFS"
    • title -> 0 hits
    • body of text -> 0 hits
    • any -> 0 hits
    • anywhere -> 0 hits

Conclusion

The any attribute is only searching in a few fields (probably dublin core) and not useful for our purposes.

I also tried the Z39.50 server on apacsrv7 and it is returns the same results.

-- MichaelStegherr - 15 Apr 2009

 
Topic revision: r5 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).