I’m working on wikidata for my MS thesis in Computer Engineering. i need to do some time expensive queries. Is it possible to set the spraql endpoint timeout in order to don’t obtain this kind of error? Thank you for your attention.
Federico
Hi!
I’m working on wikidata for my MS thesis in Computer Engineering. i need to do some time expensive queries. Is it possible to set the spraql endpoint timeout in order to don’t obtain this kind of error? Thank you for your attention.
It would be hard to make an exception for just one query, but maybe if you tell what query or queries those are, I or others could provide some advice on how to modify them or make them faster or achieve the same result with other means?
HI thank you for your super fast reply
The set of queries are like this.
PREFIX bd: http://www.bigdata.com/rdf# PREFIX wdt: http://www.wikidata.org/prop/direct/ PREFIX wd: http://www.wikidata.org/entity/ PREFIX wikibase: http://wikiba.se/ontology# SELECT ?itemLabel WHERE { ?id ?label "person"@en. ?item wdt:P31/wdt:P279* ?id. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }
It’s a path query where i try to get all instances of the sub trees. The problem comes when i work with large instanced classes. Ex. Person/River etc. I tried to use the offset but without results because after some queries the server give me the 500 error. The core of the tool is written in java with the Apache support. I also tried to work with an offline dump(RDF on Virtuoso) but i noticed that the result are quite different. Ex: the query on the endpoint give me much better result when i try to obtain all the instances of city(Q220 Rome doesn’t appear in the offline version but only in the online)
Il giorno 13 giu 2016, alle ore 18:42, Federico Scafoglieri scafed89@gmail.com ha scritto:
I’m working on wikidata for my MS thesis in Computer Engineering. i need to do some time expensive queries. Is it possible to set the spraql endpoint timeout in order to don’t obtain this kind of error? Thank you for your attention.
Federico
wikidata-tech@lists.wikimedia.org