-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination for temporal instances does not allow retrieving more than 100 instances with the same timestamp #178
Comments
Hi, |
Hi Stefan, thank you for your reply. The "limit" query parameter that you are mentioning allows to limit the number of entities returned by Mintaka, thererfore it does not help in this situation. What we need to increase is the number of returned temporal instances of a particular property of a particular entity. Actually we have already forked Mintaka in order to increase this limit, but it is not a viable solution, as we will need to increase it again and again depending on the use-cases. It would be better to provide a mean of pagination. Best Regards, |
Hi, |
Hi wistefan, don't you think that any data that can be stored with Orion-LD should be readable through Mintaka ? |
Hi, |
Hi wistefan, Let's take my previous example.
As a result of the first query, Mintaka should return the first 200 temporal instances (with modifiedAt=2024-01-25T14:46:47.158Z) because they have the same temporal value, instead of limiting to 100.
This allows querying the next "page" of results without missing any value with the following query: (Note: for the time being, in order to deal with this issue, we have forked both Orion-LD and Mintaka to allow timestamp precision up to micro-second, and use the postgres "clock_timestamp()" function to define the value of the "modifiedAt" attribute at modification time. This conveniently fixes the issue in our case) |
Tested with Mintaka 0.5.40 and 0.6.0
1/ Post 200 instances of a temporal entity at once.
The modifiedAt value is defined by Orion-LD. Let's say that we have modifiedAt=2024-01-25T14:46:47.158Z for all 200 instances.
2/ Use a temporal query to retrive the instances :
/temporal/entities?id=urn:MyEntity&timeproperty=modifiedAt&timerel=after&timeAt=2024-01-25T14:46:47.157Z
Result: 100 instances are returned, with the following header:
content-range: date-time 2024-01-25T14:46:47.157-2024-01-25T14:46:47.158/*
Issue: there is no way to retrieve the next 100 instances.
The text was updated successfully, but these errors were encountered: