问题
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