XQuery is the standard query language in Tamino for performing queries on XML objects. It allows you not only to retrieve database contents, but also to compose your query result using constructors. With Tamino XQuery you can:
Query XML objects from Tamino databases;
Use simple datatypes as defined in XML Schema;
Perform "join" operations across doctypes and collections;
Construct new elements in your query results.
In this document you will see some typical queries which
illustrate the capabilities of Tamino XQuery. We use two XML documents of two
different doctypes, namely reviews
and bib
,
describing reviews of computer science books and bibliographical entries. They
have been published as the W3C Working Group Note
XML Query Use
Cases.
For each use case you will find the query, the output of Tamino, and an explanation. If you want to check these examples yourself, create a new database in the Tamino Manager, and in the Tamino Interactive Interface you can define the schema and load the data into Tamino.
The sample documents open in a new window so that you can compare the source data with the query examples side by side.
Sample Doctype
bib |
Sample Doctype
reviews |
Query Examples |