removed provenance locator, added contextualization
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Thu, 07 Jun 2012 12:15:25 +0100
changeset 3213 c8a00941c794
parent 3212 65e37b32ad81
child 3214 76fdedbe8c31
removed provenance locator, added contextualization
model/glossary.html
model/glossary.js
model/prov-dm.html
model/prov-glossary.html
--- a/model/glossary.html	Thu Jun 07 11:17:00 2012 +0100
+++ b/model/glossary.html	Thu Jun 07 12:15:25 2012 +0100
@@ -273,3 +273,7 @@
 A <dfn id="concept-provenance-uri">provenance-URI</dfn> is the IRI denoting some provenance information.
 </span>
 
+
+<span class="glossary" id="glossary-contextualization">  
+Something that is a <dfn id="concept-contextualiation">contextualization</dfn> of another presents all aspects of the latter in a given context specified by descriptions found in a bundle.
+</span>
--- a/model/glossary.js	Thu Jun 07 11:17:00 2012 +0100
+++ b/model/glossary.js	Thu Jun 07 12:15:25 2012 +0100
@@ -3,7 +3,7 @@
 //  with <script src="glossary.js" class="remove"></script>
 //Insert glossary definitions with the following 
 // <div class="glossary-ref" ref="glossary-generation"></div>
-glossary_hg='http://dvcs.w3.org/hg/prov/file/8526c8e4d8bc/model/glossary.html';
+glossary_hg='http://dvcs.w3.org/hg/prov/file/65e37b32ad81/model/glossary.html';
 glossary_string= 
 ' ' + 
 '<html> ' + 
@@ -280,4 +280,8 @@
 'A <dfn id="concept-provenance-uri">provenance-URI</dfn> is the IRI denoting some provenance information. ' + 
 '</span> ' + 
 ' ' + 
+' ' + 
+'<span class="glossary" id="glossary-contextualization">   ' + 
+'Something that is a <dfn id="concept-contextualiation">contextualization</dfn> of another presents all aspects of the latter in a given context specified by descriptions found in a bundle. ' + 
+'</span> ' + 
 ' ' ;
--- a/model/prov-dm.html	Thu Jun 07 11:17:00 2012 +0100
+++ b/model/prov-dm.html	Thu Jun 07 12:15:25 2012 +0100
@@ -1421,11 +1421,11 @@
 
 <tr class="component4-color"><td><a>Alternate</a></td><td><a title="alternateOf">alternateOf(alt1, alt2)</a></td><td  rowspan="2"><a href="#component4">Component 4: Alternate</a></td></tr>
 <tr class="component4-color"><td><a>Specialization</a></td><td><a title="specializationOf">specializationOf(sub, super)</a></td></tr>
+<tr class="component4-color"><td><a>Contextualization</a></td><td><a title="contextualizationOf">contextualizationOf(i2, i1,bundle)</a></td></tr>
 <tr><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td></tr>
 
 <tr class="component5-color"><td><a title="bundle">Bundle constructor</a></td><td><a title="dfn-bundle">bundle id description_1 ... description_n endBundle</a></td><td  rowspan="3"><a href="#component5">Component 5: Bundles</a></td></tr>
 <tr class="component5-color"><td class="provType"><a title="bundle">Bundle type</a></td><td><a>... prov:type='prov:Bundle' ...</a></td></tr>
-<tr class="component5-color"><td><a>Provenance Locator</a></td><td><a title="hasProvenanceIn">hasProvenanceIn(id, subject, bundle, target, service, prov, attrs)</a></td></tr>
 <tr><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td></tr>
 
 <tr class="component6-color"><td class="provType"><a>Collection</a></td><td><a title="collection">... prov:type='prov:Collection' ...</a></td><td  rowspan="6"><a href="#component6">Component 6: Collections</a></td></tr>
@@ -2370,6 +2370,7 @@
 </figure>
 </div>
 
+<div class="note">Swap components 4 and 5. Update figure 8 with new contextualizationOf</div>
 
 
 <p>Two provenance descriptions about the same thing may emphasize differents aspects of that thing.</p>
@@ -2469,6 +2470,107 @@
 </div>
 
 </section>
+
+<section id="term-contextualization">
+
+<h4>Contextualization</h4>
+
+<span class="glossary-ref" data-ref="glossary-contextualization"></span>
+
+
+<p><div class="attributes" id="attributes-contextualization">A <dfn title="contextualizationOf">contextualization</dfn> relation<span class="withPn">, written <span class="pnExpression">contextualizationOf(i2, i1, b)</span> in PROV-N,</span> has:
+<ul>
+<li><span class='attribute' id="contextualization.contextualization2">contextualization2</span>: an identifier (<span class="name">i2</span>) for something presenting the aspects of <span class="name">i1</span> in bundle <span class="name">b</span> ;</li>
+<li><span class='attribute' id="contextualization.contextualization2">contextualization1</span>: an identifier (<span class="name">i1</span>) of something identifiable in some bundle <span class="name">b</span>;</li>
+<li><span class='attribute' id="contextualization.context">bundle</span>: an identifier (<span class="name">b</span>) for a bundle.</li>
+</ul>
+</div>
+
+
+<div class="anexample" id="anexample-contextualization1">
+<p>In the following example, two bundles <span class="name">ex:run1</span> and <span class="name">ex:run2</span> refer to an agent <span class="name">ex:Bob</span> that controlled two activities <span class="name">ex:a1</span> and <span class="name">ex:a2</span>. </p>
+
+<pre class="codeexample">
+bundle ex:run1
+    activity(ex:a1, 2011-11-16T16:00:00,2011-11-16T17:00:00)  //duration: 1hour
+    wasAssociatedWith(ex:a1,ex:Bob,[prov:role="controller"])
+endBundle
+
+bundle ex:run2
+    activity(ex:a2, 2011-11-17T10:00:00,2011-11-17T17:00:00)  //duration: 7hours
+    wasAssociatedWith(ex:a2,ex:Bob,[prov:role="controller"])
+endBundle
+</pre> 
+<p>A performance rating tool reads these bundles, and rates the performance of the agent described in these bundles. The performance rating tool creates a new bundle <span class="name">tool:analysis01</span> containing the following. A new agent <span class="name">tool:Bob1</span> is declared as a contextualization of <span class="name">ex:Bob</span> as described in context <span class="name">ex:run1</span>, and likewise for  <span class="name">tool:Bob2</span> with respect to <span class="name">ex:run2</span>. The tool then defines two specializations of these contextualized agents with an associated rating. The performance of the agent in the first bundle is judged to be good since the duration of <span class="name">ex:a1</span> is one hour, whereas it is judged to be bad in the second bundle since <span class="name">ex:a2</span>'s duration is seven hours.
+
+<pre class="codeexample">
+bundle tool:analysis01
+    agent(tool:Bob1)
+    contextualizationOf(tool:Bob1, ex:Bob, ex:run1)
+    agent(tool:ratedBob1, [perf:rating="good"])
+    specialization(tool:ratedBob1, tool:Bob1)
+
+    agent(tool:Bob2)
+    contextualizationOf(tool:Bob2, ex:Bob, ex:run2)
+    agent(tool:ratedBob2, [perf:rating="bad"])
+    specialization(tool:ratedBob2, tool:Bob2)
+endBundle
+</pre>
+</div>
+
+
+<div class="anexample" id="aexample-contextualization-viz">
+<p>Consider the following bundle of descriptions, in which derivation and generations have been identified.
+<pre class="codeexample"> 
+bundle obs:bundle7
+  entity(ex:report1, [prov:type="report", ex:version=1])
+  wasGeneratedBy(ex:g1; ex:report1,-,2012-05-24T10:00:01)
+  entity(ex:report2, [prov:type="report", ex:version=2])
+  wasGeneratedBy(ex:g2; ex:report2,-,2012-05-25T11:00:01)
+  wasDerivedFrom(ex:d; ex:report2, ex:report1)
+endBundle
+entity(obs:bundle7, [ prov:type='prov:Bundle' ])
+wasAttributedTo(obs:bundle7, ex:observer01)
+</pre>
+Bundle <span class="name">obs:bundle7</span> is rendered by a visualisation tool.  It may useful for the tool configuration for this bundle to be shared along with the provenance descriptions, so that other users can render provenance as it was originally rendered.  The original  bundle obviously cannot be changed. However, one can create a new bundle, as follows.
+<pre class="codeexample"> 
+bundle tool:bundle8
+  entity(tool:bundle8, [ prov:type='viz:Configuration', prov:type='prov:Bundle' ])
+  wasAttributedTo(tool:bundle8, viz:Visualizer)
+
+  entity(tool:report1, [viz:color="orange"])         // is it appropriate to add viz attributes to tool:report1 or should we specialize it?
+  contextualizationOf(tool:report1, obs:bundle7, ex:report1)
+
+  entity(tool:report2, [viz:color="blue"])              
+  contextualizationOf(tool:report2, obs:bundle7, ex:report2)
+
+
+  wasDerivedBy(tool:d; tool:report2, tool:report1, [viz:style="dotted"])
+  contextualizationOf(tool:d, obs:bundle7, ex:d)
+endBundle
+</pre>
+
+<p>In bundle <span class="name">tool:bundle8</span>, the prefix <span class="name">viz</span> is used for naming visualisation-specific attributes, types or values.</p>
+
+<p>Bundle <span class="name">tool:bundle8</span> is given type <span class="name">viz:Configuration</span> to indicate that it consists of descriptions that pertain to the configuration of the visualisation tool. This type attribute can be used for searching bundles containing visualization-related descriptions.
+</p>
+
+<p>The visualisation tool
+ created  new identifiers <span class="name">tool:report1</span>,
+<span class="name">tool:report2</span>, and
+<span class="name">tool:d</span>.
+They denote entities which are alternates of with <span class="name">ex:report1</span> and <span class="name">ex:report2</span>, described in bundle <span class="name">obs:bundle7</span>, with visualization attribute for the color to be used when rendering these entities.  
+Likewise, the derivation has a style attribute. </p>
+
+<p>According to their definition,
+derivations have an <a href="#derivation.id">optional identifier</a>. 
+To express an alternate for a derivation, we need to be able to reference it, by means of an identifier. Hence, it is necessary for it to have an identifier in the first place (<span class="name">ex:d</span>).</p>
+</div>
+
+
+
+</section>
+
 </section>
 
 
@@ -2489,6 +2591,7 @@
 </div>
 
 
+<div class="note">Remove provenance locator from fig 9</div>
 
 
 <section id="term-bundle"> 
@@ -2616,7 +2719,7 @@
 
 </section>
 
-<section id="term-hasProvenanceIn"> 
+<!-- <section id="term-hasProvenanceIn"> 
 
 <h3>Provenance Locator</h3>
 
@@ -2752,6 +2855,8 @@
 </div>
 
 </section>
+-->
+
 </section> 
 
 
@@ -3228,6 +3333,7 @@
 
 </section>
 
+<!--
 <section id="term-attribute-provenance-uri">
 <h4>prov:provenance-uri</h4>
 
@@ -3280,7 +3386,7 @@
 
 </section>
 
-
+-->
 
 
 </section>
--- a/model/prov-glossary.html	Thu Jun 07 11:17:00 2012 +0100
+++ b/model/prov-glossary.html	Thu Jun 07 12:15:25 2012 +0100
@@ -144,6 +144,7 @@
 <p style="font-size: 200%;">C</a>
 <div class="glossary-ref" data-ref="glossary-collection"></div><p></p>
 <div class="glossary-ref" data-ref="glossary-communication"></div><p></p>
+<div class="glossary-ref" data-ref="glossary-contextualization"></div><p></p>
 
 <p style="font-size: 200%;">D</a>
 <div class="glossary-ref" data-ref="glossary-delegation"></div><p></p>
@@ -170,14 +171,12 @@
 
 <p style="font-size: 200%;">O</a>
 <div class="glossary-ref" data-ref="glossary-organization"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-original-source"></div><p></p>
 
 <p style="font-size: 200%;">P</a>
 <div class="glossary-ref" data-ref="glossary-person"></div><p></p></li> 
 <div class="glossary-ref" data-ref="glossary-plan"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-provenance-locator"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-provenance-service"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-provenance-uri"></div><p></p>
+<div class="glossary-ref" data-ref="glossary-primary-source"></div><p></p>
+
 
 
 <p style="font-size: 200%;">Q</a>
@@ -207,6 +206,7 @@
 <div class="glossary-ref" data-ref="glossary-attribute-value"></div><p></p>
 
 
+<!--
 <div class="glossary-ref" ref="glossary-accountEntity"></div><p></p><p></p>
 
 <div class="glossary-ref" ref="glossary-activity"></div><p></p>
@@ -237,13 +237,14 @@
 
 <div class="glossary-ref" ref="glossary-quotation"></div><p></p>
 
-<div class="glossary-ref" ref="glossary-original-source"></div><p></p>
+<div class="glossary-ref" ref="glossary-primary-source"></div><p></p>
 
 <div class="glossary-ref" ref="glossary-revision"></div><p></p>
 
 <div class="glossary-ref" ref="glossary-start"></div><p></p>
 
 <div class="glossary-ref" ref="glossary-end"></div><p></p>
+-->
 </section>