W3C home > Mailing lists > Public > public-ws-resource-access@w3.org > July 2009

Issue 6917: preliminary proposal for Event Tags; tag values

From: Gilbert Pilz <gilbert.pilz@oracle.com>
Date: Fri, 31 Jul 2009 13:49:09 -0700
Message-ID: <4A7358C5.5060608@oracle.com>
To: "public-ws-resource-access@w3.org" <public-ws-resource-access@w3.org>
In our previous emails on this subject ([1], [2]) we have been using 
Event Tag values that are simple strings like "weather" and "wind". This 
has a number of obvious disadvantages, the primary of which is the 
potential for collisions (e.g. in situations where the Event Source is 
acting as an intermediate for other Event Sources that may not be aware 
of each other). Like Namespaces in XML, it makes sense to leverage DNS 
to support the creation of unique tags without requiring some kind of 
central tag registry. In other words, *Event Tags should be URIs*. The 
previous EventDescriptions example would then look like this:

    <xs:schema targetNamespace="http://www.example.org/oceanwatch">
      <xs:include schemaLocation="oceanwatch.xsd"/>
      <xs:element name="WindReport" type="ow:WindReportType"/>
      <xs:element name="RainReport" type="ow:RainReportType"/>

  <wse:eventType name="WindReport"
*    <wse:eventTag>http://www.example.org/tags/weather</wse:eventTag>
  <wse:eventType name="RainReport"
*    <wse:eventTag>**http://www.example.org/tags/weather**</wse:eventTag>
  . . .

The important point is that whomever controls the "www.example.org" 
domain is responsible for any http Event Tags defined in that domain. 
Like XML namespace declarations, you shouldn't create tags with domains 
that don't belong to you. Also, to the extent that tags identify a 
resource (the set of all Event Types that share that  tag), the use of 
URIs to identify these resources is consistent with W3C architecture [3].

Finally, the use of URI schemes with hierarchical paths (e.g. http, ftp, 
etc.) allows for the definition of "hierarchical tags". It's not clear 
to me that the benefits of defining such a thing outweighs the increase 
in complexity, but we /could /define Event Tags such that the tag 
"http://www.example.org/tags/weather" encompassed the tags 
"http://www.example.org/tags/weather/rain", and any 
"http://www.example.org/tags/weather/*" that might be used. The above is 
then more simply expressed as:

  <wse:eventType name="WindReport"
  <wse:eventType name="RainReport"
  . . .

Hierarchical tags have obvious uses in the realms of system management, 
etc. which is why this concept appears in many other places (e.g. 

[3] http://www.w3.org/TR/webarch/

- gp

Received on Friday, 31 July 2009 20:50:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:51 UTC