Basic iSPARQL Tutorial with query built from a blank canvas and Nodes from the Toolbar

This tutorial contains initial Steps assuming a blank canvas, and Nodes you will drag from the Toolbar.

  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, i.e., http://id.myopenlink.net/dataspace



  7. Click the Add nodes Toolbar item



  8. Drag the Subject Node to the Canvas



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



  10. Drag the Object Node to the Canvas



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



  12. Click the Connector Toolbar item



  13. Click and drag from Subject Node to Object Node



  14. In the Schema pane, import the following Schemas/Ontologies:
    1. rdf-schema: http://www.w3.org/2000/01/rdf-schema#
    2. FOAF - http://xmlns.com/foaf/0.1/







  15. Click on the + Classes icon in the FOAF schema to expand it.



  16. Select the Class item Person and drag it over the Subject Node



  17. Click the Add nodes Toolbar item and add a node to the Canvas.



  18. In the Node pane, enter the Variable value: ?sname



  19. Click the Connector Toolbar item.
  20. Click and drag from Object Node to the Node ?sname:



  21. Click on the + Properties icon in the rdfs schema in order to expand it.



  22. Select the Property item seeAlso and drag it over the connection between the Object Node and the Node ?sname:



  23. Click on the + Properties icon in the FOAF schema in order to expand it and drag an Attribute (A) or Relationship (R) property from the Schema Window over the Connector between the Subject and the Object nodes. For example, drag the relationship knows.



  24. Click the Run Query button.
  25. You should see in the Results tab the results found by the query execution:



  26. To view the generated query:
    1. Go to the QBE tab and click the Generate button or
    2. Go directly to the Advanced tab:



Related


Referenced by...