Skip to content
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

Clarify URI vs URL as data type #78

Open
ValentinFutterer opened this issue Dec 16, 2024 · 2 comments
Open

Clarify URI vs URL as data type #78

ValentinFutterer opened this issue Dec 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ValentinFutterer
Copy link

E.g. in distribution, the access_url and download_url have the data type URI. But they have URL in their name and they are obviously supposed to be links that lead to a webpage/download. In my opinion, URI is the wrong data type here, since URIs could either be a URl or a URN. URNs are just a unique name, with no way to access the resource behind the name. As opposed to URLs, which do offer a way to access the resource described. So in short, every URL is a URI, but not all URIs are URLs.

This ambiguity also affects other parts of the schema. As a software developer, I would like clarification on this issue, to validate inputs correctly.

@MarekSuchanek
Copy link
Collaborator

@MarekSuchanek MarekSuchanek self-assigned this Feb 25, 2025
@MarekSuchanek MarekSuchanek moved this to Under Discussion / Design in Maintenance: v1.2.0 Feb 26, 2025
@MarekSuchanek MarekSuchanek added this to the v1.2.0 milestone Feb 26, 2025
@MarekSuchanek MarekSuchanek changed the title Clarification on URI Data Type Clarify URI vs URL as data type Feb 26, 2025
@MarekSuchanek MarekSuchanek added the enhancement New feature or request label Feb 26, 2025
@MarekSuchanek
Copy link
Collaborator

OK, so all URI appearances as Data Type in the specs shall be changed to URL (in the README).

Is there also any change needed in the JSON schemas? For instance: https://github.com/RDA-DMP-Common/RDA-DMP-Common-Standard/blob/master/examples/JSON/JSON-schema/1.1/maDMP-schema-1.1.json#L329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Under Discussion / Design
Development

No branches or pull requests

2 participants