coar-notify / notify.coar-repositories.org

Sources for the COAR Notify website
Creative Commons Attribution 4.0 International
2 stars 1 forks source link

Should we apply constraints to URI structures? #31

Open richard-jones opened 1 month ago

richard-jones commented 1 month ago

URIs have some structure, but there are constructions of URIs which are valid but probably not what we want people to do. For example, the following are all technically valid URIs:

I would suggest that we at the very least require Absolue URIs, i.e. those that have a scheme component, such as "http:" or "urn:"

Note also that beyond that specific URI forms can have further semantics, and they will be impossible to realistically validate, so there may also be some reason to require either urn:uuid or an HTTP URI and forbid anything else.

paulwalk commented 1 month ago

The requirement is for a URI (not a URL), so a string like any_string_with_no_spaces would not be valid.

https://www.ietf.org/rfc/rfc3986.txt

antleaf commented 6 hours ago

@richard-jones - does this answer the question?