%META:TOPICPARENT{name="InteractiveSparqlQueryBuilderTutorials"}% ---+ Basic Tutorial for iSPARQL, the Interactive SPARQL Query Builder (part 2) %TOC% ---++ Building a query on a blank canvas, starting with pre-defined schema 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 will drag-and-drop from the schema window). 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 Finally 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 to the Graph of the database against which you want to execute your query, for ex: http://id.myopenlink.net/dataspace %BR%%BR%%BR%%BR% 1 Go to the Schemas Pane. 1 Import the Schema that contains the Terms to be used in your Graph Pattern. For this example, import the FOAF schema - http://xmlns.com/foaf/0.1/ %BR%%BR% %BR%%BR% %BR%%BR% %BR%%BR% 1 Click on the imported schema Classes item + icon to expand it. %BR%%BR% %BR%%BR% 1 Drag a Subject Node, e.g. Person, onto the Canvas. %BR%%BR% %BR%%BR% 1 Select the node with value ? and in the Node pane, change the Variable field value to: ?s %BR%%BR%%BR%%BR% 1 Select the Add nodes icon from the QBE Navigation bar, and drag an Object Node on to the Canvas. %BR%%BR%%BR%%BR% 1 In the Node pane, enter the Variable value: ?pname %BR%%BR%%BR%%BR% 1 Select the Connector icon from the QBE Navigation bar and connect the node ?s with node ?pname. %BR%%BR%%BR%%BR% 1 Click on the FOAF schema Properties item + icon to expand it. %BR%%BR%%BR%%BR% 1 Drag an Attribute (A) or Relationship (R) property onto the connector between the nodes ?s and ?pname. For example, drag the attribute name. %BR%%BR%%BR%%BR% 1 Click the Run Query button. 1 You should see the results found by the query execution shown in the Results tab. %BR%%BR%%BR%%BR% 1 To view the generated query: 1. Go to QBE tab and click the Generate button or 1. Go directly to the Advanced tab: 1 As result the generated query will be shown in the Advanced tab canvas. %BR%%BR%%BR%%BR% ---++Related * [[InteractiveSparqlQueryBuilderTutorials][iSPARQL Tutorials]] * [[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]] * [[InteractiveSparqlQueryBuilderQueryTutorialInsert][iSPARQL Querying Tutorial with SPARQL Query type "INSERT"]] * [[InteractiveSparqlQueryBuilderQueryTutorialDelete][iSPARQL Querying Tutorial with SPARQL Query type "DELETE"]] * [[InteractiveSparqlQueryBuilderQueryTutorialSlc][iSPARQL Querying Tutorial with SPARQL Query type "SELECT"]] * [[OATWikiWebIndex][OpenLink AJAX Toolkit (OAT)]] CategorySPARQL CategoryRDF CategoryOpenSource CategoryOAT CategoryDocumentation CategoryWebSite CategoryTutorial