Why dbpedia result is not consistant

淺唱寂寞╮ 提交于 2019-12-12 02:08:48

问题


I'm executing the below SPARQL query

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
SELECT ?resource WHERE  { 
?resource a <http://dbpedia.org/ontology/Place> . 
{?resource rdfs:label 'Paris'@en.} UNION { ?resource rdfs:label 'France'@en.} 
}

I'm executing this here. Sometimes I am getting required result and sometimes it returns 502 error ( I get the message that website is under maintenance.....) Can you please let me know why result is not consistent and how can I avoid this?

Also inconsistent behavior when I execute through java code :

       Query query = QueryFactory.create(sb.toString());
        QueryExecution qexec = 
          QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql",  query);   

回答1:


The experimental DBpedia SPARQL endpoint is made available as a public service, but as such it has no Quality-of-Service (QoS) guarantees.

You can set up your own DBpedia mirror in the Amazon AWS cloud, by spinning up the pre-populated and dynamically updated AMI. You can also set up a local mirror, by manually loading the DBpedia datasets into your own Virtuoso or other triple or quad store instance.

(ObDisclaimer: OpenLink Software produces Virtuoso and the DBpedia AMI, provides and maintains the public DBpdia endpoint, and employs me.)



来源:https://stackoverflow.com/questions/42118488/why-dbpedia-result-is-not-consistant

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