iSPARQL Querying Tutorial with SPARQL Query type "INSERT"
In this tutorial we will show how to execute a SPARQL query with type "INSERT".
Enter a query and execute
- 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://mytest.com as this is the Graph URL we are going to use in our tutorial.
-
- From QBE tab, change the Type to INSERT, shown bellow the Canvas.
- Change also the value from the drop-down list "Get Remote Data when Missing Locally" to "Get Local Data Only".
-
- Click the "Generate" icon form the QBE toolbar.
- As result will be opened the Advanced tab with the produced SPARQL Query shown in the text-area.
-
- We are going to modify the query by adding the values which we want to be inserted in the local Graph http://mytest.com.
Add to the query the following items:
<s1> <p1> <o1> . <s2> <p2> <o2> . <s3> <p3> <o3>
-
- Click the "Run Query" icon from the Advanced toolbar.
- As result in the Result sub-tab will be shown message for the successfully inserted 3 triples:
-
- Now you may want to view the produced Graph Model. Click the "Load Query to QBE" icon.
- As result in the QBE working canvas will be shown the produced Graph:
-
- Now let's check what triples contains the Graph with URL http://mytest.com. Go to the Advanced tab.
- Enter in the "SPARQL Query" text-are the following statement:
select ?s ?p ?o from <http://mytest.com> where { graph <http://mytest.com> { ?s ?p ?o } }
-
- Click the "Run Query" icon from the Advanced toolbar.
- As result will be shown 3 triples found in the Graph with URL http://mytest.com:
-
References