Welcome.
The demo applet should be running as an applet communicating with the XSet server process. The applet is divided into 3 main sections, the Query Generator, the Query Window, and the Response Window. The current path of XML documents read into the database is shown in a text field at the very top of the applet, and controls are available to reset the contents of the database. The Query Generator is where you generate the desired query, which is then displayed in the Query Window. Responses to queries and most actions will be shown in the Response Window.
Generating Queries:
The XSet demo applet provides functionality for searching on tags for their contents and their attributes. Contents of tags can be searched for on a value basis or on a range query basis. The query generator lets you build up individual constraints first, then presenting the set of constraints together in the query document. Individual constraints are called QueryItems in the applet, and consist of a single Tag Name, optional attributes, and either a value or a set of ranges. To start making a query, first clear the list of QueryItems by clicking the QueryItems button.
To make a value constraint on a tag, start by choosing either range or value in the Query Type box. If the constraint is for a value, then fill out the Tag Name and Tag Value fields, and then click Add QueryItem. If the constraint is for a range value, then fill out the Tag Name, then define the left and right constraints on the range using the pull down operator lists, and then indicating the type of the range query, whether it be STRING, INTEGER or FLOAT, and finally hitting Add QueryItem. You'll see the actual constraint added shown in the Response Window.
You may add arbitrary # of constraints, both of range queries and value queries. When you're satisfied, click Generate Query to generate the complete query in the Query Window. If at any time you want to backtrack or restart, just hit the Clear QueryItems button to start on a new query.
Processing Queries:
After you're done composing the query, hit Process Query to contact the XSet Server and to display the response. The response will be shown as complete XML documents in the window, along with the actual query sent to the server.
Errors:
There may be times that the query response doesn't look quite right or if it doesn't change from the previous query. That's an indication that you forgot to actually hit the Generate Query button to update the query. If all else fails, just restart the applet by holding shift and hitting the reload button on your browser.
Please send any comments, questions, criticisms to
ninja-devel@ninja.cs.berkeley.edu.
Thanks.