W3C home > Mailing lists > Public > public-prov-wg@w3.org > March 2013

Re: PROV-ISSUE-650: dictionary insertion, with or without id/attrs? [PROV-DICTIONARY]

From: Stephan Zednik <zednis@rpi.edu>
Date: Thu, 14 Mar 2013 09:44:46 -0600
Message-Id: <1A01EEEF-882A-415D-BA5D-717D22631A8E@rpi.edu>
To: Provenance Working Group <public-prov-wg@w3.org>
Do the derivation by insertion and removal support the same set of PROV-defined attributes?  

Assuming that they support prov:label and prov:type and not the other PROV-defined attributes, I would suggest we update the Insertion and Removal complexTypes in the following way.

The current insertion:

	<!-- Insertion -->
	<xs:complexType name="Insertion">
	  <xs:sequence>
		<xs:element name="newDictionary" type="prov:IDRef"/>
		<xs:element name="oldDictionary" type="prov:IDRef"/>
		<xs:element name="keyValuePair" type="prov:KeyValuePair" maxOccurs="unbounded"/>
	  </xs:sequence>
	</xs:complexType>

be changed to:

	<!-- Insertion -->
	<xs:complexType name="Insertion">
	  <xs:sequence>
		<xs:element name="newDictionary" type="prov:IDRef"/>
		<xs:element name="oldDictionary" type="prov:IDRef"/>
		<xs:element name="keyValuePair" type="prov:KeyValuePair" maxOccurs="unbounded"/>
                <!-- prov attributes -->
                <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
                <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
	  </xs:sequence>
          <xs:attribute ref="prov:id"/>
	</xs:complexType>

The current removal:

	<!-- Removal -->
	<xs:complexType name="Removal">
	  <xs:sequence>
		<xs:element name="newDictionary" type="prov:IDRef"/>
		<xs:element name="oldDictionary" type="prov:IDRef"/>
		<xs:element name="key" type="xs:anySimpleType" maxOccurs="unbounded" />
	  </xs:sequence>
	</xs:complexType>

be changed to:

	<!-- Removal -->
	<xs:complexType name="Removal">
	  <xs:sequence>
		<xs:element name="newDictionary" type="prov:IDRef"/>
		<xs:element name="oldDictionary" type="prov:IDRef"/>
		<xs:element name="key" type="xs:anySimpleType" maxOccurs="unbounded" />
                <!-- prov attributes -->
                <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
                <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
	  </xs:sequence>
          <xs:attribute ref="prov:id"/>
	</xs:complexType>

--Stephan

On Mar 13, 2013, at 9:18 AM, "Provenance Working Group Issue Tracker" <sysbot+tracker@w3.org> wrote:

> PROV-ISSUE-650: dictionary insertion, with or without id/attrs?  [PROV-DICTIONARY]
> 
> http://www.w3.org/2011/prov/track/issues/650
> 
> Raised by: Luc Moreau
> On product: PROV-DICTIONARY
> 
> Hi,
> 
> It seems that the prov-n notation for dictionary insertion allows for id and attributes, but the xml schema does not. Ontology contains a qualified Insertion. 
> 
> So is this  a mistake of the schema?
> 
> Thanks,
> Luc
> 
> 
> 
> 
Received on Thursday, 14 March 2013 15:45:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:51:32 UTC