Use Case
Q1: "List books published by Addison-Wesley after 1991". It translates to the following XQuery statement.
for $a in doc("bib.xml")/bib $b in $a/book where $b/publisher = Addison-Wesley and $b/year > 1991 return $a/book

Use Case Q1: Visual XQuery Graph
Q2: "List titles of book published by Great_Books and article whereby the author has written in both media". It translates to the following XQuery statement.
for $a in doc("bib.xml")/bib $b in $a/article $c in $a/book where $b/publisher = "Great_Books" and $b/author = $c/author return $b/title $c/title

Use Case Q2: Visual XQuery Graph
Q3: "List titles of book published by Great_Books and article whereby the author has written in both media". It translates to the following XQuery statement.
for $a in doc("bib.xml")/bib,
$b in $a/article,
$c in $a/book
where $b/publisher = "Morf mann"
and $b/author = $c/author
return $b/title, $c/title
Query 3 is similar to query 2 except the addition of the group node to ease user's visualization of the graph as the graph gets more complicated with the addition of more nodes and edges. The feature works similar to an element node except that it is connected to an incoming edge that has no edge label which symbolizes that the node is a group node as circled in blue .

Use Case Q3: Visual XQuery Graph (Group Node)
Web site and all contents © Copyright Visual XQuery 2007, All rights reserved.
Last Updated: 03 May 2007
|