W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

proposal for a new XQuery and XPath Use Case

From: Chavdar Botev <cbotev@cs.cornell.edu>
Date: Tue, 04 Nov 2003 13:43:35 -0500
Message-ID: <3FA7F357.1090701@cs.cornell.edu>
To: public-qt-comments@w3.org
Cc: "Jayavel Shanmugasundaram" <jai@cs.cornell.edu>, Sihem Amer-Yahia <sihem@research.att.com>, Chavdar Botev <cbotev@cs.cornell.edu>
We find that it is very useful to be able to incorporate XQuery 
expressions within full-text searching expressions and propose that the 
attached use case be added to the XQuery and XPath Full-Text Use Cases.


Best regards,
Chavdar Botev

--
Chavdar Botev
Cornell University

Office: (+1 607)255 3914

Use Case: Nested XQuery expression 


Description
--------------

Find all the books published after 2001 that share a subject with a
book on "Improving Web Site Usability".

This query finds words in an element. It uses an XQuery expression
for specifying the words to search.

* Operands "Improving Web Site Usability"
* Functionality: word query, and query, nested xquery expression
* Context: books/book/metadata//@shortTitle, 
		   books/book/metadata//subject
* Return: books/book/metadata/title, books/book/metadata/author
* Comments: This query returns a book if its date of publishing or of 
            last revision is after 2001 and one of its subjects 
			contains the words from a subject of the book whose title 
			is "Improving Web Site Usability". This query uses an 
			XQuery expression to dynamically (at query time) find the 
			subjects of this book.
            
Expected result
----------------

<title shortTitle="Usabilityguy Manuscript Guide">John Wesley
	Usabilityguy: A Register of His Papers</title>
<authors>
	<author>Millicent Marigold</author>
	<author>Morty Marigold</author>
</authors>
Received on Tuesday, 4 November 2003 13:51:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:03 GMT