merge
authorTim L <lebot@rpi.edu>
Wed, 30 May 2012 19:25:20 -0400
changeset 3092 d0c1f61bc467
parent 3091 8001d4240d9b (current diff)
parent 3090 c0dafcde7cd0 (diff)
child 3093 1a1acd2d1884
merge
--- a/model/prov-dm.html	Wed May 30 19:25:01 2012 -0400
+++ b/model/prov-dm.html	Wed May 30 19:25:20 2012 -0400
@@ -77,9 +77,14 @@
           var myid=$(this).attr('id');
           var mycount=count++;
 
+          if (myid==undefined) {
+            myid='example_' + mycount;
+            $(this).attr('id',myid);
+          }
+
           
           $(this).attr('data-count', mycount).prepend($('<div>').addClass('anexampleTitle')
-                                                          .append($('<a>').attr('href','#'+myid).append("Example " + mycount)));
+                                                          .append($('<a>').addClass('internalDFN').attr('href','#'+myid).append("Example " + mycount)));
 
           //console.log( "example for " + myid + " " + mycount);
 
@@ -92,17 +97,38 @@
 
           myhref=$(this).attr('href');
 
-          console.log( "example ref for " + myhref);
+              //console.log( "example ref for " + myhref);
 
           mycount=$(myhref).attr('data-count');
 
-          console.log( "example ref for " + myhref + " " + mycount);
+              //console.log( "example ref for " + myhref + " " + mycount);
 
           $(this).children('span').replaceWith(function(){return $('<span>').append("Example " + mycount)});
 
         });
       }
 
+
+      function updateSectionRefs() {
+
+         $('.section-ref').each(function(index) {
+
+          myhref=$(this).attr('href');
+
+          console.log( "section ref for " + myhref);
+
+
+          mysectionNumber=$(myhref).find('span.secno').text().trim();
+
+          console.log( "section ref for " + myhref + " " + mysectionNumber);
+
+          $(this).children('span').replaceWith(function(){return $('<span>').append("Section " + mysectionNumber)});
+
+        });
+      }
+
+
+
       $(document).ready(function(){
         // if glossary is in a string:
         $('#glossary_div').html(glossary_string)
@@ -278,6 +304,8 @@
 
           // Add extraReferences to bibliography database
           preProcess: [addExtraReferences],
+
+          postProcess: [updateSectionRefs],
       };
     </script> 
   </head> 
@@ -492,7 +520,7 @@
 <table  class="thinborder" style="margin-left: auto; margin-right: auto;">
 <caption id="namespace-table">Table 1: Prefix and Namespaces used in this specification</caption>
 <tr><td><a><b>prefix</b></a></td><td><b>namespace uri</b></td> <td><b>definition</b></td></tr>
-<tr><td><a>prov</a></td><td>http://www.w3.org/ns/prov#</td><td>The PROV namespace (see Section <a href="#term-NamespaceDeclaration">5.7.1</a>)</td></tr>
+<tr><td><a>prov</a></td><td>http://www.w3.org/ns/prov#</td><td>The PROV namespace (see <a class="section-ref" href="#term-NamespaceDeclaration"><span>TBD</span></a>)</td></tr>
 <tr><td><a>xsd</a></td><td>http://www.w3.org/2000/10/XMLSchema#</td><td>XML Schema Namespace [[!XMLSCHEMA-2]]</td></tr>
 <tr><td><a>rdf</a></td><td>http://www.w3.org/1999/02/22-rdf-syntax-ns#</td><td>The RDF namespace  [[!RDF-CONCEPTS]]</td></tr>
 <tr><td><a>(others)</a></td><td>(various)</td><td>All other namespace prefixes are used in examples only. <br/> In particular, URIs starting with "http://example.com" represent<br/> some application-dependent URI [[!URI]]</td></tr>
@@ -554,17 +582,17 @@
 <caption id="overview-types-and-relations">Table 2: Mapping of PROV core concepts to  types and relations</caption>
 <tr><td><a><b>PROV Concepts</b></a></td><td><b>PROV-DM types or relations</b></td><td><b>Name</b></td><td><b>Overview</b></td></tr>
 <tr>
-<td><a>Entity</a></td><td rowspan="3" style="text-align: center;">PROV-DM Types</td><td><a title="dfn-Entity">Entity</a></td><td style="text-align: center;"><a href="#section-entity-activity">2.1.1</a></td></tr>
-<tr><td><a>Activity</a></td><td><a title="dfn-Activity">Activity</a></td><td style="text-align: center;"><a href="#section-entity-activity">2.1.1</a></td></tr>
-<tr><td><a>Agent</a></td><td><a title="dfn-agent">Agent</a></td><td style="text-align: center;"><a href="#section-agents-attribution-association-delegation">2.1.2</a></td></tr>
+<td><a>Entity</a></td><td rowspan="3" style="text-align: center;">PROV-DM Types</td><td><a title="dfn-Entity">Entity</a></td><td style="text-align: center;"><a class="section-ref" href="#section-entity-activity"><span>TBD</span></a></td></tr>
+<tr><td><a>Activity</a></td><td><a title="dfn-Activity">Activity</a></td><td style="text-align: center;"><a class="section-ref" href="#section-entity-activity"><span>TBD</span></a></td></tr>
+<tr><td><a>Agent</a></td><td><a title="dfn-agent">Agent</a></td><td style="text-align: center;"><a class="section-ref" href="#section-agents-attribution-association-delegation"><span>TBD</span></a></td></tr>
 <tr>
-<td><a>Generation</a></td><td rowspan="7" style="text-align: center;">PROV-DM Relations</td><td><a title="wasGeneratedBy">wasGeneratedBy</a></td><td style="text-align: center;"><a href="#section-entity-activity">2.1.1</a></td></tr>
-<tr><td><a>Usage</a></td><td><a title="used">Used</a></td><td style="text-align: center;"><a href="#section-entity-activity">2.1.1</a></td></tr>
-<tr><td><a>Communication</a></td><td><a title="wasInformedBy">WasInformedBy</a></td><td style="text-align: center;"><a href="#section-entity-activity">2.1.1</a></td></tr>
-<tr><td><a>Derivation</a></td><td><a title="wasDerivedFrom">WasDerivedFrom</a></td><td style="text-align: center;"><a href="#section-derivation">2.1.2</a></td></tr>
-<tr><td><a>Attribution</a></td><td><a title="wasAttributedTo">WasAttributedTo</a></td><td style="text-align: center;"><a href="#section-agents-attribution-association-delegation">2.1.3</a></td></tr>
-<tr><td><a>Association</a></td><td><a title="wasAssociatedWith">WasAssociatedWith</a></td><td style="text-align: center;"><a href="#section-agents-attribution-association-delegation">2.1.3</a></td></tr>
-<tr><td><a>Delegation</a></td><td><a title="actedOnBehalfOf">ActedOnBehalfOf</a></td><td style="text-align: center;"><a href="#section-agents-attribution-association-delegation">2.1.3</a></td></tr>
+<td><a>Generation</a></td><td rowspan="7" style="text-align: center;">PROV-DM Relations</td><td><a title="wasGeneratedBy">wasGeneratedBy</a></td><td style="text-align: center;"><a class="section-ref" href="#section-entity-activity"><span>TBD</span></a></td></tr>
+<tr><td><a>Usage</a></td><td><a title="used">Used</a></td><td style="text-align: center;"><a class="section-ref" href="#section-entity-activity"><span>TBD</span></a></td></tr>
+<tr><td><a>Communication</a></td><td><a title="wasInformedBy">WasInformedBy</a></td><td style="text-align: center;"><a class="section-ref" href="#section-entity-activity"><span>TBD</span></a></td></tr>
+<tr><td><a>Derivation</a></td><td><a title="wasDerivedFrom">WasDerivedFrom</a></td><td style="text-align: center;"><a class="section-ref" href="#section-derivation"><span>TBD</span></a></td></tr>
+<tr><td><a>Attribution</a></td><td><a title="wasAttributedTo">WasAttributedTo</a></td><td style="text-align: center;"><a class="section-ref" href="#section-agents-attribution-association-delegation"><span>TBD</span></a></td></tr>
+<tr><td><a>Association</a></td><td><a title="wasAssociatedWith">WasAssociatedWith</a></td><td style="text-align: center;"><a class="section-ref" href="#section-agents-attribution-association-delegation"><span>TBD</span></a></td></tr>
+<tr><td><a>Delegation</a></td><td><a title="actedOnBehalfOf">ActedOnBehalfOf</a></td><td style="text-align: center;"><a class="section-ref" href="#section-agents-attribution-association-delegation"><span>TBD</span></a></td></tr>
 </table>
 </div>
 
@@ -873,13 +901,12 @@
 <section id="section-prov-extended-approach-expanded-relation"> 
 <h2>Expanded Relations</h2>
 
-<p><a href="#core-structures">Section 2.1</a> shows that seven concepts are mapped to binary relations in the core of PROV.  However, some advanced uses of these concepts cannot be captured by a binary relation, but require relations to be expanded to n-ary relations.</p>
+<p><a class="section-ref" href="#core-structures"><span>TBD</span></a> shows that seven concepts are mapped to binary relations in the core of PROV.  However, some advanced uses of these concepts cannot be captured by a binary relation, but require relations to be expanded to n-ary relations.</p>
 
 
 <p>To illustrate expanded relations, we consider the concept of
 association, described
-in <a href="#section-agents-attribution-association-delegation">section
-2.1.3</a>.  Agents may adopt <em>plans</em>, i.e.  sets of actions or steps, to achieve their
+in <a class="section-ref" href="#section-agents-attribution-association-delegation"><span>TBD</span></a>.  Agents may adopt <em>plans</em>, i.e.  sets of actions or steps, to achieve their
 goals in the context of an activity.
 Hence, an expanded form of
 association relation allows for a plan to be specified. Plan is defined by subtyping and 
@@ -2155,8 +2182,9 @@
 
 <div class="anexample" id="anexample-attribution">
 <p>
-Revisiting the example of <a href="#section-example-one">Section 4.1</a>,
-we can ascribe <span class="name">tr:WD-prov-dm-20111215</span> to some agents without an explicit activity. The reserved attribute <span class="name">role</span> (see <a href="#term-attribute-role">Section 5.7.4.3</a>) allows for role of the agent in the attribution to be specified.
+Revisiting the example of 
+<a class="section-ref" href="#section-example-one"><span>TBD</span></a>,
+we can ascribe <span class="name">tr:WD-prov-dm-20111215</span> to some agents without an explicit activity. The reserved attribute <span class="name">role</span> (see <a  class="section-ref" href="#term-attribute-role"><span>TBD</span></a>) allows for role of the agent in the attribution to be specified.
 <pre class="codeexample">
 agent(ex:Paolo, [ prov:type="Person" ])
 agent(ex:Simon, [ prov:type="Person" ])
@@ -2305,7 +2333,7 @@
 </p>
 
 <div class="anexample">
-<p>We refer to the example of <a href="#section-example-two">Section 4.2</a>, and specifically to <a href="#prov-a-document2-top">Figure 3</a>. We can see that there is a path from 
+<p>We refer to the example of <a class="section-ref" href="#section-example-two"><span>TBD</span></a>, and specifically to <a  href="#prov-a-document2-top">Figure 3</a>. We can see that there is a path from 
 <span class="name">tr:WD-prov-dm-20111215</span> to 
 <span class="name">w3:Consortium</span> and to
 <span class="name">process:rec-advance</span>. This is expressed as follows.
@@ -3053,14 +3081,14 @@
 <caption id="attributes-at-a-glance">Table 6: PROV-DM Attributes At a Glance</caption>
 <tr><td><b>Attribute</b></td><td><b>Allowed In</b></td><td><b>value</b></td><td><b>Section</b></td></tr> 
 <tr><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td><td style="border-width: 0px; "><td style="border-width: 0px; "></td></tr>
-<tr><td><a title="label">prov:label</a></td><td><em>any construct</em></td><td>A <a>Value</a> of type <a href="http://www.w3.org/TR/xmlschema-2/#string">xsd:string</a></td><td>Section <a href="#term-attribute-label">5.7.4.1</a> </td></tr>
-<tr><td><a title="location">prov:location</a></td><td><a>Entity</a>, <a>Activity</a>, <a>Usage</a>, and <a>Generation</a>.</td><td>A <a title="value">Value</a></td><td>Section <a href="#term-attribute-location">5.7.4.2</a> </td></tr>
-<tr><td><a title="role">prov:role</a></td><td><a>Usage</a>, <a>Generation</a>, <a>Association</a>, <a>Start</a>, and <a>End</a></td><td>A <a title="value">Value</a></td><td>Section <a href="#term-attribute-role">5.7.4.3</a> </td></tr>
-<tr><td><a title="type">prov:type</a></td><td><em>any construct</em></td><td>A <a title="value">Value</a></td><td>Section <a href="#term-attribute-type">5.7.4.4</a> </td></tr>
-<tr><td><a title="value-attribute">prov:value</a></td><td><a>Entity</a></td><td>A <a title="value">Value</a></td><td>Section <a href="#term-attribute-value">5.7.4.5</a> </td></tr>
-
-<tr><td><a title="provenance-uri-attribute">prov:provenance-uri</a></td><td><a>Provenance Locator</a></td><td>A <a>Value</a> of type <a href="http://www.w3.org/TR/xmlschema-2/#anyURI">xsd:anyURI</a></td><td>Section <a href="#term-attribute-provenance-uri">5.7.4.6</a> </td></tr>
-<tr><td><a title="service-uri-attribute">prov:service-uri</a></td><td><a>Provenance Locator</a></td><td>A <a>Value</a> of type <a href="http://www.w3.org/TR/xmlschema-2/#anyURI">xsd:anyURI</a></td><td>Section <a href="#term-attribute-service-uri">5.7.4.7</a> </td></tr>
+<tr><td><a title="label">prov:label</a></td><td><em>any construct</em></td><td>A <a>Value</a> of type <a class="section-ref" href="http://www.w3.org/TR/xmlschema-2/#string">xsd:string</a></td><td><a class="section-ref" href="#term-attribute-label"><span>TBD</span></a> </td></tr>
+<tr><td><a title="location">prov:location</a></td><td><a>Entity</a>, <a>Activity</a>, <a>Usage</a>, and <a>Generation</a>.</td><td>A <a title="value">Value</a></td><td><a class="section-ref" href="#term-attribute-location"><span>TBD</span></a> </td></tr>
+<tr><td><a title="role">prov:role</a></td><td><a>Usage</a>, <a>Generation</a>, <a>Association</a>, <a>Start</a>, and <a>End</a></td><td>A <a title="value">Value</a></td><td><a class="section-ref" href="#term-attribute-role"><span>TBD</span></a> </td></tr>
+<tr><td><a title="type">prov:type</a></td><td><em>any construct</em></td><td>A <a title="value">Value</a></td><td><a class="section-ref" href="#term-attribute-type"><span>TBD</span></a> </td></tr>
+<tr><td><a title="value-attribute">prov:value</a></td><td><a>Entity</a></td><td>A <a title="value">Value</a></td><td><a  class="section-ref" href="#term-attribute-value"><span>TBD</span></a> </td></tr>
+
+<tr><td><a title="provenance-uri-attribute">prov:provenance-uri</a></td><td><a>Provenance Locator</a></td><td>A <a>Value</a> of type <a href="http://www.w3.org/TR/xmlschema-2/#anyURI">xsd:anyURI</a></td><td><a class="section-ref" href="#term-attribute-provenance-uri"><span>TBD</span></a> </td></tr>
+<tr><td><a title="service-uri-attribute">prov:service-uri</a></td><td><a>Provenance Locator</a></td><td>A <a>Value</a> of type <a href="http://www.w3.org/TR/xmlschema-2/#anyURI">xsd:anyURI</a></td><td><a class="section-ref" href="#term-attribute-service-uri"><span>TBD</span></a> </td></tr>
 </table>
 </div>
 
@@ -3157,17 +3185,17 @@
 <caption id="prov-dm-predefined-types">Table 7: PROV-DM Predefined Types</caption>
 <tr><td><b>Type</b></td><td><b>Specification</b></td><td><b>Core concept</b></td></tr>
 <tr><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td><td style="border-width: 0px; "></td></tr>
-<tr><td><a title="bundle"><span class="name">prov:Bundle</span></a></td><td><a href="#term-bundle">Section 5.5.1</a></td><td><a>Entity</a></td></tr>
-<tr><td><a title="collection"><span class="name">prov:Collection</span></a></td><td><a href="#term-collection">Section 5.6.1</a></td><td><a>Entity</a></td></tr>
-<tr><td><a title="dictionary"><span class="name">prov:Dictionary</span></a></td><td><a href="#term-dictionary">Section 5.6.2</a></td><td><a>Entity</a></td></tr>
-<tr><td><a title="empty dictionary"><span class="name">prov:EmptyDictionary</span></a></td><td><a href="#term-dictionary">Section 5.6.2</a></td><td><a>Entity</a></td></tr>
-<tr><td><a title="original source"><span class="name">prov:HadOriginalSource</span></a></td><td><a href="#term-original-source">Section 5.2.4</a></td><td><a>Derivation</a></td></tr>
-<tr><td><a title="organization"><span class="name">prov:Organization</span></a></td><td><a href="#term-agent">Section 5.3.1</a></td><td><a>Agent</a></td></tr>
-<tr><td><a title="person"><span class="name">prov:Person</span></a></td><td><a href="#term-agent">Section 5.3.1</a></td><td><a>Agent</a></td></tr>
-<tr><td><a title="plan"><span class="name">prov:Plan</span></a></td> <td><a href="#term-entity">Section 5.3.3</a></td><td><a>Entity</a></td></tr>
-<tr><td><a title="software-agent"><span class="name">prov:SoftwareAgent</span></a></td><td><a href="#term-agent">Section 5.3.1</a></td><td><a>Agent</a></td></tr>
-<tr><td><a title="Quotation"><span class="name">prov:WasQuotedFrom</span></a></td><td><a href="#term-quotation">Section 5.2.3</a></td><td><a>Derivation</a></td></tr>
-<tr><td><a title="Revision"><span class="name">prov:WasRevisionOf</span></a></td><td><a href="#term-revision">Section 5.2.2</a></td><td><a>Derivation</a></td></tr>
+<tr><td><a title="bundle"><span class="name">prov:Bundle</span></a></td><td><a class="section-ref" href="#term-bundle"><span>TBD</span></a></td><td><a>Entity</a></td></tr>
+<tr><td><a title="collection"><span class="name">prov:Collection</span></a></td><td><a class="section-ref" href="#term-collection"><span>TBD</span></a></td><td><a>Entity</a></td></tr>
+<tr><td><a title="dictionary"><span class="name">prov:Dictionary</span></a></td><td><a class="section-ref" href="#term-dictionary"><span>TBD</span></a></td><td><a>Entity</a></td></tr>
+<tr><td><a title="empty dictionary"><span class="name">prov:EmptyDictionary</span></a></td><td><a class="section-ref" href="#term-dictionary"><span>TBD</span></a></td><td><a>Entity</a></td></tr>
+<tr><td><a title="original source"><span class="name">prov:HadOriginalSource</span></a></td><td><a class="section-ref" href="#term-original-source"><span>TBD</span></a></td><td><a>Derivation</a></td></tr>
+<tr><td><a title="organization"><span class="name">prov:Organization</span></a></td><td><a class="section-ref" href="#term-agent"><span>TBD</span></a></td><td><a>Agent</a></td></tr>
+<tr><td><a title="person"><span class="name">prov:Person</span></a></td><td><a class="section-ref" href="#term-agent"><span>TBD</span></a></td><td><a>Agent</a></td></tr>
+<tr><td><a title="plan"><span class="name">prov:Plan</span></a></td> <td><a class="section-ref" href="#term-entity"><span>TBD</span></a></td><td><a>Entity</a></td></tr>
+<tr><td><a title="software-agent"><span class="name">prov:SoftwareAgent</span></a></td><td><a class="section-ref" href="#term-agent"><span>TBD</span></a></td><td><a>Agent</a></td></tr>
+<tr><td><a title="Quotation"><span class="name">prov:WasQuotedFrom</span></a></td><td><a class="section-ref" href="#term-quotation"><span>TBD</span></a></td><td><a>Derivation</a></td></tr>
+<tr><td><a title="Revision"><span class="name">prov:WasRevisionOf</span></a></td><td><a class="section-ref" href="#term-revision"><span>TBD</span></a></td><td><a>Derivation</a></td></tr>
 </table>
 
 </section>