title: Get Place categories from DBpedia using SPARQL
body: <p>The following code queries DBpedia for places within a bounded geographic area and returns the name, lat, and long of the place. I'd also like the query to return the category of the place--e.g., park, restaurant, museum, etc.</p>
  
  <p>The following code works fine.</p>
  
  <pre><code>        sparql = SPARQLWrapper("http://dbpedia.org/sparql")
          sparql.setQuery("""
          PREFIX geo: &lt;http://www.w3.org/2003/01/geo/wgs84_pos#&gt;
          PREFIX dbo: &lt;http://dbpedia.org/ontology/&gt;
          PREFIX category: &lt;http://dbpedia.org/resource/Category:&gt;
          SELECT * WHERE {
          ?s a dbo:Place .
          ?s geo:lat ?lat .
          ?s geo:long ?long .
  </code></pre>
  
  <p>I tried to add the following code to get categories for places, but this doesn't work:</p>
  
  <pre><code>        ?s category:cat ?cat .
  </code></pre>
  
  <p>What should I add/change? Thanks.</p>