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 drag from the schema window).
- Go to iSPARQL demo page.
- Click "Ok" in the shown Login form.
By default should be shown user name demo and password demo.
-
- As result will be shown the iSPARQL home page, with opened tab "QBE" and default graph elements will be shown on the Canvas.
Click the "Clear Pane" icon form the toolbar in order to empty the Canvas.
-
- Change the "Data Source URI" field value from the QBE tab to: http://demo.openlinksw.com/dataspace as the query we are going to build will be executed against the database with this Graph.
-
- Go to the Schema Window.
- Import the Schema that contain the Terms to be used in the your Graph Pattern.
For ex.
import the foaf schema: http://xmlns.com/foaf/0.1/
-
- Click on the imported schema Concept item "+" icon in order to expand it.
-
- Drag a Subject Node on to the Canvas.
For ex.
drag the "Person" node.
-
- Select the node with value "?" and in the "Node" window change the "Variable" field value to: ?s
-
- Select the "Add mode" icon from the QBE Navigation bar and drag an Object Node on to the Canvas.
-
- Enter in the "Node" window for Variable value: ?pname
-
- Select the "Connector" icon from the QBE Navigation bar and connect the node ?s with node ?pname.
-
- Click on the foaf schema Properties item "+" icon in order to expand it.
-
- Drag an "Attribute" (A) or "Relationship" (R) property on to the connector between the nodes ?s and ?pname.
For ex.
drag the attribute "name".
-
- Click the "Run Query" button.
- As result will be shown the found results from the executing of our query.
-
- To view the generated query, click the "Generate" button.
-