RDFLib / pyLDAPI

A very small module to add Linked Data API functionality to a Python Flask installation
BSD 3-Clause "New" or "Revised" License
41 stars 11 forks source link

Use Hydra vocab for paging info #19

Open nicholascar opened 4 years ago

nicholascar commented 4 years ago

See https://www.hydra-cg.com/spec/latest/core/ & http://www.hydra-cg.com/.

Must decide on Linked Data Platform norms v. current setup v. Hydra for paging etc.

pietercolpaert commented 3 years ago

Another spec to consider: the collection design of TREE is designed to be compatible with both Hydra and LDP, and supports adding more semantics to what your pagination links mean (e.g., describe an ordering, or add more than just next, first, last, previous): https://w3id.org/tree/specification

nicholascar commented 3 years ago

Thanks @pietercolpaert! The paging semantics here have, so far been pretty bad so I think this is a good suggestion to move to the robust hydra. The HTTP paving Link headers are standard, so we can keep those.

I’ll try to fold in hydra soon: we are working on a major update to this API now which adds support for Python’s new FastAPI, not just Flask, so we can probably do all this in the same move.