XQuark Fusion - Examples of use

This directory contains examples of use for XQuark Fusion. The directory for each individual example generally contains:

Note that all the source files have been compiled using Ant (version 1.5.3). Any other build tool should work as well, but you will need to write your own build file.

The command-line examples given below assume that the XQuark Fusion command-line tool has been properly configured, as detailed in the installation guide.

Example Description
extractor

This directory contains the configuration file main.xml of the XQuark Fusion for executing the relational use cases specified by the W3C. main.xml defines 3 differents wrappers WSQL1.cfg, WSQL2.cfg and WSQL3.cfg, each one being for now an SQL Wrapper running above the XQuark Fusion.

Within each SQL Wrapper configuration file is defined the underlying JDBC connection parameters with the tags <user>/<password>/<url>. You should adapt/modify these parameters to your local environment as well as the "name" attribute of the <schema> element.

It also contains a set of XQuery files (suffixed by .xqy) adapted from the relational use cases specified by the W3C. Each query can be executed using the following command:

    xqfusion main.xml q4-xx.xqy

This command will print the query results on the standard output.

The SQL instructions present in the load.sql file must have been previously executed in order to create the required relational structures and data.

mixed

This directory contains the configuration file main.xml of the XQuark Fusion for executing the relational use cases specified by the W3C. main.xml defines 2 differents wrappers WSQL1.cfg and WSQL2.cfg , each one being for now an SQL Wrapper running above the XQuark Fusion.

Some data is contained in a document named bids.xml.

Within each SQL Wrapper configuration file is defined the underlying JDBC connection parameters with the tags <user>/<password>/<url>. You should adapt/modify these parameters to your local environment as well as the "name" attribute of the <schema> element.

It also contains a set of XQuery files (suffixed by .xqy) adapted from the relational use cases specified by the W3C. Each query can be executed using the following command:

    xqfusion main.xml q4-xx.xqy

This command will print the query results on the standard output.

The SQL instructions present in the load.sql file must have been previously executed in order to create the required relational structures and data.

xquery

This directory contains the configuration file main.xml of the XQuark Fusion for executing the relational use cases specified by the W3C. main.xml does not define any wrapper.

Data is contained in three docuemnts named users.xml, items.xml and bids.xml.

Within each SQL Wrapper configuration file is defined the underlying JDBC connection parameters with the tags <user>/<password>/<url>. You should adapt/modify these parameters to your local environment as well as the "name" attribute of the <schema> element.

It also contains a set of XQuery files (suffixed by .xqy) adapted from the relational use cases specified by the W3C. Each query can be executed using the following command:

    xqfusion main.xml q4-xx.xqy

This command will print the query results on the standard output.

The SQL instructions present in the load.sql file must have been previously executed in order to create the required relational structures and data.