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

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 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. Click the Add mode Toolbar item
  6. Drag the Subject Node to the Canvas
  7. In the Node pane, enter the Variable value: ?pname
  8. Drag the Object Node to the Canvas
  9. In the Node pane, enter the Variable value: ?o
  10. Click the Connector Toolbar item
  11. Click and drag from Subject Node to Object Node
  12. 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/
  13. Click on the + Classes icon in the FOAF schema to expand it.
  14. Select the Class item Person and drag it over the Subject Node
  15. Click the Add mode Toolbar item and add a node to the Canvas.
  16. In the Node pane, enter the Variable value: ?sname
  17. Click the Connector Toolbar item
  18. Click and drag from Object Node to the Node ?sname
  19. Click on the + Properties icon in the rdfs schema in order to expand it.
  20. Select the Property item seeAlso and drag it over the connection between the Object Node and the Node ?sname
  21. 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 .
  22. Click the Run Query button.
  23. You should see in the Results tab the results found by the query execution.
  24. To view the generated query got to the QBE tab and click the Generate button.

Powered By Virtuoso