Open sergejsrk opened 1 year ago
I added this as a feature on the current refactor branch which will replace the main branch soon. Once that is done, I will update the dbpedia lookup with this.
Usage will be &maxResults=0
which will then return no documents but a count of the results instead.
Hello!
Let us say that I want to find all Cities. To do it I run the following query:
https://lookup.dbpedia.org/api/search?typeNameRequired=true&query=City
This query returns only 100 results. Then I can add max results parameter with some approximate value to the original query and run the query again:
https://lookup.dbpedia.org/api/search?typeNameRequired=true&query=City&maxResults=200
I can see that num of returned results is equal to maxResults value. Then I can run one more query with the value of maxResults increased.
So this way I certainly can find the num of results in the response.
But I was wondering if maybe there is another way to do it? Maybe something similar to getting count and then iterating with limit and offset ...
Thanks in advance!