Search code examples
sparqldbpedia

DBpedia: Query some information about a specific person with SPARQL


I've been struggling to create a SPARQL query about one person.

Let's say for example, I want to have these informations for Aristotle :

  • Birth Date
  • Death Date
  • Description (in English)

I have tried many things, but nothing working.

Thank you in advance for your answers


Solution

  • SELECT * {
        <http://dbpedia.org/resource/Aristotle>
            dbo:birthYear ?birth;
            dbo:deathYear ?death;
            dbo:abstract ?comment.
        FILTER (lang(?comment)='en')
    }
    LIMIT 10
    

    I went to http://dbpedia.org/page/Aristotle and looked for the properties you requested. From experience, properties in the dbo: namespace are usually cleaner than the other namespaces. The rest is SPARQL 101.

    (The birth and death dates are messy in this case. I don't think the dates are actually known, so the query returns just the year.)