Live data from Hacker News

Ask HN: Why are URNs not more popular?

news.ycombinator.com

11–20 of 64 posts

Re: Ask HN: Why are URNs not more popular?

#13
Maybe I'm missing something, I just don't feel like globally recognized URNs have much value. I am using them in my software which supports external plugins, and this seems like a great use: I and plugin authors get to define the namespaces, which are useful in the context of my application and not beyond. Similarly, AWS makes extensive use of URNs, which are useful in the context of AWS but not beyond. This seems like a good system.

What utility does URN have in your application? Why do you need your URNs to be globally recognizable?

Re: Ask HN: Why are URNs not more popular?

#14

URN are the "missing link" in the semantic web. If you look at examples where somebody writes an RDF file they typically use identifiers like which are fine for cases where you want to publish the data on the web but not for the much more common case of "our own private data". It is straightforward in principle to use URNs, but it is not easy to find examples or discussion of best practices with URNs. For one thing y…

You can always use something like or :abc for terms of the document being described or just an extra graph that is just private and not shared like http://comp.com/abc>. Anyhow I don't think this is what is missing to make the semantic web work.

I remember the semantic web people telling me when asking about URN they said "we don't use those anymore", so that is that, and the story of the semantic web.

Re: Ask HN: Why are URNs not more popular?

#15
> However, the list of URN namespaces is very lacking

Because ontology is fucking garbage.

All ontology fails, it always has.

Why are we still discussing this?

> Why are URNs not more popular?

Wiki - "URNs are globally unique persistent identifiers assigned within defined namespaces so they will be available for a long period of time, even after the resource which they identify ceases to exist or becomes unavailable"

Why do I care about this for data? Why would I constrain myself? It's bureaucratic nonsense for people to have meetings on. I'm not a library putting angels on a pinhead, real world data is messy.

Re: Ask HN: Why are URNs not more popular?

#16
At least one of your items, telephone numbers have their own URI scheme [0] (in the original model, URNs were non-locators while URLs were locators; telephone numbers are arguably locators, but in any case URLs being replaced with URIs, which need not be locators, and URNs becoming a URI scheme mean that there is really very little good rule as to when a non-locator identifier should be a URN namespace vs. its own scheme.)

Also, the same rationale that led to the closure of the registry foe the somewhat similar info: scheme registry [1] likely contribute to limited registration for URN NIDs.

[0] tel: (RFC 3966) https://www.ietf.org/rfc/rfc3966.txt

[1] https://oclc-research.github.io/infoURI-Frozen/

Re: Ask HN: Why are URNs not more popular?

#17
Asking because I don't know, and I can't believe nobody anticipated it. (Blames "Semantic Web").

Is there not a version of URN that allows you to use a registered domain name or IP address as a scope or scheme?

Something in the spirit of:

   urn://mycompany.com/Whatever/I/Want

   urn:mycompany.com://192.168.0.1/Whatever/I/Want
Semantically, a "uniform" private resource identifier that's "uniformly" parsable while avoiding the unpleasantness of IANA registrations.

I've scraped with IANA protocol registrations before. It wasn't fun at all. I can't imagine doing it for schema or urn schema registration.

Re: Ask HN: Why are URNs not more popular?

#19
There is only a marginal benefit in using "urn:foo:..." over "foo:...", namely making it clear that it is only intended to represent a name and not a locator. That benefit is marginal because without knowing the spec for foo, you can't really do much with the knowledge that it is a URN. Without knowing the spec, you can't even compare URN values to check if they represent the same name (e.g. ISBN URNs may or may not contain hyphens, and there are equivalent ISBN-10 and ISBN-13 numbers).

Conversely, there are non-URN URI schemes that still represent only names (like doi), and there are URL schemes that, despite the "L", are also used for non-locator names (the http scheme in particular, e.g. in RDF and for XML namespaces). So it's all a wash.

In either case (URN or non-URN), you would have to register the URN namespace or the URI scheme, if you want to use it publicly. Often http is used instead, where the domain name serves the role of the namespace, because usually a suitable domain name is already registered. Of course, this latter practice has the drawback that one has to infer from context that it is a name and not an HTTP web resource.

Unfortunately, dots are not allowed in NIDs. Otherwise it would have been possible to introduce the free use of "urn::..." (for non-TLDs that otherwise don't conflict with the NID naming rules).

Re: Ask HN: Why are URNs not more popular?

#20

Asking because I don't know, and I can't believe nobody anticipated it. (Blames "Semantic Web"). Is there not a version of URN that allows you to use a registered domain name or IP address as a scope or scheme? Something in the spirit of: urn://mycompany.com/Whatever/I/Want urn:mycompany.com://192.168.0.1/Whatever/I/Want Semantically, a "uniform" private resource identifier that's "uniformly" parsable while avoiding…

Yes, there is, the FeDerated Content (FDC) urn type. https://www.rfc-editor.org/rfc/rfc4198.html

    urn:fdc:domain-i-controlled-at-time.com:202212:resource:fred
Post reply on HN