Basic Tutorial for iSPARQL, the Interactive SPARQL Query Builder (part 2)

Building a query on a blank canvas, starting with pre-defined schema 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 http://cname/isparql, for ex. http://id.myopenlink.net/isparql
  2. The iSPARQL initialization window will be shown:



  3. Finally will be presented the iSPARQL Advanced tab open with a default SPARQL query:

    SELECT * WHERE {?s ?p ?o}





  4. Go to QBE tab:



  5. Click the Clear Pane icon on the toolbar to empty the Canvas.







  6. 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, for ex: http://id.myopenlink.net/dataspace



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







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



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



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



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



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



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



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



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



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



  19. To view the generated query:
    1. Go to QBE tab and click the Generate button or
    2. Go directly to the Advanced tab:
  20. As result the generated query will be shown in the Advanced tab canvas.



Related


Referenced by...