Getting date in sparql from dbpedia

I want to extract the release date of some specific films. I use a sparql query: Even one query does not give me an answer. Is there something wrong because the date is returned in some format? Could you tell me that some thing is going wrong.

SELECT ?star WHERE { <http://dbpedia.org/page/Chances_Are_%28film%29> dbpedia-owl:releaseDate ?star } SELECT ?star WHERE { <http://dbpedia.org/page/Cages> dbpprop:releaseDate ?star } SELECT ?star WHERE { <http://dbpedia.org/page/Los_que_no_deben_nacer> dbpprop:released ?star } 
+4
source share
1 answer

The URI that you use for the Movie resource is incorrect - you must replace the "page" with the "resource": http://dbpedia.org/resource/Chances_Are_%28film%29

You can see that the query gets the desired results here .

Note that the actual resource URI is the one that has the โ€œresourceโ€. The one that has the page is the one you are redirected to when you allow the original in the browser. Therefore, in future SPARQL queries, use โ€œresourceโ€ instead of โ€œpageโ€.

+3
source

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


All Articles