Properly call query.get_limit() in query_sparql.