On Thu, 29 Jan 2004, Andy Powell wrote:
> It seems a shame that this doesn't build on SRW, about which it says
>
> --- cut ---
> SRW takes advantage of CQL ("Common Query Language"), a powerful query
> language, which is a human-readable-string query-representation. SRW has
> many similarities with the specification presented in this paper. It
> introduces two main methods searchRetrieveRequest and
> searchRetrieveResponse, both, with quite a number of parameters. Return
> schemas are determined by the target system. No listener method is
> supported.
> --- cut ---
>
> but doesn't really explain why something new had to be invented.
Gratuitous plug...
As a demo of carrying LOM results over SRW, the RDN ResourceFinder
database (containing approximately 80000 descriptions of high-quality
Internet resources) can now be searched using SRW.
The WSDL for the service is at
http://www.rdn.ac.uk/webservices/wsdl/rdn-srw.wsdl
Note that it also supports simple DC and IMS views of the records.
For those who like Perl, the following script uses SRW to query
ResourceFinder for 'banana' and display the first result as a LOM record.
--- cut ---
#!/usr/bin/perl
use SOAP::Lite; # +trace => [qw(method freeform debug)];
# WSDL is at http://www.rdn.ac.uk/webservices/wsdl/rdn-srw.wsdl
eval {
$soap = SOAP::Lite
-> uri("http://www.loc.gov/zing/srw/v1.0/")
-> proxy("http://walrus.rdn.ac.uk:8080/xxdefault/")
-> outputxml("1");
my @params = (
SOAP::Data->name(query => 'title = "banana"'),
SOAP::Data->name(startRecord => '1'),
SOAP::Data->name(maximumRecords => '1'),
SOAP::Data->name(recordSchema => 'http://ltsc.ieee.org/xsd/LOMv1p0'));
$soapresults = $soap->searchRetrieveRequest(@params);
};
if ($@){ # there is a SOAP transport error eg. network break
print "SOAP transport problems\n";
}
if ($soapresults) {
print $soapresults;
}
else {
print "Empty results";
}
--- cut ---
Note: I'm just the messenger... if you want more technical details about
this SRW server contact Monica Duke on <[log in to unmask]>.
Andy
--
Distributed Systems, UKOLN, University of Bath, Bath, BA2 7AY, UK
http://www.ukoln.ac.uk/ukoln/staff/a.powell +44 1225 383933
Resource Discovery Network http://www.rdn.ac.uk/
|