%META:TOPICPARENT{name="InteractiveSparqlQueryBuilderTutorials"}% ---++iSPARQL Querying Tutorial with SPARQL Query type "INSERT" This tutorial shows how to execute a SPARQL query with type "INSERT". %TOC% ---+++Enter and execute a query 1 Go to http://cname/isparql, for ex: http://id.myopenlink.net/isparql 1 The iSPARQL initialization window will be shown: %BR%%BR% %BR%%BR% 1 On successful initialization will be presented the iSPARQL Advanced tab open with a default SPARQL query: SELECT * WHERE {?s ?p ?o} %BR%%BR% %BR%%BR% 1 Go to QBE tab: %BR%%BR% %BR%%BR% 1 Click the Clear Pane icon on the toolbar to empty the Canvas. %BR%%BR% %BR%%BR% %BR%%BR%%BR%%BR% 1 Change the Data Source URI field value on the QBE tab for ex. to http://mytest.com. This will be the Graph URL we are going to use in our tutorial. %BR%%BR%%BR%%BR% 1 On the QBE tab, change the Type (shown below the Canvas) to INSERT. %BR%%BR%%BR%%BR% 1 Click the Generate icon on the QBE toolbar. 1 The Advanced tab will open, with the produced SPARQL Query shown in the text-area. %BR%%BR%%BR%%BR% 1 We are going to modify the query by adding the values to be inserted in the local Named Graph, http://mytest.com. Add (cut-and-paste) the following to the query: . . %BR%%BR%%BR%%BR% 1 Click the Run Query icon on the Advanced toolbar. 1 In the Result sub-tab, you should see a message confirming successful insertion of 3 triples: %BR%%BR%%BR%%BR% 1 Now you may want to view the produced Graph Model. Click the Load Query into QBE icon. 1 The QBE Working Canvas will now display the produced Graph: %BR%%BR%%BR%%BR% 1 To check what triples there are in the http://mytest.com Named Graph, go to the strong>Advanced tab. 1 Enter the following query into the SPARQL Query text-area: SELECT ?s ?p ?o FROM WHERE { GRAPH { ?s ?p ?o } } %BR%%BR%%BR%%BR% 1 Click the Run Query icon on the Advanced toolbar. 1 You should see that the 3 triples we inserted above are now found in the http://mytest.com Named Graph. %BR%%BR%%BR%%BR% ---+++Related * [[InteractiveSparqlQueryBuilderTutorials][iSPARQL Tutorials]] * [[InteractiveSparqlQueryBuilderBasicTutorial1][Basic iSPARQL Tutorial with query built from a blank canvas and pre-typed Nodes]] * [[InteractiveSparqlQueryBuilderBasicTutorial2][Basic iSPARQL Tutorial with query built from a blank canvas and Nodes dragged from the Toolbar]] * [[InteractiveSparqlQueryBuilderBasicTutorial][Basic iSPARQL Tutorial]] * [[InteractiveSparqlQueryBuilderQueryTutorialConstruct][iSPARQL Querying Tutorial with SPARQL Query type "CONSTRUCT"]] * [[InteractiveSparqlQueryBuilderQueryTutorialDescribe][iSPARQL Querying Tutorial with SPARQL Query type "DESCRIBE"]] * [[InteractiveSparqlQueryBuilderQueryTutorialDescribeGoogleMapView][iSPARQL Querying Tutorial "DESCRIBE" with Google Maps View Results]] * [[InteractiveSparqlQueryBuilderQueryTutorialDelete][iSPARQL Querying Tutorial with SPARQL Query type "DELETE"]] * [[InteractiveSparqlQueryBuilderQueryTutorialSlc][iSPARQL Querying Tutorial with SPARQL Query type "SELECT"]] * [[OATWikiWebIndex][OpenLink AJAX Toolkit (OAT)]] * [[http://docs.openlinksw.com/virtuoso/rdfsparul.html#rdfsparulexamples][Virtuoso Documentation SPARQL Query examples]] CategorySPARQL CategoryRDF CategoryOpenSource CategoryOAT CategoryDocumentation CategoryTutorial