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

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 UTC