Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Indicate a partial collection view is ordered #172
Opening a difficult discussion here, yet I hope given a limited scope, we could set a good standard here:
Currently there is no way to to indicate how a partial collection view is ordered. I therefore propose a way to add this as in the following example:
<collection1> a hydra:Collection ; hydra:manages [ rdf:predicate a ; rdf:object foaf:Person ] ; hydra:view [ hydra:orderedBy ( [ a hydra:OrderDescription ; rdf:predicate dbpedia-owl:birthDate ; hydra:orderOption hydra:ascending ; hydra:castTo xsd:Year ]) ; hydra:first <?page=2014>; hydra:last <?page=2020>; hydra:next <?page=2019> ] .
This allows to have:
Mind that the goal is not to specify the order of object within the JSON-LD documents. A client should always order the triples or object itself when the document has been retrieved. It only tells something about how the next page related to its previous page.
Related issue: #6 — However, I do not want to introduce a hypermedia control to order a partial collection view, I just want a way to indicate how a partial collection view is ordered.
Are there other proposals of how to do this? Are there proposals that can overcome this limitation?
It’s an unstable draft proposal for partially indicating the contents of a hydra:Collection. See https://github.com/HydraCG/Specifications/blob/master/drafts/collection-representation.md