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 
> <[email protected]> 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 mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to