Execute SPARQL Queries Using the CGE UI

Procedure for executing SPARQL queries via the CGE Query Interface

The Cray Graph Engine (CGE) Query Interface allows executing SPARQL queries on a loaded RDF database running within CGE. The main feature of this interface is the text field for entering queries to execute. Secondly, there is a check box that enables specifies that the server returns the query results with a

Content-Type header value of text/plain, which will force the browser to display the results as many browsers will download the results rather than display them by default. The rest of the options seen in this interface are described later in the Advanced Options section.

The browser interface uses standard HTTP content negotiation to determine the format in which to return the query results, most browsers out of the box will receive results in an XML/JSON format:

  1. Optional: Log on to the CGE UI by pointing a browser at http://machine-login1:3756/login, entering credentials and then selecting the Login button.
    This step is optional, depending on how the interface has been configured
  2. Access the CGE Query Interface using one of the following mechanisms:
    • Point the browser at http://machine:3756/dataset/query
    • Select the Query Interface link from the Data Access drop down on the CGE Query Interface UI.
    Figure: Query Interface
  3. Execute a SPARQL query,by entering it in the SPARQL Query field. The check box under the SPARQL Query field can be selected to specify that the server should return the query results with a Content-Type header value of text/plain. This will force the browser to display the results in the browser, as many browsers will download the results rather than display them by default.  
  4. Select the Run Query button, which will submit the query to the server and deliver the results to the browser. The user interface uses standard HTTP content negotiation to determine the format in which to return the query results. Most browsers receive results in an XML/JSON format.