-
Notifications
You must be signed in to change notification settings - Fork 6
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
replacement of retPath by "links" #86
Comments
Instead of a component catentated together to create an unambiguous url, the "links" mechanism proposes a set of links with relations. Each link is expected to have a relation (link-relation) with message. Which link relation is used to designate a retrieval URL? Is it always the same? or will it vary in different situations? I think people are currently proposing "canonical" as the link relation to use. |
my current v04 prototype is missing the links field because I don't know what links should contain yet. |
The example from ET-AT specifies a "canonical" relation, but it isn't clear if that is an example, or a specification. the ET-AT design has caches... will the links supplied by caches also be canonical ? or perhaps: alternate, duplicate or ... can compliant clients simply take the first listed in link in links, or do they have to pay attention to "rel" and if so what are the rules for deciding among multiple links with different rel? |
( for reference: https://www.iana.org/assignments/link-relations/link-relations.xhtml ) |
I can't find any standard source for "links"... it's not part of JSON or GeoJSON... I guess it is from STAC? |
ok reading the above... "alternate" is for alternate forms (e.g. TAC vs. BUFR) so not good for binary copies. "duplicate" would appear more appropriate for cache links. |
We should allow for 1..n links, with at least a |
This depends on data policy [core/recommended], or other considerations (i.e. satellite data too heavy to be cached) to decide whether the data is cached, or not. If the data is cached, then |
See discussion in https://gist.github.com/tomkralidis/bcd7067b02e5321478ff219d3edf9cd5?permalink_comment_id=4145491#gistcomment-4145491 |
@tomkralidis That's not helpful... I'm asking for what standard is being referenced. Does this mean there is no standard being referenced, and links is an invention for this application? at which point I fail to understand the interop argument. For the other point about rel= ... when we start adding multiple links to a message, it becomes interesting. Is the original included as a duplicate?
Question: when c1 gets the message from c2, should it make a new message p0c1c2 with other nc and the other cache listed as duplicates, but then we have two messages with the same content, but p0c1c2, and p0c2c1 where they each have three links but different ones designated as canonical. so for each product, we end up circulating messages totalling the square of the number of caches (if the nc participates, then c+1) so in the case of three caches: 9 messages per product. That's what you want? |
followup... a way of reducing from n**2, would be to, using examples of other messages in the set:
For all practical purposes these messages are identical, consider them as such. They should be assigned different message id's according to current specification ET-AT. That's also what we want? |
As mentioned we are leveraging the OGC standards for links. OGC API - Features provides a link model which is based on OGC API - Common (http://docs.ogc.org/DRAFTS/19-072.html#link-conventions). |
That last link is very helpful. Thanks! |
For better understanding...
All subscribers should use the link with rel=canonical for automated download (standard case) How would you design messages for data in different download formats?
With 2 less messages are transmitted but therefore more logic in the client would be necessary... |
I am getting confused here. The list at [https://defs.opengis.net/vocprez/object?uri=http%3A//www.opengis.net/def/rel] shows some other options. To me, the most suitable seems "data" (aka "http://www.opengis.net/def/rel/ogc/1.0/data"). That would allow publishing notifications about data available in multiple formats at once like this:
Of course, we may decide to allow only one "data" link in our profile. But how do these OGC link "rel" types interoperate with the IANA registered types, that is with "canonical", "duplicate", "alternate" etc.? |
For a data object with multiple representations, we should publish a single message with multiple link objects. The OGC specific rel types are defined in various OGC specifications. This means they are extensions to the IANA link relations and allowable in the context of the given specification (example 1, example 2). This also means we (WMO) can define our own rel types as part of the message specification if required. |
There is a new format here: https://github.com/wmo-im/wis2-notification-message Should all discussion of message format transition there? |
Sorry, I did not notice that proposal. It would be nice to work in one repository, preferably in this one, that is https://github.com/wmo-im/GTStoWIS2/tree/main/message_format. I created a PR there earlier today. |
no worries... I´m asking ET-AT to clarify what they are expecting tt-protocols to do. Given all this replacement proposal, I´m probably going to pause the committee work for now. |
ET-AT taking over specification. Further discussion here: |
as part of #78, the retrievalPath field is also rejected in preference for a complete URL for use by APIs.
The STAC standard is referenced as a model, with their "links" field.
The text was updated successfully, but these errors were encountered: