Previous Topic

Next Topic

Mulgara Viewer

The Mulgara ViewerTM is a web-based query interface for Mulgara. It allows you to execute iTQLTM commands and then view the results in formatted HTML.

With Mulgara is running, you can access the Mulgara Viewer by opening your web browser and entering a URL of http://<host name>:<port>/webui/ where <host name> is the server name and <port> is the HTTP port you started TKS with. The default port is 8080. For example, with Mulgara running on your local system on port 8080, the URL is http://localhost:8080/webui/.

See the Mulgara Configuration File section in the Administrator Guide for more information on starting Mulgara with a different host name and port.

The resources displayed from queries made to the Mulgara Viewer are links, that when clicked on allow you to traverse the RDF graph in the model.

Clicking on a resource in a query result executes three additional queries, with each query varying the role of the resource as a constraint on the subject, predicate and object. This allows you to see where the resource has been used in any statement in the model. Literals only ever form the object part of an RDF statement so clicking on a literal causes the execution of just one query which shows all statements in which the literal is the object.

TKS Viewer First Screen

The Mulgara Viewer screen (shown above) includes the following elements:

  • Model URI field

    Allows you to specify a model name. The field defaults to sampledata on your local system.

  • Example Queries field

    A drop-down list with eight sample iTQL functions. Running through the functions in order step you through a simple iTQL tutorial.

  • Query Text field

    Edit the iTQL command displayed as a result of selecting one of the eight sample queries. You can also type your own iTQL commands in this field.

  • Submit Query button

    Executes the iTQL command.

  • Clear Query button

    Clear the Query Text field.

See Also

Mulgara Sample Data

Loading Existing RDF Data

Converting XML Data to RDF

Mulgara Sample Data

As stated previously, the Example Queries field contains eight example iTQLTM commands that allow you to:

  • Create models
  • Load sample data into models

    The sample data contains Rich Site Summary (RSS) news feed data from the World Wide Web Consortium's Web site. RSS is a precursor to RDF and is often used to publish headlines and links to important stories on Web sites so that other sites can automatically syndicate the information.

  • View data in models
  • Drop models

Executing the example commands in order walks you through a simple tutorial on how to use the Mulgara ViewerTM and iTQL.

Each time you select one of the example commands, the Mulgara Viewer places a command into the Query Text field. You can edit the command as required, before submitting it with the Submit Query button.

Example Commands

The first example command, Step 1. Create a Model, creates a new model called sampledata in the Mulgara database on your local system.

A model in an RDF database is analogous to a table in a relational database. That is, it is a container to hold data. Models group RDF statements together, allowing you to manage the metadata.

Viewer Step 1

Click on the Submit Query button to submit this query and create the model.

Viewer Step 1 Result

The second example command, Step 2. Load Data into the Model, loads sample data into the Mulgara model just created. The sample data is embedded in the Mulgara JAR file, so the URL used in the iTQLTM command is a JAR URL with an embedded file: URL.

Viewer Step 2

The third example command, Step 3. List Everything in the Model, lists all the statements just loaded.

Viewer Step 3

The fourth example command, Step 4. List the News Articles, lists the RSS news summaries in the model.

Viewer Step 4

The remaining example commands (Steps 5 to 8) demonstrate how to load RDF Schemas and use them in iTQL commands, and then drop all created models, which also removes all data stored in them.

Open Source logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.

© 2006 The Mulgara Project. Some rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".