Closed Mec-iS closed 5 years ago
Other examples:
And something that may be of interest, but does not use hydra:search is the Tree Ontology: https://github.com/pietercolpaert/TreeOntology
Hey, @pietercolpaert thanks for these examples.
this has a property lc:departureTimeQuery: it means it’s going to redirect to a page in an ordered page collection that contains the timestamp given.
Can you explain why you've defined lc:departureTimeQuery
, can't we just use lc:departureTime
instead of this. Both have DateTime as the range.
The semantics of the property are also relevant with regards to how to interpret the search form. Maybe you are looking for something that does not contain this thing: how would you describe that then? I would just introduce something like lc:doesNotContainDepartureTimeQuery
. Thus, I think we should be able to have a more precise URI containing the exact semantics of what the expected outcome is of filling out this property.
We could try to even go further, and describe something like lc:departureTimeQuery or hydra:freetextQuery using SHACL, but I believe that would lead us too far into automation: just hard-coding clients to recognize particular search forms is already nice enough for now.
Thanks Pieter for joining the conversation. Just a link to this one that may be relevant for the subject: https://github.com/HTTP-APIs/hydrus/issues/302
Starting from the triples example in https://github.com/HydraCG/Specifications/issues/171
That has been ported in JSON-LD by @vddesai1998 as:
Produce a documentation section that explains:
z/x/y
) are mapped to a templates