Added a Note about Subtyping to PROV-XML.
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Mon, 19 Nov 2012 14:46:07 -0500
changeset 4827 8480f99fd07f
parent 4826 69d2ba847f40
child 4828 76cd3e5bf396
Added a Note about Subtyping to PROV-XML.
xml/prov-xml.html
--- a/xml/prov-xml.html	Mon Nov 19 18:53:44 2012 +0000
+++ b/xml/prov-xml.html	Mon Nov 19 14:46:07 2012 -0500
@@ -323,6 +323,46 @@
 </p>
 </div>
 
+<div class="note">
+<p>REVIEW QUESTION:</p>
+
+<p>The current design has mirrored the naming from PROV-N.  This often
+involves reliance on the "prov:type" attribute to distinguish some
+relations.  In order to simplify the overall expression of those
+concepts in XML, we are considering adding additional explicitly named
+top level elements rather than requiring "prov:type".
+</p>
+
+<p>For example, a Quotation is currently expressed in PROV-N as a type
+of Derivation like this:</p>
+<div class="codeexample">
+wasDerivedFrom(a, b, [prov:type='prov:Quotation'])
+</div>
+
+<p>which is transformed to:</p>
+
+<div class="codeexample">
+&lt;prov:wasDerivedFrom&gt;<br/>
+&nbsp;&nbsp;&lt;prov:generatedEntity prov:ref="a"/&gt;<br/>
+&nbsp;&nbsp;&lt;prov:usedEntity prov:ref="b"/&gt;<br/>
+&nbsp;&nbsp;&lt;prov:type xsi:type="xsd:QName">prov:Quotation&lt;/prov:type&gt;<br/>
+&lt;/prov:wasDerivedFrom&gt;
+</div>
+
+<p>This proposal would replace that with an explicit "Quotation" element:
+</p>
+
+<div class="codeexample">
+&lt;prov:Quotation&gt;<br/>
+&nbsp;&nbsp;&lt;prov:generatedEntity prov:ref="a"/&gt;<br/>
+&nbsp;&nbsp;&lt;prov:usedEntity prov:ref="b"/&gt;<br/>
+&lt;/prov:Quotation&gt;
+</div>
+
+<p>Other "typed" concepts and relations would be handled similarly.
+</p>
+
+</div>
 
 </section>