title: Using Jena to create a SPARQL query on DBpedia
body: <p>Im trying to create a SPARQL query using Jena to query DBpedia. </p>
  
  <p>The query is working when I use it with standalone tools (Twinkle) but when I plug it in this Java code it returns an empty set.</p>
  
  <pre><code>String sparqlQueryString1 = "PREFIX dbont: &lt;http://dbpedia.org/ontology/&gt; " +
          "PREFIX dbp: &lt;http://dbpedia.org/property/&gt;" +
          "PREFIX geo: &lt;http://www.w3.org/2003/01/geo/wgs84_pos#&gt;" +
          "   SELECT ?musician  ?place" +
          "   FROM&lt;http://dbpedia.org/resource/Daphne_Oram&gt;" +
          "   WHERE { " +
          "       ?musician dbont:birthPlace ?place ." +
          "   }";
  
  Query query = QueryFactory.create(sparqlQueryString1);
  QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query);
  
  ResultSet results = qexec.execSelect();
  ResultSetFormatter.out(System.out, results, query);       
  
  qexec.close() ;
  </code></pre>
  
  <p>Any ideas what I'm doing wrong? </p>