OpenLink AJAX Toolkit (OAT) Wiki
Documentation, live demonstrations and programmers' guides for the OpenLink AJAX Toolkit (OAT)
Advanced Search
Help?
Location: / Dashboard / OATWikiWeb / InteractiveSparqlQueryBuilderBasicTutorial1

Interactive Sparql Query Builder Basic Tutorial

Basic iSPARQL Tutorial with query built from a blank canvas and pre-typed Nodes

This tutorial contains Initial Steps assuming a query is being built from a blank canvas and you want the Nodes to be pre-typed (i.e., you will drag-and-drop from the schema window).

  1. Go to iSPARQL demo page.
  2. By default, user name demo and password demo should be shown in the Login form. Click OK.



  3. You will now see the iSPARQL home page, with QBE tab open and default graph elements on the Canvas. Click the Clear Pane icon on the toolbar to empty the Canvas.



  4. Change the Data Source URI field value on the QBE tab to the Graph of the database against which you want to execute your query, i.e., for this example - http://demo.openlinksw.com/dataspace



  5. Go to the Schema Pane.
  6. Import the Schema that contain the Terms to be used in your Graph Pattern. For this example, import the FOAF schema - http://xmlns.com/foaf/0.1/



  7. Click on the imported schema Classes item + icon to expand it.



  8. Drag a Subject Node, e.g. Person, onto the Canvas.



  9. Select the node with value ? and in the Node pane, change the Variable field value to: ?s



  10. Select the Add mode icon from the QBE Navigation bar, and drag an Object Node on to the Canvas.



  11. In the Node pane, enter the Variable value: ?pname



  12. Select the Connector icon from the QBE Navigation bar and connect the node ?s with node ?pname.



  13. Click on the FOAF schema Properties item + icon to expand it.



  14. Drag an Attribute (A) or Relationship (R) property onto the connector between the nodes ?s and ?pname. For example, drag the attribute name.



  15. Click the Run Query button.
  16. You should see the results found by the query execution shown in the Results tab.



  17. To view the generated query, go to QBE tab and click the Generate button.
  18. As result the generated query will be shown in the Advanced tab canvas.



Powered By Virtuoso