-
Notifications
You must be signed in to change notification settings - Fork 27
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
href
: absolute URI required?
#430
Comments
The intent was that it be either an absolute or relative reference. In order to match what Features and Common do, I'll remove the format directive. |
That would allow everything though, wouldn't uri-reference be better (also in Features and Common)? |
I think we would also want to allow UUIDs as well. No? |
UUIDs are not valid URIs according to the RFC, I think? |
True but I was thinking about systems that have built-in UUID resolvers ... so that UUID can act as a reference mechanism. Although I support you can use a relative URI for that (e.g. "/uuid:c2423d34-a96b-4200-ac6e-d72410984d48"). I'm OK making it iri-reference but I don't remember why we didn't do that in Features in the first place. Maybe that format wasn't available when Clemens first create features Part 1. I'll have to poke around a bit ... but I will fix this (one way or another) in Records since the intent is to support relative references as well. |
The We could have added Note that in some cases we explicitly require a URI, not a reference. For example, in the conformance declaration or for a CRS identifier. Edited to add: If you want to include a UUID in |
@m-mohr - That is a good question. Conceptually a link target is an IRI. However, since most IRIs in links will use HTTP as the protocol and the HTTP protocol requires a URI, not an IRI, the IRI will have to be converted to a URI anyhow before resolving the link. In that sense, one can argue that it is safer to require that a Related to this, RFC 8288 states:
|
Makes sense to me, I feel like STAC should also switch to uri-reference... |
Hi. Good discussion. Whatever you decide on we will use in CDB 2.1 work for referencing resources such as a 3D model. Would like to stay compatible with API - records etc. Thanks |
FYI @m-mohr @cportele @cnreediii |
The
href
property requires absolute links through the schema in https://github.com/opengeospatial/ogcapi-records/blob/master/core/openapi/schemas/link.yaml due to the format that is set touri
.OGC API - Features doesn't have this requirement: https://github.com/opengeospatial/ogcapi-features/blob/master/core/openapi/schemas/link.yaml
Is this intentional? In STAC we allow relative references and it makes a lot of sense especially in non-API contexts. I think changing the format to
uri-reference
(or eveniri-reference
as in STAC) would make sense.The text was updated successfully, but these errors were encountered: