W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2013

Re: Why are classes and URIs case sensitivity?

From: Karen Coyle <kcoyle@kcoyle.net>
Date: Wed, 04 Dec 2013 08:57:48 -0800
Message-ID: <529F5F0C.1030602@kcoyle.net>
To: public-vocabs@w3.org
A question that I have had about this is whether there is any "policy" 
(to the extent that schema.org has such things) about having a class and 
a property with the same term, the only difference being the case of the 
first letter. It strikes me that such a situation could be error 
prone.... but I don't know if examples already exist in schema.

kc

On 12/4/13 8:43 AM, Martin Hepp wrote:
> The short answer is that
> - URIs are by definition case sensitive and
> - CamelCase is considered an ergonomic technique for marking words in strings, in particular identifiers. Other choices like dots (.), dashes/minus (-) or underscore (_) are, in the eyes of many, less legible and/or less efficient to type.
>
> Without getting in the full story, URIs used as identifiers are always identical only if they are the same character-by-character, while a server can support various techniques for dealing with slight variations in, e.g. missing trailing slashes or differences in capitalization when fulfilling a request to return a representation for a URI ("dereferencing").
>
> Of course, the schema.org server could be more tolerant to spelling mistakes and redirect requests to the proper capitalization, but that is a different story.
> Martin
>
> On Dec 4, 2013, at 5:20 PM, Jarno van Driel wrote:
>
>> After a discussion with +Aaron Bradley I had a question I thought was worth posting here...
>>
>> Why is uppercasing the first letter of each (subsequent) word being used for classes and URIs?
>>
>> Now this question has an SEO origin, since it's considered bad practice to have URLs return different content depending on upper- and/or lowercasing (part of) the URL. I was wondering why classes and URIs deviate from this.
>>
>> Now I bet there are good reasons for this but I can't find a clear description about the 'why' and hoped one of you could clarify this for me.
>>
>> Thanks in advance,
>> Jarno van Driel
>
> --------------------------------------------------------
> martin hepp
> e-business & web science research group
> universitaet der bundeswehr muenchen
>
> e-mail:  hepp@ebusiness-unibw.org
> phone:   +49-(0)89-6004-4217
> fax:     +49-(0)89-6004-4620
> www:     http://www.unibw.de/ebusiness/ (group)
>           http://www.heppnetz.de/ (personal)
> skype:   mfhepp
> twitter: mfhepp
>
> Check out GoodRelations for E-Commerce on the Web of Linked Data!
> =================================================================
> * Project Main Page: http://purl.org/goodrelations/
>
>
>
>
>

-- 
Karen Coyle
kcoyle@kcoyle.net http://kcoyle.net
m: 1-510-435-8234
skype: kcoylenet
Received on Wednesday, 4 December 2013 16:58:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:36 UTC