Federation query on Dbpedia and Wikidata

江枫思渺然 提交于 2019-12-24 20:44:44

问题


I'm doing federation query exercise. I want the list of films that stars with leonardio di caprio and also the list of directors that worked with him.

I have to design federated SPARQL query over Wikidata and Dbpedia. I have to run the query through FEDx.

Here's the query. This is done in Eclipse. Also tested on the wikidata endpoint.

   PREFIX wd: <http://www.wikidata.org/entity/> 
            PREFIX wdt: <http://www.wikidata.org/prop/direct/>
            PREFIX dbo: <http://dbpedia.org/ontology/>  
            PREFIX dbr: <http://dbpedia.org/resource/>  
            PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
            PREFIX wikibase: <http://wikiba.se/ontology#>
            PREFIX bd: <http://www.bigdata.com/rdf#>

SELECT ?film  ?director   WHERE 
{
     ?film  wdt:P161 wd:Q38111.
    ?film  wdt:P57 ?director.
   ?film rdf:type dbo:Film .  
   ?film dbo:starring dbr:Leonardo_DiCaprio .
} LIMIT 10

When I ran the code, I get an error "Rate limit exceeds".

Can anyone explain what is the error and also I think there might be some problem with the query. Can anyone help me out?

来源:https://stackoverflow.com/questions/50603227/federation-query-on-dbpedia-and-wikidata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!