draft of the namespace page
authorPaul Groth <p.t.groth@vu.nl>
Tue, 07 May 2013 16:27:24 +0200
changeset 6372 8947bbfee191
parent 6371 a7d79cc58941
child 6374 0aa49f1e2dd2
child 6375 3c5755817cf3
draft of the namespace page
namespace/landing-page.html
namespace/namespace-terms.csv
--- a/namespace/landing-page.html	Tue May 07 15:07:58 2013 +0100
+++ b/namespace/landing-page.html	Tue May 07 16:27:24 2013 +0200
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 
 <html><head> 
-    <title>The PROV Namespace Landing page</title> 
+    <title>The PROV Namespace</title> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
     <!-- 
       === NOTA BENE ===
@@ -32,11 +32,89 @@
           }
         });
       }
+      
+      function buildIndex() {
+        dict = {"actedOnBehalfOf":"Delegation","Activity":"Activity","activity":"","ActivityInfluence":"","Agent":"Agent","agent":"","AgentInfluence":"","alternateOf":"Alternate","Association":"Association","atLocation":"Location","atTime":"","Attribution":"Attribution","Bundle":"Bundle","Collection":"Collection","Communication":"Communication","Delegation":"Delegation","Derivation":"Derivation","EmptyCollection":"EmptyCollection","End":"End","endedAtTime":"","Entity":"Entity","entity":"","EntityInfluence":"","generated":"","generatedAtTime":"","Generation":"Generation","hadActivity":"Activity","hadGeneration":"Generation","hadMember":"Member","hadPlan":"Plan","hadPrimarySource":"PrimarySource","hadRole":"Role","hadUsage":"Usage","Influence":"Influence","influenced":"","influencer":"","InstantaneousEvent":"","invalidated":"","invalidatedAtTime":"","Invalidation":"Invalidation","Location":"Location","Organization":"Organization","Person":"Person","Plan":"Plan","PrimarySource":"PrimarySource","qualifiedAssociation":"Association","qualifiedAttribution":"Attribution","qualifiedCommunication":"Communication","qualifiedDelegation":"Delegation","qualifiedDerivation":"Derivation","qualifiedEnd":"End","qualifiedGeneration":"Generation","qualifiedInfluence":"Influence","qualifiedInvalidation":"Invalidation","qualifiedPrimarySource":"PrimarySource","qualifiedQuotation":"Quotation","qualifiedRevision":"Revision","qualifiedStart":"Start","qualifiedUsage":"Usage","Quotation":"Quotation","Revision":"Revision","Role":"Role","SoftwareAgent":"SofwareAgent","specializationOf":"Specialization","Start":"Start","startedAtTime":"","type":"Type","Usage":"Usage","used":"Usage ","value":"Value","wasAssociatedWith":"Association","wasAttributedTo":"Attribution","wasDerivedFrom":"Derivation","wasEndedBy":"End","wasGeneratedBy":"Generation","wasInfluencedBy":"Influence","wasInformedBy":"Communication","wasInvalidatedBy":"Invalidation","wasQuotedFrom":"Quotation","wasRevisionOf":"Revision","wasStartedBy":"Start"}
+        
+        terms = Object.keys(dict);
+        
+        
+        var startChar = '1';
+        
+        for (var i = 0, len = terms.length; i < len; i++) {
+            
+            
+            var term = terms[i];
+            
+            var st = term.charAt(0).toUpperCase();
+            if (st != startChar) {
+                $('#definitions').append('<p style="font-size: 300%;">' + st + '</a>');
+                startChar = st;
+            }
+            
+            var defKey = dict[term];
+            
+            var blankDef = false;
+            if (defKey == "") {
+                blankDef = true;
+            }
+            
+            var isHadTerm = false;
+            if (term.indexOf('had') == 0) {
+                isHadTerm = true;
+            }
+            
+            var isQualifiedTerm = false;
+            if (term.indexOf('qualified') == 0) {
+                isQualifiedTerm = true;
+            }
+            
+            
+            
+            
+            var source = '<section id="' + term + '"> \
+            <h2>' + term + '</h2>'
+               
+            source = source + '<p><div class="glossary-ref" data-ref="glossary-' + defKey.toLowerCase() + '"></div></p> \
+            <p> \
+            <table> \
+            <tr> \
+            <td>PROV-O:</td> \
+            <td><a href="http://www.w3.org/TR/2013/REC-prov-o-20130430/#' + term  +'">' + term + '</a></td> \
+            </tr>'
+            
+            if (!isHadTerm && !isQualifiedTerm && !blankDef) {
+            source = source + '<tr> \
+            <td>PROV-XML:</td> \
+             <td><a href="http://www.w3.org/TR/2013/NOTE-prov-XML-20130430/#term-' + defKey  +'">' + defKey + '</a></td> \
+            </tr> \
+            <tr> \
+            <td>PROV-DM:</td> \
+            <td><a href="http://www.w3.org/TR/2013/REC-prov-dm-20130430/#dfn-' + defKey  +'">' + defKey + '</a></td> \
+            </tr> \
+            <tr> \
+            <td>PROV-N:</td> \
+            <td><code><a href="http://www.w3.org/TR/2013/REC-prov-n-20130430/#prod-' + defKey.toLowerCase()  +'Expression">' + defKey.toLowerCase() + 'Expression</a></code></td> \
+            </tr>'
+            }
+            
+            source = source + ' \
+            </table> \
+            </p> \
+            </section>'
+
+
+            $('#definitions').append(source);
+        }
+        
+      }
 
       $(document).ready(function(){
         // if glossary is in a string:
-        $('#glossary_div').html(glossary_string)
-        updateGlossaryRefs();
+        $('#glossary_div').html(glossary_string);
+        buildIndex();
+       updateGlossaryRefs();
+   
       });
 
     </script> 
@@ -81,9 +159,7 @@
  
           // editors, add as many as you like
           // only "name" is required
-          editors:  [
-
-          ],
+          editors:  [{"name":"Provenance Working Group"}],
  
           // authors, add as many as you like. 
           // This is optional, uncomment if you have authors as well as editors.
@@ -113,197 +189,35 @@
   </head> 
   <body xmlns:prov="http://www.w3.org/ns/prov-o/"> 
 
-
-
-
-
-
-
-
-<p style="font-size: 300%;">A</a>
-
-<section id="Activity"> 
-<h2>Activity</h2>
-
-<p><div class="glossary-ref" data-ref="glossary-activity"></div></p>
-
-<p>
-<table>
-<tr>
-<td>PROV-O:</td>
-<td><a href="http://www.w3.org/TR/2013/REC-prov-o-20130430/#Activity">Activity</a></td>
-</tr>
-
-<tr>
-<td>PROV-XML:</td>
-<td><a href="http://www.w3.org/TR/2013/NOTE-prov-XML-20130430/#term-Activity">Activity</a></td>
-</tr>
-
-<tr>
-<td>PROV-DM:</td>
-<td><a href="http://www.w3.org/TR/2013/REC-prov-dm-20130430/#dfn-activity">Activity</a></td>
-</tr>
+<div>
+<h2> Introduction</h2>
+<p>The namespace name <code>http://www.w3.org/ns/prov#</code> is intended for use with the <a href="<a href="http://www.w3.org/TR/prov-overview/>PROV</a> family of documents that support the interchange of provenance on the web. The terms defined within this namespace are identified in these specifications:
+    <ul>
+      <li><a href="http://www.w3.org/TR/prov-dm/">PROV-DM: The PROV Data Model</a></li>
+      <li><a href="http://www.w3.org/TR/prov-o/">PROV-O: The PROV Ontology</a></li>
+      <li><a href="http://www.w3.org/TR/prov-n/">PROV-N: The Provenance Notation</a></li>
+      <li><a href="http://www.w3.org/TR/prov-aq/">PROV-AQ: Provenance Access and Query</a></li>
+      <li><a href="http://www.w3.org/TR/prov-xml/">PROV-XML: The PROV XML Schema</a></li>
+      <li><a href="http://www.w3.org/TR/prov-dictionary/">PROV-Dictionary: Modeling Provenance for Dictionary Data Structures</a></li>
+<li><a href="http://www.w3.org/TR/prov-links/">PROV-Links: Linking Across Provenance Bundles</a></li>
 
-<tr>
-<td>PROV-N:</td>
-<td><code><a href="http://www.w3.org/TR/2013/REC-prov-n-20130430/#prod-activityExpression">activityExpression</a></code></td>
-</tr>
-</table>
-
-</p>
-</section>
-
-<section id="Association"> 
-<h2>Association</h2>
-
-<p><div class="glossary-ref" data-ref="glossary-association"></div></p>
+</div>
 
-<p>
-<table>
-<tr>
-<td>PROV-O:</td>
-<td><a href="http://www.w3.org/TR/2013/REC-prov-o-20130430/#Association">Association</a></td>
-</tr>
-
-<tr>
-<td>PROV-XML:</td>
-<td><a href="http://www.w3.org/TR/2013/NOTE-prov-XML-20130430/#term-Association">Association</a></td>
-</tr>
+<div id="definitions">
 
-<tr>
-<td>PROV-DM:</td>
-<td><a href="http://www.w3.org/TR/2013/REC-prov-dm-20130430/#dfn-association">Association</a></td>
-</tr>
+</div>
 
-<tr>
-<td>PROV-N:</td>
-<td><code><a href="http://www.w3.org/TR/2013/REC-prov-n-20130430/#prod-associationExpression">associationExpression</a></code></td>
-</tr>
-</table>
-</p>
-</section>
-
-
-
+<p><em>This document is intended to comply with <a
+href="http://www.w3.org/1999/10/nsuri">W3C policy for XML namespace
+names</a>.</em></p>
 
 
-<div class="glossary-ref" data-ref="glossary-agent"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-alternate"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-attribution"></div><p></p>
-
-<p style="font-size: 300%;">B</a>
-
-<div class="glossary-ref" data-ref="glossary-bundle"></div><p></p>
-
-<p style="font-size: 300%;">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: 300%;">D</a>
-<div class="glossary-ref" data-ref="glossary-delegation"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-derivation"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-dictionary"></div><p></p>
-
-<p style="font-size: 300%;">E</a>
-<div class="glossary-ref" data-ref="glossary-end"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-entity"></div><p></p>
-
-<p style="font-size: 300%;">G</a>
-<div class="glossary-ref" data-ref="glossary-generation"></div><p></p>
-
-<p style="font-size: 300%;">I</a>
-<div class="glossary-ref" data-ref="glossary-insertion"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-invalidation"></div><p></p>
-
-<p style="font-size: 300%;">L</a>
-<div class="glossary-ref" data-ref="glossary-label"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-location"></div><p></p>
-
-<p style="font-size: 300%;">M</a>
-<div class="glossary-ref" data-ref="glossary-membership"></div><p></p>
-
-<p style="font-size: 300%;">O</a>
-<div class="glossary-ref" data-ref="glossary-organization"></div><p></p>
-
-<p style="font-size: 300%;">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-primary-source"></div><p></p>
-
-
-
-<p style="font-size: 300%;">Q</a>
-<div class="glossary-ref" data-ref="glossary-qualifiedName"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-quotation"></div><p></p>
-
-<p style="font-size: 300%;">R</a>
-<div class="glossary-ref" data-ref="glossary-removal"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-revision"></div><p></p></p>
-<div class="glossary-ref" data-ref="glossary-role"></div><p></p></p>
+    <hr />
+    <address>
 
-<p style="font-size: 300%;">S</a>
-<div class="glossary-ref" data-ref="glossary-software-agent"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-specialization"></div><p></p> 
-<div class="glossary-ref" data-ref="glossary-start"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-service-uri"></div><p></p>
-
-<p style="font-size: 300%;">T</a>
-<div class="glossary-ref" data-ref="glossary-trace"></div><p></p>
-<div class="glossary-ref" data-ref="glossary-type"></div><p></p>
-
-<p style="font-size: 300%;">U</a>
-<div class="glossary-ref" data-ref="glossary-usage"></div><p></p>
-
-<p style="font-size: 300%;">V</a>
-<div class="glossary-ref" data-ref="glossary-value"></div><p></p>
-<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>
-
-<div class="glossary-ref" ref="glossary-activity" withSpan="true"></div><p></p
-
-<div class="glossary-ref" ref="glossary-activityAssociation"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-agent"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-collection"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-derivation"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-entity"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-generation"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-plan"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-provenance"></div><p></p>
-
-<div class="glossary-ref" ref="glossary-responsibilityChain"></div><p></p>
-
-
-<div class="glossary-ref" ref="glossary-usage"></div><p></p>
-
-
-<div class="glossary-ref" ref="glossary-quotation"></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>
--->
-
-
-
-
-
+  <a href="../..//People/Ivan/">Ivan Herman</a>, W3C Team Contact for the <a href="../../2011/prov">Provenance Working Group</a> <tt>&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</tt><br />
+   <small>$Revision: 1.1 $ of $Date: 2013/04/29$</small>
+</address>
 
 
 <div id="glossary_div" class="remove">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/namespace/namespace-terms.csv	Tue May 07 16:27:24 2013 +0200
@@ -0,0 +1,1 @@
+Term,Definition
actedOnBehalfOf,Delegation
Activity,Activity
activity,""""""
ActivityInfluence,""""""
Agent,Agent
agent,""""""
AgentInfluence,""""""
alternateOf,Alternate
Association,Association
atLocation,Location
atTime,""""""
Attribution,Attribution
Bundle,Bundle
Collection,Collection
Communication,Communication
Delegation,Delegation
Derivation,Derivation
EmptyCollection,EmptyCollection
End,End
endedAtTime,""""""
Entity,Entity
entity,""""""
EntityInfluence,""""""
generated,""""""
generatedAtTime,""""""
Generation,Generation
hadActivity,Activity
hadGeneration,Generation
hadMember,Member
hadPlan,Plan
hadPrimarySource,PrimarySource
hadRole,Role
hadUsage,Usage
Influence,Influence
influenced,""""""
influencer,""""""
InstantaneousEvent,""""""
invalidated,""""""
invalidatedAtTime,""""""
Invalidation,Invalidation
Location,Location
Organization,Organization
Person,Person
Plan,Plan
PrimarySource,PrimarySource
qualifiedAssociation,Association
qualifiedAttribution,Attribution
qualifiedCommunication,Communication
qualifiedDelegation,Delegation
qualifiedDerivation,Derivation
qualifiedEnd,End
qualifiedGeneration,Generation
qualifiedInfluence,Influence
qualifiedInvalidation,Invalidation
qualifiedPrimarySource,PrimarySource
qualifiedQuotation,Quotation
qualifiedRevision,Revision
qualifiedStart,Start
qualifiedUsage,Usage
Quotation,Quotation
Revision,Revision
Role,Role
SoftwareAgent,SofwareAgent
specializationOf,Specialization
Start,Start
startedAtTime,""""""
type,Type
Usage,Usage
used,Usage 
value,Value
wasAssociatedWith,Association
wasAttributedTo,Attribution
wasDerivedFrom,Derivation
wasEndedBy,End
wasGeneratedBy,Generation
wasInfluencedBy,Influence
wasInformedBy,Communication
wasInvalidatedBy,Invalidation
wasQuotedFrom,Quotation
wasRevisionOf,Revision
wasStartedBy,Start
\ No newline at end of file