a-coruble
a-coruble

Reputation: 411

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 :

I have tried many things, but nothing working.

Thank you in advance for your answers

Upvotes: 1

Views: 276

Answers (1)

cygri
cygri

Reputation: 9472

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.)

Upvotes: 1

Related Questions