[uf-new] Namespace anti-pattern and hAudio TITLE (was: hAudio FN or Title)

Manu Sporny msporny at digitalbazaar.com
Mon Feb 4 12:17:56 PST 2008


Brian Suda wrote:
> 2008/2/4, Manu Sporny <msporny at digitalbazaar.com>:
>> Here are more examples of Microformats using "emulated namespace"s:
>>
>> country-name      (hCard)
>> organization-name (hCard)
>> organization-unit (hCard)
> 
> --- i do not consider these namespaces. 

Then, I assert that your definition of what is and isn't a namespace is
out of step with the common definition of a namespace[1] and it is
causing confusion to those that are familiar with the common definition
of a namespace[2][3][4][5].

> In the vCard RFC the value is
> called "Country Name", "Organization Name" and "Organization Unit"
> with spaces. Since we could not use spaces in a class attribute we had
> two choices, CamelCase or hypens. We chose Hypes. There was no attempt
> to do any sorts of "emulated namespace", more simply just
> concatenating space-separated-terms so they could be used in the class
> attribute.

Even if there was no attempt to do any sort of "emulated namespace", and
even if you were attempting to just concatenate space-separated-terms so
they could be used in the class attribute, the end result is an
"emulated namespace".

Let me try and put it another way. If we have this (EX1):

organization-name
organization-unit

We have a root, a separator, and a suffix. The root is 'organization',
the separator is '-' and the suffixes are 'name' and 'unit'.

If we have this (EX2):

organization/name
organization/unit

We have a root, a separator and a suffix. The root is 'organization',
the separator is '/' and the suffixes are 'name' and unit'.

If we have this (EX3):

http://organization.org/name
http://organization.org/unit

We have a root, a separator and a suffix. The root is
"http://organization.org", the separator is '/', and the suffixes are
'name' and 'unit'.

So why are we saying that EX1 doesn't have a namespace and EX3
definitely has a namespace (for those that are new to RDF - EX3 is how
RDFa declares namespaces)[6].

Regardless of what those that put hCard together meant to do, a side
effect of choosing to use '-' to separate elements and using the same
root creates an "emulated namespace". This same argument applies to hAtom.

To create an "emulated namespace" and then to claim that it isn't one
creates an inconsistency in the Microformat community's stance against
namespaces.

-- manu

[1]http://en.wikipedia.org/wiki/Namespace
[2]Programming and Problem Solving with C++, By Nell B. Dale, Chip
Weems, p.369
[3]History of Programming Languages II, By Thomas J. Bergin
, Richard G. Gibson, p.265
[4]Computer-Aided Verification '90: Proceedings of a DIMACS Workshop,
June 18-21, 1990. p.571
[5]Handbook of Object Technology By Saba Zamir, p.15
[6]http://www.youtube.com/watch?v=ldl0m-5zLz4


More information about the microformats-new mailing list