开发者

How to assign a urn(uniform resource name) to a url

开发者 https://www.devze.com 2023-04-04 20:59 出处:网络
How to assign a URI/URN to a corresponding URL. What are the steps to do it. Say i have a URL https://staging.test.com how to assign a URN to it to ma开发者_StackOverflow社区ke it something like

How to assign a URI/URN to a corresponding URL. What are the steps to do it. Say i have a URL https://staging.test.com how to assign a URN to it to ma开发者_StackOverflow社区ke it something like urn:testing:test:stage

Thank you.


How to assign a URI/URN to a corresponding URL.

Just to clarify: an URL is an URI already. See: What is the difference between a URI, a URL and a URN?


Say i have a URL https://staging.test.com how to assign a URN to it to make it something like urn:testing:test:stage

You can find a list of registered URN namespaces at http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xml. If your ressource isn't "part" of any of these entities, you must not use their namespace. Example: If your ressoure isn't a book with an ISBN number, you must not use the isbn namespace. You would have to formally register your own URN namespace.

However: You could use any namespace starting with X-.

See RFC 3406: 3.1: Experimental Namespaces:

These are not explicitly registered with IANA. They take the form:

X-<NID>

No provision is made for avoiding collision of experimental NIDs; they are intended for use within internal or limited experimental contexts.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号