mff-uk / odcs

ODCleanStore
1 stars 11 forks source link

Research namespace length limits #1248

Closed ghost closed 10 years ago

ghost commented 10 years ago

At first sight, I think that namespace prefix name (the abbreviation itself) has no max length limit in W3C specification (see http://www.w3.org/TR/xml-names/#NT-NCName). We have the limit set to 25 characters and it is questionable, if this is enough for regular use, especially when the namespace name can be the URI itself.

ghost commented 10 years ago

TODO: also find out if a namespace can be of different scheme than http://. According to www.w3.org/TR/xml-names/ namespaces are URIs. So it could happen that it is not always a http:// scheme. If so however, get rid of PrefixCreate:142 starts with http:// validation.

ghost commented 10 years ago

And is 255 length of URI enough?

tomas-knap commented 10 years ago

For the namespace prefixes, 25 should be in general enough, but we can increase the limit to 255, which is for sure enough.

In Linked data environment, every ontology term must be available on the Web, must be dereferencable. So there is no big sense to introduce a different namespace prefix than http://

Regarding length of URI - 2048 would be better.

ghost commented 10 years ago

I will fix this issue according to your guidance.

ghost commented 10 years ago

Resolved here: https://github.com/UnifiedViews/Core/commit/92e2407f403f5e74f1a03c4a48f1d9cd23041617