Requires gradle:
gradle build
This will run all tests, compile and place the fat jars into sub-folders of demo/
, and generate the javadoc documentation
-
Navigate to the directory:
cd demo/xpath/
Save the XPath query in
input.txt
To run the XPath query, execute
./xpath.sh
The resulting list of nodes will be stored in
output.xml
and displayed in the terminal
-
Navigate to the directory:
cd demo/xquery/
Save the XQuery query in
input.txt
To run the XQuery query, execute
./xquery.sh
The resulting document will be stored in
output.xml
and displayed in the terminal
-
Run optimized XQuery:
cd demo/optimized-xquery/
Save the XQuery query in
input.txt
To run the XQuery query, execute
./optimized-xquery.sh
The intermediate rewritten queries will be stored in
rewritten.txt
The resulting document will be stored in
output.xml
and displayed in the terminal
-
Run XQuery formatter:
cd demo/formatter/
Save the XQuery query in
input.txt
To format the XQuery query, execute
./formatter.sh
The formatted query will be stored in
output.txt
and displayed in the terminal
demo/ - Executables
docs/ - Project documentation
javadoc/ - Code documentation
references/ - Simplified XQuery references
report/ - Final project report
src/ - Source code
main/ - Implementation
antlr4/ - XQuery and XPath grammar definitions
java/edu/cse232b/jsidrach/ - Java code
apps/ - Command-line executables
utils/ - IO auxiliary classes
xpath/ - XPath engine
xquery/ - XQuery engine
optimized/ - XQuery join optimizator
test/ - Unit and integration tests
java/ - Tests code
resources/ - Input (XQuery) and expected output (XML)