Chapter 4 : Query Languages Baeza-Yates, 1999 Modern Information Retrieval.

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

THE STEPS OF SEARCH You have opened a new veterinary clinic in a small town, and want people in the vicinity to know about it. You need some new ideas.
XML: Extensible Markup Language
Modern Information Retrieval Chapter 1: Introduction
Query Languages. Information Retrieval Concerned with the: Representation of Storage of Organization of, and Access to Information items.
1 Suffix Trees and Suffix Arrays Modern Information Retrieval by R. Baeza-Yates and B. Ribeiro-Neto Addison-Wesley, (Chapter 8)
The Trie Data Structure Basic definition: a recursive tree structure that uses the digital decomposition of strings to represent a set of strings for searching.
Modern Information Retrieval
T.Sharon - A.Frank 1 Internet Resources Discovery (IRD) Classic Information Retrieval (IR)
Basic IR: Queries Query is statement of user’s information need. Index is designed to map queries to likely to be relevant documents. Query type, content,
Modern Information Retrieval Chapter 1: Introduction
IR Models: Structural Models
1 Query Languages. 2 Boolean Queries Keywords combined with Boolean operators: –OR: (e 1 OR e 2 ) –AND: (e 1 AND e 2 ) –BUT: (e 1 BUT e 2 ) Satisfy e.
Visual Web Information Extraction With Lixto Robert Baumgartner Sergio Flesca Georg Gottlob.
Query Languages: Patterns & Structures. Pattern Matching Pattern –a set of syntactic features that must occur in a text segment Types of patterns –Words:
Chapter 2Modeling 資工 4B 陳建勳. Introduction.  Traditional information retrieval systems usually adopt index terms to index and retrieve documents.
LAST WEEK  Retrieval evaluation  Why?  How?  Recall and precision – Venn’s Diagram & Contingency Table.
1 Query Language Baeza-Yates and Navarro Modern Information Retrieval, 1999 Chapter 4.
Introduction to Structured Query Language (SQL)
Modern Information Retrieval Chapter 4 Query Languages.
WMES3103 : INFORMATION RETRIEVAL INDEXING AND SEARCHING.
Query Languages. Keyword-Based Querying  Single Word Queries  Context Queries  Phrase  Proximity  Boolean Queries  OR, AND, BUT  Natural Language.
1 Query Languages. 2 Boolean Queries Keywords combined with Boolean operators: –OR: (e 1 OR e 2 ) –AND: (e 1 AND e 2 ) –BUT: (e 1 BUT e 2 ) Satisfy e.
1 Modern information retrieval Chapter. 04: Query Languages.
Chapter 4 Query Languages.... Introduction Cover different kinds of queries posed to text retrieval systems Keyword-based query languages  include simple.
On the Use of Regular Expressions for Searching Text Charles L.A. Clarke and Gordon V. Cormack Fast Text Searching.
Introduction n Keyword-based query answering considers that the documents are flat i.e., a word in the title has the same weight as a word in the body.
Modern Information Retrieval Chap. 02: Modeling (Structured Text Models)
1 Chapter Internet Applications (DNS, )
The main mathematical concepts that are used in this research are presented in this section. Definition 1: XML tree is composed of many subtrees of different.
Thanks to Bill Arms, Marti Hearst Documents. Last time Size of information –Continues to grow IR an old field, goes back to the ‘40s IR iterative process.
XPath. Why XPath? Common syntax, semantics for [XSLT] [XPointer][XSLT] [XPointer] Used to address parts of an XML document Provides basic facilities for.
1 University of Palestine Topics In CIS ITBS 3202 Ms. Eman Alajrami 2 nd Semester
© 2007 CBHL The CBHL Distributed Library The Council on Botanical and Horticultural Libraries A Guide to Content and Search Features.
1 Information Retrieval Acknowledgements: Dr Mounia Lalmas (QMW) Dr Joemon Jose (Glasgow)
Autumn Web Information retrieval (Web IR) Handout #0: Introduction Ali Mohammad Zareh Bidoki ECE Department, Yazd University
CSE 311 Foundations of Computing I Lecture 17 Structural Induction: Regular Expressions, Regular Languages Autumn 2011 CSE 3111.
Information Retrieval CSE 8337 Spring 2007 Query Languages & Matching Material for these slides obtained from: Modern Information Retrieval by Ricardo.
1 CS 502: Computing Methods for Digital Libraries Lecture 19 Interoperability Z39.50.
LIS618 lecture 3 Thomas Krichel Structure of talk Document Preprocessing Basic ingredients of query languages Retrieval performance evaluation.
WIRED Week 3 Syllabus Update (next week) Readings Overview - Quick Review of Last Week’s IR Models (if time) - Evaluating IR Systems - Understanding Queries.
CSE 311 Foundations of Computing I Lecture 17 Structural Induction Spring
XML 2nd EDITION Tutorial 4 Working With Schemas. XP Schemas A schema is an XML document that defines the content and structure of one or more XML documents.
1 CS 430: Information Discovery Lecture 4 Files Structures for Inverted Files.
Sept. 27, 2002 ISDB’02 Transforming XPath Queries for Bottom-Up Query Processing Yoshiharu Ishikawa Takaaki Nagai Hiroyuki Kitagawa University of Tsukuba.
Information Retrieval
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Chapter 7 - Sequence patterns1 Chapter 7 – Sequence patterns (first part) We want a signature for a protein sequence family. The signature should ideally.
Lecture 2- Internet, Basic Search, Advanced Search COE 201- Computer Proficiency.
The World Wide Web. What is the worldwide web? The content of the worldwide web is held on individual pages which are gathered together to form websites.
Structured Text Retrieval Models. Str. Text Retrieval Text Retrieval retrieves documents based on index terms. Observation: Documents have implicit structure.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Modern information retrieval
Web Database Programming Using PHP
HTML CS 4640 Programming Languages for Web Applications
CS 330 Class 7 Comments on Exam Programming plan for today:
Text Based Information Retrieval
Web Database Programming Using PHP
CSE 311 Foundations of Computing I
CS 430: Information Discovery
Query Languages.
Chapter 27 WWW and HTTP.
Database Connectivity and Web Development
Modern information retrieval
Models for Retrieval and Browsing - Structural Models and Browsing
Query Languages Berlin Chen 2003 Reference:
Discrete Maths 13. Grammars Objectives
Recuperação de Informação B
Modern information retrieval
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

Chapter 4 : Query Languages Baeza-Yates, 1999 Modern Information Retrieval

Outline Keyword-Based Querying Patten Matching Structural Queries Query Protocols Trends and Research Issues

Keyword-Based Querying A query is formulation of a user information need Keyword-based queries are popular 1. Single-Word Queries 2. Context Queries 3. Boolean Queries 4. Natural Language Data Retrieval Information Retrieval

Single-Word Queries A query is formulated by a word A document is formulated by long sequences of words A word is a sequence of letters surrounded by separators What are letters and separators? e.g, ’ on-line ’ The division of the text into words is not arbitrary

Context Queries Definition - Search words in a given context Types  Phrase >a sequence of single-word queries >e.g, enhance retrieval  Proximity >a sequence of single words or phrases, and a maximum allowed distance between them are specified >e.g,within distance (enhance, retrieval, 4) will match ‘… enhance the power of retrieval …’

 Definition  A syntax composed of atoms that retrieve documents, and of Boolean operators which work on their operands  e.g, translation AND syntax OR syntactic Fuzzy Boolean  Retrieve documents appearing in some operands (The AND may require it to appear in more operands than the OR) Boolean Queries

Natural Language Generalization of “ fuzzy Boolean ” A query is an enumeration of words and context queries All the documents matching a portion of the user query are retrieved

Pattern Matching Data retrieval A pattern is a set of syntactic features that must occur in a text segment Types  Words  Prefixes e.q ‘ comput ’ -> ’ computer ’, ’ computation ’, ’ computing ’,etc  Suffixes e.q ‘ ters ’ -> ’ computers ’, ’ testers ’, ’ painters ’,etc  Substrings e.q ‘ tal ’ -> ’ coastal ’, ’ talk ’, ’ metallic ’,etc  Ranges between ‘ held ’ and ‘ hold ’ -> ’ hoax ’ and ‘ hissing ’

Allowing errors Retrieve all text words which all ‘ similar ’ to the given word  edit distance: the minimum number of character insertions, deletions, and replacements needed to make two strings equal, e.q, ‘ flower ’ and ‘ flo wer ’  maximum allowed edit distance: query specifies the maximum number of allowed errors for a word to match the pattern

Regular expressions  union: if e 1 and e 2 are regular expressions, then(e 1 |e 2 ) matches what e 1 or e 2 matches  concatenation: if e 1 and e 2 are regular expressions, the occurrences of (e 1 e 2 ) are formed by the occurrences of e 1 immediately followed by those of e 2  repetition: if e is a regular expression, then (e*) matches a sequence of zero or more contiguous occurrence of e  ‘ pro(blem|tein)(s|є)(0|1|2)* ’ -> ’ problem2 ’ and ‘ proteins ’

Structural Queries Mixing contents and structure in queries - contents: words, phrases, or patterns - structural constraints: containment, proximity, or other restrictions on structural elements Three main structures - Fixed structure - Hypertext structure - Hierarchical structure

Fixed Structure Document:a fixed set of fields EX: a mail has a sender, a receiver, a date, a subject and a body field Search for the mails sent to a given person with “football” in the Subject field

A hypertext is a directed graph where nodes hold some text (text contents) the links represent connections between nodes or between positions inside nodes (structural connectivity) Hypertext

Hypertext : WebGlimpse WebGlimpse: combine browsing and searching on the Web

Hierarchical Structure

PAT Expressions Overlapped Lists Lists of References Proximal Nodes Tree Matching

Query Protocols Z39.50 WAIS (Wide Area Information Service)

Z39.50 American National Standard Information Retrieval Application Service Definition Can be implemented on any platform Query bibliographical information using a standard interface between the client and the host database manager Z39.50 protocol is part of WAIS

Z39.50 Brief history Z (version 1) Z (version 2) Z (version 3) Version 4, development began in Autumn 1995

Using Z39.50 over the WWW WWW ClientWWW Z39.50 Z39.50 Client Z39.50 Server Repository Digital library

WAIS (Wide Area Information Service) Beginning in the 1990s Query databases through the Internet

Trends and Research Issues ModelQueries allowed Boolean Vector Probabilistic BBN word,set operations words Relationship between types of queries and models

Query Language Taxonomy The types of queries covered and how they are structured

PAT Tree Expression The model allow for the areas of a region to overlap or nest

Overlapped Lists The model allow for the areas of a region to overlap, but not to nest It is not clear, whether overlapping is good or not for capturing the structural properties

Lists of References Overlap and nest are not allowed All elements must be of the same type,e.g only sections, or only paragraphs. A reference is a pointer to a region of the database.

Proximal Nodes This model tries to find a good compromise between expressiveness and efficiency. It does not define a specific language, but a model in which it is shown that a number of useful operators can be included achieving good efficiency.

Tree Matching The leaves of the query can be not only structural elements but also text patterns, meaning that the ancestor of the leaf must contain that pattern.