On 2 May 2012, at 07:28, Ziya Akar wrote:

>> Hi,
>>> 
>>> I am trying to retrieve all dbpedia triples to extract information
>>> about dataset by query below :
>>> 
>>> Select * where  {?s ?p ?o} LIMIT 1000 OFFSET x.
>>> 
>>> I increment 1000 value of x in each execution. After a while value of
>>> x variable exceeds decimal bounds.
> 
>> What is the error message exactly? (from which system?)
> 
> Error message is : com.hp.hpl.jena.query.QueryParseException:
> Encountered " <DECIMAL>. It means that Long is not enough for retrieve
> all DBpedia results.

Long should be plenty. Maximum value is 9223372036854775807, so even stepping 
through 1000 at a time it will take about 9223372036854775 requests to hit 
that. Assuming (very generously) 1 millisecond per request that's 292,277 years.

How are you creating the query, and incrementing x? The parser is seeing a 
decimal, which could simply be an error creating the query.

Damian

Reply via email to