Comments (5)
from wcmp2.
Perhaps we can further qualify with:
- no spaces
- no accents
- no colons (given they are URN separators)
- none of the following: `~!@#$%^&*()=][{}|'";,.?/+
cc @josusky
from wcmp2.
This is too restrictive. The regular expression that you have provided is correct only for the "namespace identifier" NID part. But the NID is fixed in our case to wmo
. The rest of the URN is "Namespace Specific String" (NSS) and its validation is more benevolent. Original description is in https://www.rfc-editor.org/rfc/rfc2141.html (section 2.2) and is slightly modified (extended) by newer RFC (https://www.rfc-editor.org/rfc/rfc8141). Example of a valid URN is:
urn:example:a123,z456?+abc
from wcmp2.
I am not deadly against a rule that is more strict than actual URN specification. I looked up the specification because I spotted the innocent dot (.
) in Tom's list - that "lifted me off the chair" :-)
I can hardly imagine anyone putting ~
or ]
into metadata ID but a dot (.
) or slash (/
) seem quite OK to me.
from wcmp2.
Having a slash (/
) in the ID introduces URLs like the following in the GDC:
https://example.org/collections/foo/items/foo%2Fbar
While we can relax the regex set mentioned previously, the above would be error prone.
from wcmp2.
Related Issues (20)
- fix references to links.distribution.availableFormats
- code list for status property? HOT 1
- Scheme property used in two different ways for identifiers and themes
- revisit the use of "urn:x-wmo" in metadata identifier HOT 6
- Update WTH urls
- make specific role required for attribution HOT 1
- add CC0 to an examples
- update CC0 footnote HOT 2
- add recommendation for media type when serving WCMP2 HOT 1
- Examples consistency HOT 7
- consistency across snippets for concepts request
- Concepts should point to one unique and resolvable URI HOT 1
- tighten conformsTo in schema
- schemas.wmo.int - Links HOT 1
- update main and publication with changes as submitted to LSP
- Permission incorrectly identified as recommendation
- Align text in Requirements 7 and 8 of 1.10 Properties / Themes
- Prepare FT2024-2 proposal
- update examples based on latest WTH centre-id updates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wcmp2.