How to Find a Needle in the Haystack
Upcoming SlideShare
Loading in...5
×
 

How to Find a Needle in the Haystack

on

  • 5,989 views

Given at The Institutional Web Management Workshop 2005

Given at The Institutional Web Management Workshop 2005

Statistics

Views

Total Views
5,989
Views on SlideShare
5,972
Embed Views
17

Actions

Likes
3
Downloads
49
Comments
0

3 Embeds 17

http://www.slideshare.net 15
http://localhost 1
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How to Find a Needle in the Haystack How to Find a Needle in the Haystack Presentation Transcript

  • How to Find a Needle in the Haystack Adrian Stevenson Learning Technology Services University of Manchester Institutional Web Management Workshop 2005 Parallel Session 4pm - 5.30pm, Wednesday 6 th July 2005
  • Overview
    • Introduction to Cross searching / metasearch
    • The Problem – why metasearch?
    • JISC Information Environment
    • Quick introduction to XML and Web Services
    • Metasearch Technologies
      • Z39.50, SRU/SRW, OAI
    • Metasearch issues
    • NISO Metasearch Initiative
  • Cross Searching
    • Cross searching has many names:
      • Metasearch
      • Distributed search
      • Parallel search
      • Federated search
      • Broadcast search
      • Cross-database search
    • Common theme of allowing search and retrieval to span multiple databases, sources, platforms, protocols, and vendors at once
  • The Problem
    • Web users such as researchers or tutors frequently require information from a variety of different sources
    • User required to search many different service interfaces, each with a different look and feel, metadata and subject classifications.
    • The results are almost always supplied in HTML, which makes them difficult to merge.
    • Users search many services and portals such as the RDN, zetoc and COPAC, image resources, e-prints, learning objects, external and internal resources.
    • If a user wants to obtain a local copy of the range of search results, they often have to merge the results themselves, for example by creating a text file.
  • JISC Information Environment
    • Cross searching is at the core of the JISC IE
    • JISC notes that considerable investment has been made to provide high-quality digital information resources
    • But students, lecturers and researchers are faced with a vast and sometimes bewildering range of sources of electronic information.
    • Each source has its own name, interface, features and search facilities.
    • Users remain unaware of their existence or fail to discover their value for their own learning, teaching or research.
    • A key challenge is therefore to achieve a managed, coherent and shared information environment that will overcome these obstacles
  • JISC: Helping Users find digital information
    • Being able to cross-search will considerably simplify users’ interactions with online resources.
    • This should encourage take-up and greatly improve means of accessing these resources.
    • Institutions will be able to incorporate these services within their own institutional online environments, presenting local content alongside nationally provided resources.
    • A second aspect relates to making the Information Environment actually work.
    • Making the Information Environment work requires the implementation of a range of commonly-agreed technical standards and protocols
  • JISC IE Technical Architecture
    • “The JISC Information Environment technical architecture specifies a set of standards and protocols that support the delivery of integrated networked services that allow the end-user to discover , access , use and publish digital and physical resources”
  • Metasearch Technologies
    • Two main approaches:
    • Real-time cross searching
      • Z39.50
      • Search and Retrieve URL / Web Service - SRU/SRW
    • Harvesting
      • Open Archives Initiative Protocol for Metadata Harvesting – OAI-PMH
  • Metasearch Technologies
    • Other approaches:
    • Hybrid
      • Combination of Z39.50, SRU/W, and OAI and ..
    • Screen scraping
      • parsing the HTML to find patterns or parts of content.
      • Screen scraping is an ad-hoc technique that is dependent on a consistent format for the data being scraped
      • Regular expressions used for screen scraping. Perl has strong support for regular expressions – grep
      • Difficult, unreliable and laborious
  • Z39.50
    • ANSI/NISO Z39.50 - 2003 Information Retrieval : Application Service Definition & Protocol Specification
    • The National Information Standards Organization (NISO) is an American National Standards Institute (ANSI) accredited standards developer that serves the library, information, and publishing communities
  • Z39.50
    • Z39.50 is designed to enable communication between computers, typically those used to manage library catalogues
    • A portal can send a real-time query to a number of Z39.50 enabled content providers and a results set is returned to the user
    • The AHDS Gateway , physically based in London, uses Z39.50 to query five different databases containing information on archaeology (York), history (Colchester), the performing arts (Glasgow), the visual arts (Newcastle), and textual studies (Oxford)
    • They are driven by different database management software and run on a variety of hardware platforms. Z39.50 enables searches across the five sites.
    • Library OPAC and desktop applications such as EndNote can also be used to search Z targets
  • AHDS
  • Z39.50
    • Z39.50 employs a client/server model
    • One computer, the client or, in Z39.50 terms, the ‘Origin’, submits a request to another computer, the server or ‘Target’ which then services the request and returns an answer
    • Queries can be sent to multiple databases simultaneously to cross search
    • Records can be returned in a number of formats or ‘syntaxes’ as requested by the client. These typically include:
      • MARC ( Machine Readable Cataloging )
      • SUTRS (Simple Unstructured Text Record Syntax)
      • Raw ASCII text file
      • XML (eXtensible Markup Language)
  • What is XML?
    • a technology for the management, display and organisation of data
    • a programming language
    • a markup language
    • a markup language used to describe the structure of data
    • not really a language
    • a standard for creating languages that meet the XML criteria
    Some possible definitions?
  • XML: elements <language> English </language> <tag> </tag> content
  • XML must be well formed
    • a root element is required
    • <ead>
    • … ..all your tags and content…
    • </ead>
    • closing tags are required
  • XML must be well formed
    • a root element is required
    • <ead>
    • … ..all your tags and content…
    • </ead>
    • closing tags are required
    • Tags must be properly nested
    • Case matters
  • Valid XML
    • Valid XML provides consistency and facilitates the exchange of data
    • XML must conform to a Document Type Definition (DTD) or Schema to be valid
    • Schemas and DTDs specify the elements and attributes and defines how they can be used:
      • Sequence of elements
      • Maximum and minimum values
    • P eople can agree to use a common Schema for interchanging data
      • e-learning: IEEE Learning Object Metadata Schema (LOM)
  • Some Valid XML - EAD (Encoded Archival Description)
    • <archdesc level=&quot;fonds&quot;>
    • <did>
    • <repository>John Rylands University Library of Manchester</repository>
    • <unitid countrycode=&quot;GB&quot; repositorycode=&quot;0133&quot;>GB 0133 NCN</unitid>
    • <unittitle>Papers of Norman Nicholson</unittitle>
    • <unitdate normal=&quot;1899-1987&quot;>1899-1987</unitdate>
    • <physdesc>
    • <extent>0.44 cu.m; 1,201 items</extent>
    • </physdesc>
    • <langmaterial>
    • <language langcode=&quot;eng&quot;>English</language>
    • </langmaterial>
    • <origination>Nicholson, Norman Cornthwaite, 1914-1987</origination>
    • <note>Created by the John Rylands Library archivist</note>
    • </did>
    • … ..</archdesc>
  • Something to remember about XML
    • XML does not do anything itself . It is pure information wrapped in XML tags.
    • You must use other means to send, receive or display the data
    XML XML technologies Display here like this Display there like that extract this data for this purpose extract that data for that purpose is used by to..
  • Why Use XML?
    • Because everyone else is!
    • International standard, supported by the W3C
    • XML is open, licence free and platform neutral
    • XML is human and machine readable
    • XML documents are text documents
  • Why Use XML?
    • Separation of content and presentation
      • With proprietary systems content is inextricably bound up with format
    • XML does not determine the presentation of the data
      • Y ou can use CSS (stylesheets) or XSLT (Extensible Style Sheet Language for Transformations) to present XML data
    • The flexibility of XML enables the presentation of merged search results to the user.
  • Web Services
    • A Web Service is an online application that can be accessed by other applications in machine to machine (m2m) interactions
    • Web services use XML to achieve this interoperability
      • SOAP
      • WSDL: Web Services Description Language
      • UDDI: Universal Description, Discovery and Integration
  • What is a Web Service
    • A Web Service is a process of some kind, some functionality, for example:
      • A search and retrieve procedure
      • A conversion process
        • Fahrenheit to Centigrade
        • MARC record to Dublin Core record
        • LCSH subject headings to Dewey Decimal Classification numbers
  • Publicly available Web Services
    • Google’s ‘similar pages’
    • Amazon’s book connections: ‘customers who bought this also bought this’
    • These services can be used in other applications
    • Xmethods website has a list of some experimental services – http://www.xmethods.net
  • Creating a Web Service
    • Web services can be built for existing applications, or created from scratch
    • A key element of a Web Service is an XML file with details of how to interact with the service – the WSDL (Web Services Description Language) file
  • Zetoc WSDL extract
    • http://zetoc.mimas.ac.uk/soap/zetocsoap.wsdl
    • <complexType name=&quot;JournalRequest&quot;>
    • <sequence>
    • <element ref=&quot;srw:startRecord&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/>
    • <element ref=&quot;bath:any&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;dc:title&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;dc:creator&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;oujnl:jtitle&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;oujnl:issn&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;oujnl:volume&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;oujnl:issue&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;oujnl:spage&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • <element ref=&quot;dcterms:issued&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/>
    • </sequence>
    • </complexType>
  • Interacting with a Web Service
    • Once the client application knows how to interact with the service, the client and service communicate using messages encoded in XML
    • These messages are frequently expressed in SOAP
    • These messages are generally passed over HTTP (but they don’t have to be)
  • SOAP
    • A way of packaging XML information and passing it from one system to another
    • Allows one system to make requests of another and to process the reply
    • Systems can be completely different, running on different software, hardware
  • SOAP request
    • <soap:Envelope
    • xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;>
    • <soap:Body>
    • <zetoc:JournalRequest>
    • <dc:creator>apps</dc:creator>
    • <oujnl:title>materialia</oujnl:title>
    • <oujnl:issn>1359-6462</oujnl:issn>
    • <oujnl:volume>48</oujnl:volume>
    • </zetoc:JournalRequest>
    • </soap:Body>
    • </soap:Envelope>
  • SOAP response
    • HTTP/1.1 200 OK
    • Content-Type: text/xml
    • <soap:Envelope >
    • <soap:Body>
    • < zetoc:IdentifierSearchResponse >
    • <srw:numberOfRecords>1</srw:numberOfRecords>
    • <dc:identifier>RN125218404</dc:identifier>
    • <zetoc:type>J</zetoc:type>
    • <dc:title>Phase compositions in magnesium-rare earth alloys containing yttrium, gadolinium or dysprosium</dc:title>
    • </ zetoc:IdentifierSearchResponse >
    • </soap:Body>
    • </soap:Envelope>
  • To recap …
    • SOAP is a standard used for wrapping XML messages
    • The XML that is sent and returned within the SOAP wrapper is determined by the WSDL file for any particular Web Service
    • This is all done on a machine-to-machine level – you should never have to see a SOAP message
    • However we can demonstrate with XML SPY editor so we can see the SOAP messages [demo]
  • Search Retrieve URL / Web Service (SRU/SRW)
    • Takes the core of Z39.50 and re-implements as Web Service
    • SRU and SRW are XML based protocols designed to be a low barrier to entry solutions for performing searches and information retrieval operations across the internet.
    • The protocol has two ways that it can be carried:
      • via SOAP – Search Retrieve Web Service
      • as parameters in a URL. - SRU – Search/Retrieve by URL
    • The primary function of SRU/SRW is to allow a user to search a remote database of records.
    • This is done via the searchRetrieve operation:
      • the client sends a searchRetreiveRequest and
      • the server responds with a searchRetrieveResponse
  • Example SRW request
    • Most important part is the ‘query’. It contains a Common Query Language (CQL) string:
    • The request contains other parameters, all of these are optional except for ‘version’
  • Example SRW response
    • Response must contain ‘version’ and ‘number of records’
  • Some SRU Requests
    • SRU requests are URL with query string
    • ‘ Explain’ request: http://z3950.loc.gov:7090/voyager Describes the database/index and functionality
    • A simple search for the term &quot;dinosaur“: http://z3950.loc.gov:7090/voyager?version=1.1& operation=searchRetrieve&query=dinosaur
    • And the first of these records: http://z3950.loc.gov:7090/voyager?version=1.1&operation=searchRetrieve&query=dinosaur&maximumRecords=1
  • Open Archives Initiative (OAI)
    • The Open Archives Initiative (OAI) provides is a mechanism for sharing metadata records based on HTTP and XML
    • Enables metadata records about resources to be ‘harvested’ from multiple distributed services, typically into a central database (which itself may be a Z39.50 target)
    • Records harvested periodically e.g.. Once a day, hour etc.
    • Generally considered to be an elegant, simple and efficient protocol
    • 6 requests types or ‘verbs’ - GetRecord , Identify , ListIdentifier , ListMetadataFormats , ListRecords and ListSets .
    • JORUM Learning Object Repository Service OAI interface at: http://repository.jorum.ac.uk/intralibrary/IntraLibrary-OAI?verb=identify
  • Real Time Cross Searching VS. Harvesting
    • Delays occur with real time cross-searching
    • The response time for searches sent to multiple search targets tends to be limited by the worst performing target or intervening network delays.
    • Very difficult to build flexible browse interfaces based on a distributed set of gateway databases.
    • OAI harvesting periodic so search results may not be accurate and up to date
  • OAI - Connect Portal
    • Connect’ Learning & Teaching Portal
      • http://www.connect.ac.uk
    • Connect is a HE Academy project (used to be the LTSN – Learning and Teaching Support Network)
    • Connect harvests in records from HE Academy subject centres around the UK
    • Records harvested by server at Rutherford Appleton Labs
  • Connect Portal
  • Connect Portal
  • Connect Portal
  • Connect Portal
  • Connect Portal
  • Metasearch issues: Metadata
    • Format
      • As users searching cross-domain, it makes sense to use a cross-domain metadata schema. Dublin Core is a good contender for this and is required for use of OAI-PMH.
      • However, domains will use their own metadata schemas, such as the IEEE-LOM for learning objects.
      • Mappings required to enable cross searching, but some of the semantic richness of the original resource may be lost.
    • Common Meaning – Semantic issues
      • There needs to be agreement amongst content providers about the meaning of terms such as ‘title’, ‘article’, ‘research paper’, ‘learning object’
      • There will inevitably be difficulties in reaching agreement about the meaning of metadata elements, as they are used differently in different contexts.
  • Metasearch issues: Metadata
    • Political
      • The decision to make resources more widely available has implications for the organisations concerned:
        • It may be seen as a loss of control or ownership
        • staff may not possess the skills required to support more complex systems
    • Legal
      • legal requirements of Freedom of Information Legislation in several countries a significant factor in the dissemination of public sector resources.
      • The Intellectual Property Rights (IPR) of those providing sources may need to be protected.
  • Why not just use Google?
    • Its content is limited to the visible Web
    • Limited search functionality
      • Can’t search by specific criteria (metadata) such as ‘publication date’, ‘author’, ‘educational level’
    • Little quality control
    • Google Scholar?
      • Still a web crawl
      • Evidence that gives unreliable results
  • NISO Metasearch Initiative
    • This NISO MetaSearch initiative is trying to bring the area of metasearching together around a NISO standard.
    • “ Best Practices for Metasearch” document due out June 15 th 2005
    • http://www.niso.org/committees/MetaSearch-info.html
  • Overview
    • Introduction to Cross searching / metasearch
    • The Problem – why metasearch?
    • JISC Information Environment
    • Quick introduction to XML and Web Services
    • Metasearch Technologies
      • Z39.50, SRU/SRW, OAI
    • Metasearch issues
    • NISO Metasearch Initiative
  • Contact Adrian Stevenson Learning Technology Services Internet Services University of Manchester adrian.stevenson [at] manchester.ac.uk Tel: +44 (0) 161 306 3109