Skip to Content

TU Wien Fakultät für Informatik DBAI Database and Artificial Intelligence Group
Top-level Navigation: Current-level Navigation:

Path: DBAI > Education > Semistructured Data > Exercise

Tools: Drucken


Exercises

On this page you will find the information for the exercises to Semistructured Data.

Procedure

The exercises follow these steps:

  • Register in TISS (mandatory)
  • Be invited to the TUWEL course.
  • The following points are optional, but will add to your final grade.
  • Solve exercise 1 (optional, max. 10 points)
    • Upload your solution
    • Reserve a time slot for the assignment discussion
    • Attend the assignment discussion with the teaching assistant
  • Solve exercise 2 (optional, max. 15 points)
    • Upload your solution
    • Reserve a time slot for the assignment discussion
    • Attend the assignment discussion with the teaching assistant

It is important for a smooth organization of the course to have a working e-mail added in your TISS profile!

Upload

You have to upload your solution to TUWEL until the date given below (see Important dates). Later changes and "forgotten" uploads will not be considered.

For the creation and validation of your solution we recommend to use the following tools. These tools will also be used by our teaching assistants.

You are responsible that you have uploaded your solution on time to TUWEL. Solutions that have not been solved individually will be graded with 0 points!

Please don't upload additional libraries and files.

Important Dates

Exercise Points Upload until Assignment discussions Registration until
Registration in TISS - 17.03.2016 - -
Exercise 1 (Example solution - Release 1) 10 05.05.2016 09.05.2016 - 20.05.2016 08.05.2016
Exercise 2 (Example solution - Release 1) 15 08.06.2016 10.06.2016 - 21.06.2016 09.06.2016

All deadlines are strict and end on the particular day at 11:59pm.

The assignment discussion will take place in our Frogger-, Q*Bert-, Pong and Pacman rooms of the Informatiklabor (Favoritenstraße 9-11, ground floor). Please check the location information when you register for a time-slot.

Q&A with our teaching assistants

There will be Q&A sessions in the Informatiklabor with our teaching assistants. Those will be in the weeks before you have to upload exercises 1 and 2.

Q&A for Exercise 1

Day TimeLocation
Mon, 25.04.201612:00-13:00Informatiklabor Pong
Tue, 26.04.201614:00-16:00Informatiklabor Pong
Thu, 28.04.201616:00-16:00Informatiklabor Pacman

Q&A for Exercise 2

Day TimeLocation
Wed, 01.06.201611:00-12:00Informatiklabor Pacman
Thu, 02.06.201614:00-15:00Informatiklabor Pong
Mon, 06.06.201613:00-14:00Informatiklabor Pong
Mon, 06.06.201615:00-16:00Informatiklabor Pong

TUWEL

TUWEL is our online tool for this course. You will need TUWEL to upload your solutions and to reserve a date and time for the assignment discussion.

The tool is available at http://tuwel.tuwien.ac.at/.

Accounts

After the registration deadline in TISS we will invite you to our course in TUWEL.

Upload of the solutions to the exercise

Exercises 1 and 2 will be uploaded to the CourseManager. You will be able to upload your solution as a zip-file. Only the zip-file that you have uploaded last will be graded. The teaching assistants will be able to download your solution.

Assignment discussions - reservation of a timeslot

To reserve a timeslot for the assignment discussion is mandatory. We will open the reservation system in TUWEL a few days (in general one week) before the first assignment discussion and will be closed the day before the first assignment discussion.

We will have a sufficient amount of timeslots. Please, reserve your favorite choice as soon as possible! If you are not able to attend your timeslot without a valid excuse (e.g. sudden illnes), you will receive 0 points!

The teaching assistant will also ask questions on the topics covered in the lecture; in extreme cases it is possible to receive 0 points for a correct solution!

If you are not able to attend any of the offered timeslots, you have to give us a valid excuse to get a different timeslot (e.g. confirmation of a physician, travel documents, ...).

Tools

For solving the exercises we recommend the following tools, which will also be used by the teaching assistants during the assignment discussions.

xmllint

XML files can be checked for well-formedness and validated against DTDs and XML schemas with xmllint. The reference for this tool is located here.

Downloads are available at xmlsoft.org. Here are direct links to the Windows- and the Linux version.

For Windows users we have compiled a zip-file with all the dependencies. You only have to unzip this file and add the bin directory to your PATH environment variable. The zip-file can be found here: TU-xmllint-win32.zip

DOM and SAX for Java

DOM and SAX libraries are already included in the JDK (Java Development Kit). Please make sure that your source files compile with JDK 7! This Java version is also used during your assignment discussion.

XPathWay

You can evaluate your XPath expression with the tool XPathWay (Version 1.01). This tool supports primarily XPath 2.0!

Notice the following for the use of namespace prefixes in your queries:

  • Queries are always evaluated against the prefixes known at the current XML node. This node can be set with the "Set Root" button.
  • After the document has been loaded, this node is the document node, for which no prefixes have been bound.
  • If the expression uses prefixes that are defined in the document element, then you have to set with "Set Root" this node as context node. Notice that your expression is evaluated relative to this node.
  • Absolute expressions evaluate always correctly from the document node, i.e. //* selects all element nodes in the document.

Saxon

For the execution of XQueries and XSLT Stylesheets the XQuery- and XSLT processor Saxon can be used. Version 9 can be downloaded here. The JAR file has to be added to your CLASSPATH environment variable.

Queries are executed with:
java net.sf.saxon.Query -s:test.xml -q:xquery.xq -o:out.xml

XSLT Stylesheets are executed with:
java net.sf.saxon.Transform -s:test.xml -xsl:test.xsl -o:out.xml

XML editing

Any XML editor can be used during the course of this exercise. You have to be able to explain your solution!

In principle any text editor can be used for writing XML files. The editors mentioned here provide at least syntax highlighting, which helps you in the editing process. Please check the correct encoding of your files!

Here you can find a more or less random selection of possible tools. A more general overview can be found on Wikipedia: Comparison of XML editors.

If you know any good and free (at least for teaching purposes) software, write an e-mail to ssd(at)dbai.tuwien.ac.at.

platform independent tools

Windows

Linux/*BSD

Mac OS X

Last edit: 18.06.2016 09:16
Logo of Altova

Home / Kontakt / Webmaster / Offenlegung gemäß § 25 Mediengesetz: Inhaber der Website ist das Institut für Logic and Computation an der Technischen Universität Wien, 1040 Wien. Die TU Wien distanziert sich von den Inhalten aller extern gelinkten Seiten und übernimmt diesbezüglich keine Haftung. Disclaimer / Datenschutzerklärung