glossary
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Mon, 20 Feb 2012 15:18:12 +0000
changeset 1617 d44c6c99059c
parent 1616 3e1e0d7800cd
child 1618 5b68cdbc1071
glossary
model/working-copy/towards-wd4.html
--- a/model/working-copy/towards-wd4.html	Mon Feb 20 14:44:44 2012 +0000
+++ b/model/working-copy/towards-wd4.html	Mon Feb 20 15:18:12 2012 +0000
@@ -17,19 +17,26 @@
     <script src="http://www.w3.org/2007/OWL/toggles.js" class="remove"></script> 
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" class="remove"></script>
 
+    <script src="glossary.js" class="remove"></script>
+
     <script class="remove">
       function updateGlossaryRefs() {
         $('.glossary-ref').each(function(index) {
           var ref=$(this).attr('ref');
+          var span=$(this).attr('withspan')
           $('#'+ref+'.glossary').contents().clone().appendTo($(this));
-          $(this).children('dfn').replaceWith(function(){return $('<span>').addClass('dfn').append($(this).contents())});
+          $(this).attr('prov:hadOriginalSource',glossary_hg);
+          if (span) {
+            $(this).children('dfn').replaceWith(function(){return $('<span>').addClass('dfn').append($(this).contents())});
+          }
         });
       }
-      $(document).ready(updateGlossaryRefs);
-    function glossary_include(doc, content) {
-        window.setTimeout(updateGlossaryRefs, 1000);
-        return content;
-    }
+      $(document).ready(function(){
+        // if glossary is in a string:
+        $('#glossary_div').html(glossary_string)
+        updateGlossaryRefs();
+      });
+
     </script>
 
     <script class="remove"> 
@@ -337,11 +344,7 @@
 physical things such as a building or a printed book, or a car as well as abstract concepts and ideas. One can regard any Web resource as an example of Entity in this context. </p>
 
 <p>
-<div class="glossary" id="glossary-entity">
-<dfn title="concept-entity">Entities</dfn> are things in the world one
- wants to provide provenance for.  For the purpose of this
- specification, things can be physical, digital, conceptual, or
- otherwise; the world may be real or imaginary.
+<div class="glossary-ref" ref="glossary-entity">
 </div>
 </p>
 
@@ -353,11 +356,7 @@
 
 
 <p>
-<div class="glossary" id="glossary-activity">
-An <dfn id="concept-activity">activity</dfn> is anything that acts upon or with
-entities; this action can take multiple forms: consuming, processing, transforming, modifying, relocating, using, generating, or being associated with entities, 
-etc. Activities that operate on digital entities may for example move, copy, or duplicate them.
-</div>
+<span class="glossary-ref" ref="glossary-activity"></span> Activities that operate on digital entities may for example move, copy, or duplicate them.
 </p>
 
 
@@ -368,9 +367,8 @@
 
 
 <p>
-<div class="glossary" id="glossary-agent">
-An <dfn id="concept-agent">agent</dfn> is a type of entity that takes an active role in an activity such that it can be assigned some degree of responsibility for the activity taking place.
-</div>
+<span class="glossary-ref" ref="glossary-agent">
+</span>
 </p>
 
 
@@ -398,14 +396,14 @@
 <p>Activities and entities are associated with each other in two different ways: activities are consumers of entities and activities are producers of entities.  For the purpose of provenance, we define the following notions of generation and usage. </p>
 
 <p>
-<div class="glossary" id="glossary-generation">
+<div class="glossary-ref" id="glossary-generation">
 <dfn title="concept-generation">Generation</dfn> is the completed production of a new entity by an activity.
  This entity becomes available for usage after this generation. This entity did not exist before generation. 
 </div>
 </p>
 
 <p>
-<div class="glossary" id="glossary-usage">
+<div class="glossary-ref" id="glossary-usage">
 <dfn title="concept-usage">Usage</dfn> is the beginning of an entity being consumed by an activity.
 Before usage, the activity had not begun to consume or use this entity (and could not have been affected by the entity).
 </div>
@@ -429,8 +427,8 @@
 <p>Activities are consumers of entities and producers of entities. In some case, the consumption of an entity influences the creation of another in some way. This notion is captured by derivations, defined as follows.</p>
 
 <p>
-<div class="glossary" id="glossary-derivation">
-<dfn title="concept-derivation">Derivation</dfn> is something by which some entity is transformed from, created from, or affected by another entity in the world.  </div>
+<span class="glossary-ref" id="glossary-derivation">
+<dfn title="concept-derivation">Derivation</dfn> is something by which some entity is transformed from, created from, or affected by another entity in the world.  </span>
 </p>
 
 
@@ -447,10 +445,8 @@
 <p>There are some useful types of entities and agents that are commonly encountered in applications making data and documents available on the Web; we introduce them in this section. </p>
 
 <p>
-<div class="glossary" id="glossary-plan">
-A <dfn title="concept-plan">plan</dfn> is an entity that represents a set of
-actions or steps intended by one or more agents to achieve some goals. 
-</div>
+<span class="glossary-ref" id="glossary-plan">
+</span>
 PROV-DM is not
 prescriptive about the nature of plans, their representation, the
 actions or steps they consist of, or their intended goals.  Since plans may evolve over time,
@@ -531,10 +527,10 @@
 
 
 <p>
-<div class="glossary" id="glossary-activityAssociation">
+<span class="glossary-ref" id="glossary-activityAssociation">
 An <dfn title="concept-activityAssociation">activity association</dfn> is an assignment of responsibility to an agent for an activity, indicating that the agent had an active role in the activity. It further allows for a plan to be specified, which is the plan
 intended by the agent to achieve some goals in the context of this activity.
-</div>
+</span>
 </p>
 
 <div class="anexample" id="association-example">
@@ -548,10 +544,10 @@
 </div>
 
 <p>
-<div class="glossary" id="glossary-responsibilityChain">
+<span class="glossary-ref" id="glossary-responsibilityChain">
 A <dfn title="concept-responsibilityChain">responsibility chain</dfn> is a relation between two agents,
 indicating that a "subordinate" agent acted on behalf of a "responsible" agent, in the context of an activity.  The nature of this relation is intended to be broad,  including delegation or a contractual relation.
-</div>
+</span>
 
 <!--<div class="note">Propose to rephrase as follows: <br/>
 A relation between two agents, denoted <dfn title="concept-responsibilityChain">actedOnBehalfOf</dfn> indicates that 
@@ -800,7 +796,7 @@
 <h4>Entity</h4>
 
 
-<div class="glossary-ref" ref="glossary-entity"></div>
+<div class="glossary-ref" ref="glossary-entity" withspan='true'></div>
 
 
 <p>An entity<span class="withAsn">, written <span class="name">entity(id, [ attr1=val1, ...])</span> in PROV-ASN, </span> contains:</p>
@@ -853,7 +849,7 @@
       
 <h3>Activity</h3>
 
-<div class="glossary-ref" ref="glossary-activity"></div>
+<div class="glossary-ref" ref="glossary-activity" withspan='true'></div>
 
 <p> An activity<span class="withAsn">, written <span class="name">activity(id, st, et, [ attr1=val1, ...])</span> in PROV-ASN,</span> contains:</p>
 <ul>
@@ -896,7 +892,7 @@
 <section id="term-Agent">
 <h3>Agent</h3>
 
-<div class="glossary-ref" ref="glossary-agent"></div>
+<div class="glossary-ref" ref="glossary-agent" withspan='true'></div>
 
 
 <p>An agent<span class="withAsn">, noted <span class="name">agent(id, [ attr1=val1, ...])</span> in PROV-ASN,</span> contains:</p>
@@ -1014,7 +1010,7 @@
 <section id="term-Generation">
 <h4>Generation</h4>
 
-<div class="glossary-ref" ref="glossary-generation"></div>
+<div class="glossary-ref" ref="glossary-generation" withspan='true'></div>
 
 <p><dfn title="dfn-Generation">Generation</dfn><span class="withAsn">, written <span class="name">wasGeneratedBy(id,e,a,t,attrs)</span> in PROV-ASN,</span> has the following components:</p>
 <ul>
@@ -1063,7 +1059,7 @@
 <section id="term-Usage">
 <h3>Usage</h3>
 
-<div class="glossary-ref" ref="glossary-usage"></div>
+<div class="glossary-ref" ref="glossary-usage" withspan='true'></div>
 
 
 <p><dfn title="dfn-Usage">Usage</dfn><span class="withAsn">, written <span class="name">used(id,a,e,t,attrs)</span> in PROV-ASN,</span> has the following constituents:</p>
@@ -1120,7 +1116,7 @@
 <section id="term-ActivityAssociation">
 <h4>Activity Association</h4>
 
-<div class="glossary-ref" ref="glossary-activityAssociation"></div>
+<div class="glossary-ref" ref="glossary-activityAssociation" withspan='true'></div>
 
 <p>As far as responsibility is concerned, PROV-DM offers two kinds of constructs. The first, introduced in this section, is a relation between an agent, a plan, and an activity; the second, introduced in <a
 href="#term-responsibility">Section Responsibility</a>, is a relation between agents expressing that an agent was acting on behalf of another, in the context of an activity. </p>
@@ -1219,7 +1215,7 @@
 
 <h4>Responsibility Chain</h4>
 
-<div class="glossary-ref" ref="glossary-responsibilityChain"></div>
+<div class="glossary-ref" ref="glossary-responsibilityChain" withspan='true'></div>
 
 <p>PROV-DM offers a mild version of responsibility
 in the form of a relation to represent when an agent acted on another
@@ -1277,7 +1273,7 @@
 <section id="Derivation-Relation">
 <h4>Derivation</h4>
 
-<div class="glossary-ref" ref="glossary-derivation"></div>
+<div class="glossary-ref" ref="glossary-derivation" withspan='true'></div>
 
 
 <div class='note'>
@@ -2245,5 +2241,10 @@
 
 </section>
 
+<div id="glossary_div" class="remove">
+<!-- glossary loaded from glossary.js will be hooked up here,
+     class remove, will remove this element from the final output.
+-->
+</div>
 
  </body></html>