title: Getting JSON/Dictionary of all properties in DBPedia for a page/resource from Wikipedia Infobox
body: <p>I'm trying to get a representation of the infobox of articles on Wikipedia in a Python project.  I had tried using the Wikipedia API, but the data it outputs is dirty, so I'm trying to move to DBpedia.  I need to be able to query by page name, and receive a dictionary of the property names and their values for that page.
  For example, for the query for <a href="http://dbpedia.org/page/London" rel="nofollow">London</a>, the returned dictionary would contain:</p>
  
  <pre><code>{dbpedia-owl:PopulatedPlace/areaMetro : 8382.0,
   dbpedia-owl:PopulatedPlace/areaTotal : 1572.0
   .....
   dbpedia-owl:populationDensity : 5285.0
   .....
  }
  </code></pre>
  
  <p>etc., and from this I would be able to read all the keys that were in the Infobox.  I did try using the SPARQL query of </p>
  
  <pre><code>describe &lt;http://dbpedia.org/resource/London&gt;
  </code></pre>
  
  <p>but that returned tonnes of unnecessary data&thinsp;&emdash;&thinsp;the full set of triplets associated with London&thinsp;&emdash;&thinsp;which is many orders of magnitude more than I need.</p>
  
  <p>How can I write a query to just get the infobox properties, as above?</p>