Skip to content
johan-montagnat edited this page Feb 19, 2016 · 1 revision

Table of Contents generated with DocToc

Launch the GUI

To launch the Corese GUI:

  • install and compile the code;

  • Launch the GUI:

     `java -jar ${CORESE_ROOT}/kggui/target/corese-*-jar-with-dependencies.jar`
    

You obtain the following window:

Corese GUI

Description of the GUI

The Corese GUI is made of:

  • a single "System" tab, that gives the state of Corese;
  • various "Query" tabs where the user can interact through SPARQL queries with the data loaded in Corese.

System Tab

When launching the application, the tab "System" is displayed and active. This tab:

  1. lists the files loaded inside the Corese engine in its upper part;
  2. displays the log of events in the lower part.

The following picture displays an example of System tab after loading some data.

System Tab

Note that the System tab is global to all the query tabs and cannot be closed.

Query Tabs

Tutorial on the GUI Usage

This tutorial is based on the Corese Server Tutorial. Its purpose is not to teach SPARQL. If you intend to learn SPARQL, please refer to the Corese Server Tutorial.

The purpose of this tutorial is to give an overview of how to use the Corese console.

Load Data

Prerequisite: Download the Data

The three following files have to be downloaded first:

Load the Data in Corese:

  • In the Corese GUI, open the menu "File/Load RDFS/OWL", then choose the human1 file. Repeat the operation for the human2 file.
  • Use the "File/Load Rule" menu to load the pragma file.

Select All the Triples

In order to select all the triples of the graph:

  • open a new Query tab by clicking the "+" button next to "System";
  • enter the following SPARQL request in the upper panel;
  • click on "Query" button;

You should obtain the following GUI:

Select All Query

The lower panel allows four representations of the results of a query:

  • the Graph tab displays:
    • a graph if the request is a CONSTRUCT or DESCRIBE (see picture);
    • a tree when results are contained in an array, as with a SELECT.
  • the XML tab gives express the results as a RDF/XML file;
  • the Table tab contains the data returned as a spreadsheet where each column stands for one variable of the SELECT part of the request.