SPARQL/DBpedia: how to disambiguate a certain variable from other homonyms on dbpedia

115 Views Asked by At

I'm new to SPARQL and DBpedia.

I am writing to you because I have a basic logic problem that is creating many problems for me.

The main problem I have is the following:

  • given the name of an artist, I have to get (via a SPARQL query) the list of albums of the given artist.

Here I am presented with a fundamental problem. Suppose the artist in question is "Drake". On wikipedia, under the heading Drake, there are several figures that have nothing to do with the artist.

the question is

  • given a query like this:

    SELECT *
    WHERE
      {
        ?artist  rdfs:label  "Drake"@en 
      }   
    

How can I specify that the Drake I'm looking for is the artist and not his namesake?

However, I would like this to be possible regardless of the name, because in the specific case of Drake I could specify Drake_(musician). But how can I set the problem to carry out this check regardless of the name given in input?

I ask this because ultimately, as explained at the beginning, given an artist as a parameter, I have to be able to get the list of albums produced by him.

I thank in advance whoever will be able to provide me with a useful answer.

Greetings to the Stack Overflow community.

0

There are 0 best solutions below