title: How to get to a particular page in dbpedia using sparql query?
body: <p>I have a URI for a person, e.g., <code>http://dbpedia.org/resource/Ashok_Gehlot</code> (which, when retrieved via HTTP, redirects to <code>http://dbpedia.org/page/Ashok_Gehlot</code>). I want to extract information about this resource. How could I write a SPARQL query to retrieve, e.g., Ashok Gehlot's birthdate?  In the following query (my attempt so far) what would I need to replace <code>????</code> with?</p>
  
  <pre><code>PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
  PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
  PREFIX dbpedia: &lt;http://dbpedia.org/resource/&gt;PREFIX dcterms: &lt;http://purl.org/dc/terms/&gt;
  PREFIX dbpedia-owl: &lt;http://dbpedia.org/ontology/&gt;PREFIX category: &lt;http://dbpedia.org/resource/Category:&gt;
  PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;PREFIX dbpprop: &lt;http://dbpedia.org/property/&gt;
  PREFIX dbprop: &lt;http://dbpedia.org/property/&gt;PREFIX grs: &lt;http://www.georss.org/georss/&gt;
  PREFIX category: &lt;http://dbpedia.org/resource/Category:&gt;
  PREFIX dcterms: &lt;http://purl.org/dc/terms/&gt;
  PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;
  PREFIX freebase: &lt;http://rdf.freebase.com/ns/&gt;
  PREFIX db: &lt;http://dbpedia.org/&gt;
  PREFIX dbp: &lt;http://dbpedia.org/property/&gt;
  PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
  PREFIX http: &lt;http://www.w3.org/2006/http#&gt;
  SELECT ?x ?y WHERE {
    ?x ?????? http://dbpedia.org/resource/Ashok_Gehlot.
    ?x owl:birthdate ?z.
  }
  </code></pre>