Query Languages: Patterns & Structures. Pattern Matching Pattern –a set of syntactic features that must occur in a text segment Types of patterns –Words:

Slides:



Advertisements
Similar presentations
XML: Extensible Markup Language
Advertisements

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.
April 2001Division of Library Services IDEAL® is a collection of full text journal titles. Includes 173 journal titles from Academic Press. Abstracts and.
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,
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.
LAST WEEK  Retrieval evaluation  Why?  How?  Recall and precision – Venn’s Diagram & Contingency Table.
Chapter 4 : Query Languages Baeza-Yates, 1999 Modern Information Retrieval.
Searching The Web Search Engines are computer programs (variously called robots, crawlers, spiders, worms) that automatically visit Web sites and, starting.
Indexing and Searching
Representation of Web Data in a Web Warehouse Ragini A.S. & Shipra Dutta November 20 th, 2001.
Guide To UNIX Using Linux Third Edition
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Copyright 2003 The McGraw-Hill Companies, Inc CHAPTER Application Software computing ESSENTIALS    
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.
CORE 2: Information systems and Databases HYPERTEXT/ HYPERMEDIA.
1 Modern information retrieval Chapter. 04: Query Languages.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
Chapter 4 Query Languages.... Introduction Cover different kinds of queries posed to text retrieval systems Keyword-based query languages  include simple.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
4/20/2017.
On the Use of Regular Expressions for Searching Text Charles L.A. Clarke and Gordon V. Cormack Fast Text Searching.
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
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)
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Search. Structure of the Web n The Web is a complex network (graph) of nodes & links that has the appearance of a self-organizing structure  The.
Of 33 lecture 3: xml and xml schema. of 33 XML, RDF, RDF Schema overview XML – simple introduction and XML Schema RDF – basics, language RDF Schema –
1 University of Palestine Topics In CIS ITBS 3202 Ms. Eman Alajrami 2 nd Semester
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.
Lesson 7 – World Wide Web. What is the World Wide Web?  The content of the worldwide web is held on individual web pages gathered together to form websites.
Introduction to Digital Libraries hussein suleman uct cs honours 2003.
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.
[ Part III of The XML seminar ] Presenter: Xiaogeng Zhao A Introduction of XQL.
XML and Database.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Information Retrieval
Chapter 7 - Sequence patterns1 Chapter 7 – Sequence patterns (first part) We want a signature for a protein sequence family. The signature should ideally.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Modern information retrieval
Web Database Programming Using PHP
XML: Extensible Markup Language
Web Database Programming Using PHP
Introduction to XHTML.
Query Languages.
Web DB Programming: PHP
Chapter 16 The World Wide Web.
Database Connectivity and Web Development
Modern information retrieval
Models for Retrieval and Browsing - Structural Models and Browsing
Query Languages Berlin Chen 2003 Reference:
Recuperação de Informação B
Information Retrieval and Web Design
Modern information retrieval
Information Retrieval and Web Design
Presentation transcript:

Query Languages: Patterns & Structures

Pattern Matching Pattern –a set of syntactic features that must occur in a text segment Types of patterns –Words: string (sequence of characters) in the text –Prefixes: string forming the beginning of a text word (e.g., comput → computer, computation) –Suffixes: string forming the termination of a text word (e.g., ters → computers, painters) –Substrings: string appeared within a text word (allowed word separators) (e.g., tal → talk, metallic & any flow → many flowers)

Pattern Matching (cont.) More Types of Patterns –Ranges: a pair of strings matched any word lying between them in lexicographical order (e.g., held to hold → hoax, hissing) –Allowing errors: retrieving word similar to given word (e.g., flower → flo wer [edit distance = 1]) –Regular expressions: general patterns built up by simple strings and operators (e.g., pro (blem | tein) (s | ε) (0 | 1 | 2)* ) → Problem02, proteins –Extended patterns: classes of characters, conditional expressions, wild characters, combinations

Structural Queries Structural query –mixing contents and structure in queries content constraints (words, phrases, patterns) structural constraints (containment, proximity) and restrictions on structural elements (chapters, sections) Type of structures of text –form-like fixed structure –hypertext structure –hierarchical structure

Structural Queries (cont.) Types of structures formhypertexthierarchical

Fixed Structure Traditional restrictions –documents had a fixed set of fields –each field had some text inside –only rarely the fields appear in any order or repeat –fields were not allowed to nest or overlap –retrieval: specifying a given basic pattern to be found only in a given field Characteristics –reasonable to retrieve text collection having a fixed structure (e.g. mail archive) → inadequate to represent the hierarchical structure such as HTML docs –expansion to relational DB model

Hypertext Hypertext (navigational) –a directed graph where the nodes hold some text and the links represent connections between nodes or between positions inside the nodes Browsing / Searching in hypertext –retrieval from a hypertext: browsing (traversing the hypertext nodes following link → navigational activity) –even in web, one can search by the text contents of the nodes, but not by their structural connectivity –some search engines now allow searching for specific source or destination anchors (but not general structure + content queries)

Hierarchical Structure Hierarchical structure –an intermediate structuring model lying between fixed structure and hypertext –represents a recursive decomposition of the text –a natural model for many text collections, e.g., books, articles, legal documents, structured programs, etc. Hierarchical models –PAT Expressions, Overlapped Lists, List of References, Proximal Nodes, Tree Matching Issues in hierarchical models –static or dynamic structure, restrictions on the structure, integration with text, query language

Query Protocols Query protocols –query language used to query text database –standards intended not for human use but for querying library systems and querying CD-ROMs Some important query protocols –Z39.50 –WAIS –CCL –CD-RDx –SFQL