W3C home > Mailing lists > Public > public-prov-wg@w3.org > September 2012

PROV-ISSUE-494: Make prov:ref a required attribute for Ref complexTypes

From: Provenance Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Fri, 07 Sep 2012 20:20:21 +0000
Message-Id: <E1TA52L-0002WC-Es@tibor.w3.org>
To: public-prov-wg@w3.org
PROV-ISSUE-494: Make prov:ref a required attribute for Ref complexTypes

http://www.w3.org/2011/prov/track/issues/494

Raised by: Curt Tilmes
On product: 

xs:attributes are optional by default.  The complex types for the reference attributes (ActivityRef, EntityRef, AgentRef, DependencyRef and AnyRef) define xs:attribute prov:ref, but make it optional.

This allows one, for example, to specify "<prov:entity />" with no actual entity prov:ref reference even if the semantics require an entity to be specified.

I think in every case when an element of one of our complexTypes is defined as one of those type prov:*Refs prov:ref should be a required attribute of those elements.

I propose to add 'use="required" to the attribute definitions for prov:ref for each of those *Ref complexTypes, making prov:ref a required attribute for each element with one of those types.
Received on Friday, 7 September 2012 20:20:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 September 2012 20:20:22 GMT