Why 2 different dictionaries for the same attribute in DBpedia?

Why does DBpedia use multiple dictionaries for the same attributes?
I need to get data on all possible films. For each film, I noticed that it has the words dbpedia-owl and dbpprop for producers, directors, etc. I retrieve the attribute with the following query:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?star_name WHERE { <http://dbpedia.org/resource/Goal_III:_Taking_on_the_World> dbpedia-owl:starring ?star. ?star foaf:name ?star_name } 

I will have the page id of each movie, and then I will get stars and producers. For some, I think dbpedia-owl works for some dbpprop works.

I am puzzled by this. I need to write code in Python to run this query for each movie. So every time I need to check that the result is zero, then run the code for another dictionary.

+4
source share
1 answer

DBPedia data is extracted using a mapping-based language from the information fields that you see on the respective wikipedia pages. For different information fields, different comparisons are used, so two different types of resources can be displayed in completely different ways, which is completely logical if you think about it.

Now the problem you are talking about is that two resources of the same type having the same data are displayed differently. I suspect (although I cannot confirm, because you did not give examples of two films that display properties in different ways) that the problem here is the data on Wikipedia. Perhaps there is more than one way to express the information you are interested in in the information window and that the mapping for the information window differs in different ways in different ways. This is not ideal, but Wikipedia does not have great clean data, so you should not expect DBPedia to have clean data.

You can ask a question about the DBPedia mailing list on dbpedia-discussion@lists.sf.net about this, to try to find out why this is happening, as they will be better placed to help you.

+1
source

Source: https://habr.com/ru/post/1386941/


All Articles