You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/02/16 11:00:48 UTC

svn commit: r1660063 - /jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext

Author: andy
Date: Mon Feb 16 10:00:48 2015
New Revision: 1660063

URL: http://svn.apache.org/r1660063
Log:
Fix examples

Modified:
    jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext

Modified: jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext?rev=1660063&r1=1660062&r2=1660063&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext (original)
+++ jena/site/trunk/content/documentation/extras/querybuilder/index.mdtext Mon Feb 16 10:00:48 2015
@@ -5,12 +5,12 @@ Query Builder for Jena.  Implementations
 developers to create queries without resorting to StringBuilders or similar solutions.
 
 Each of the builders has a series of methods to define the query.  Each method returns the 
-builder for easy chaing.  The  example:
+builder for easy chaining.  The  example:
 
 
     SelectBuilder sb = new SelectBuilder()
         .addVar( "*" )
-        .addWhere( "?s", "?o", "?p" );
+        .addWhere( "?s", "?p", "?o" );
     
     Query q = sb.build() ;
 
@@ -51,16 +51,13 @@ The query builders have the ability to r
 
     SelectBuilder sb = new SelectBuilder()
         .addVar( "*" )
-        .addWhere( "?s", "?o", "?p" );
+        .addWhere( "?s", "?p", "?o" );
     
-    sb.setVar( Var.alloc( "?p" ), NodeFactory.createURI( "http://xmlns.com/foaf/0.1/Person" ) ) ;
+    sb.setVar( Var.alloc( "?o" ), NodeFactory.createURI( "http://xmlns.com/foaf/0.1/Person" ) ) ;
     Query q = sb.build();
 
-produces 
+produces
 
     SELECT * 
     WHERE 
       { ?s ?p <http://xmlns.com/foaf/0.1/Person> }
-
-
-