Replies: 3 comments 23 replies
-
@johnmhoran @jkowalleck Judging by your 👍, I take it that that is the correct encoding. Does that then mean that most of the purls in the test data are incorrect:
^ all of these are |
Beta Was this translation helpful? Give feedback.
-
@pombredanne @mprpic @jkowalleck @ppkarwasz @matt-phylum Please see my proposed updated to the "Character encoding" section and related provisions. #461 |
Beta Was this translation helpful? Give feedback.
-
Re @matt-phylum 's suggestion (above) that we change the RFC 3986 section 2 reference to just section 2.1, such a focus solely on the percent-encoding process itself could reduce ambiguity and make implementation more straightforward. After all, while the PURL spec is related to RFC 3986, it differs in significant respects from 3986, including in its percent-encoding rules (e.g., what and when). That seems like an important distinction that's worth emphasizing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@pombredanne @johnmhoran @jkowalleck I finally caught up with all of the discussions in #398 and wanted to just double-confirm that my understanding is right. If I'm reading the rules for a qualifier value:
and then combine it with the guidance in the "Character encoding section":
and the final modifier:
Taking all this together, if I have a qualifier that has a key of
repository_url
and value ofhttps://example.repo.io/commons
, the key remains as is, and the value should be percent-encoded (except for the colon character) to:where a
/
(slash) character is represented by%2F
and the colon is left unencoded. The final purl would then be:Is that a correct interpretation of the spec?
Beta Was this translation helpful? Give feedback.
All reactions