several changes based on feedback from James Cheney and Paul Groth
authorStephan Zednik <zednis@rpi.edu>
Thu, 08 Nov 2012 16:13:12 -0700
changeset 4667 5c2434bd74a0
parent 4666 8593b5b71cd3
child 4668 7e22a4d5efe8
several changes based on feedback from James Cheney and Paul Groth
xml/prov-xml.html
--- a/xml/prov-xml.html	Thu Nov 08 14:11:54 2012 -0700
+++ b/xml/prov-xml.html	Thu Nov 08 16:13:12 2012 -0700
@@ -49,87 +49,8 @@
 
     <script src="../model/glossary.js" class="remove"></script>
 
-<!--
-    <script class="remove">
-function insertSchema(doc, content) {
-//	return '<code class="language-xml"> ' + doc._esc(content) + '</code>';
-	return doc._esc(content);
-}
-
-function htmlEncode(value){
-  return $('<div/>').text(value).html();
-}
-
-function insertSchemaDefinition(doc, content, name) {
-
-	var xml=$.parseXML(content);
-	var segment = $(xml).find('complexType[name~="' + name + '"]')[0];
-
-	return doc._esc((new XMLSerializer()).serializeToString(segment));
-}
-
-function insertSchemaEntity(doc, content) {  return insertSchemaDefinition(doc,content,'Entity'); }
-function insertSchemaActivity(doc, content) {  return insertSchemaDefinition(doc,content,'Activity'); }
-function insertSchemaWasGeneratedBy(doc, content) {  return insertSchemaDefinition(doc,content,'WasGeneratedBy'); }
-function insertSchemaUsed(doc, content) {  return insertSchemaDefinition(doc,content,'Used'); }
-function insertSchemaWasStartedBy(doc, content) {  return insertSchemaDefinition(doc,content,'WasStartedBy'); }
-function insertSchemaWasEndedBy(doc, content) {  return insertSchemaDefinition(doc,content,'WasEndedBy'); }
-function insertSchemaWasInformedBy(doc, content) {  return insertSchemaDefinition(doc,content,'WasInformedBy'); }
-function insertSchemaWasStartedByActivity(doc, content) {  return insertSchemaDefinition(doc,content,'WasStartedByActivity'); }
-
-function insertSchemaAgent(doc, content) {  return insertSchemaDefinition(doc,content,'Agent'); }
-function insertSchemaWasAttributedTo(doc, content) {  return insertSchemaDefinition(doc,content,'WasAttributedTo'); }
-function insertSchemaWasAssociatedWith(doc, content) {  return insertSchemaDefinition(doc,content,'WasAssociatedWith'); }
-function insertSchemaActedOnBehalfOf(doc, content) {  return insertSchemaDefinition(doc,content,'ActedOnBehalfOf'); }
-
-
-function insertSchemaWasDerivedFrom(doc, content) {  return insertSchemaDefinition(doc,content,'WasDerivedFrom'); }
-function insertSchemaWasRevisionOf(doc, content) {  return insertSchemaDefinition(doc,content,'WasRevisionOf'); }
-function insertSchemaWasQuotedFrom(doc, content) {  return insertSchemaDefinition(doc,content,'WasQuotedFrom'); }
-function insertSchemaHadOriginalSource(doc, content) {  return insertSchemaDefinition(doc,content,'HadOriginalSource'); }
-function insertSchemaTracedTo(doc, content) {  return insertSchemaDefinition(doc,content,'TracedTo'); }
-
-function insertSchemaSpecializationOf(doc, content) {  return insertSchemaDefinition(doc,content,'SpecializationOf'); }
-function insertSchemaAlternateOf(doc, content) {  return insertSchemaDefinition(doc,content,'AlternateOf'); }
-
-function insertSchemaNote(doc, content) {  return insertSchemaDefinition(doc,content,'Note'); }
-function insertSchemaHasAnnotation(doc, content) {  return insertSchemaDefinition(doc,content,'HasAnnotation'); }
-
-function insertSchemaDefinitionOriginal(doc, content) {
-	// perform transformations to make it render and prettier
-
-	// NB - this is hardcoded to entity at present. The respec js doesn't appear
-	// to pass in the element that it's working with - just the entire doc,
-	// and the respec object.
-
-	var xml=$.parseXML(content);
-	var segment = $(xml).find('complexType[name~="Entity"]')[0];
-	return doc._esc((new XMLSerializer()).serializeToString(segment));
-}
-      function updateGlossaryRefs() {
-        $('.glossary-ref').each(function(index) {
-          var ref=$(this).attr('data-ref');
-          var span=$(this).attr('data-withspan')
-          $(this).removeAttr('data-withspan');
-          $(this).removeAttr('data-ref');
-
-          $('#'+ref+'.glossary').contents().clone().appendTo($(this));
-          $(this).attr('prov:hadOriginalSource',glossary_hg);
-          if (span) {
-            $(this).children('dfn').replaceWith(function(){return $('<span>').addClass('dfn').append($(this).contents())});
-          }
-        });
-      }
-      $(document).ready(function(){
-        // if glossary is in a string:
-        $('#glossary_div').html(glossary_string)
-        updateGlossaryRefs();
-      });
-
-    </script>
-    -->
-
     <!-- This is a test to see if the respec data-oninclude is working -->
+    <!--
     <script>
     function insertSchemaComplexType(doc, content, name) {    	
     	var xml = $.parseXML(content);
@@ -209,6 +130,7 @@
     function insertSchema_value(doc, content) { return insertSchemaElement(doc, content, "value"); }
     
     </script>
+    -->
 
     <script>
     $(function() {
@@ -243,65 +165,75 @@
               berjon.biblio[k] = extraReferences[k];
       };
       var extraReferences = {
+        
         "CLOCK":
          "Lamport, L. "+
          "<a href=\"http://research.microsoft.com/users/lamport/pubs/time-clocks.pdf\"><cite>Time, clocks, and the ordering of events in a distributed system</cite></a>."+
          "Communications of the ACM 21 (7): 558–565. 1978. "+
          "URL: <a href=\"http://research.microsoft.com/users/lamport/pubs/time-clocks.pdf\">http://research.microsoft.com/users/lamport/pubs/time-clocks.pdf</a> " +
          "DOI: doi:10.1145/359545.359563.",
+        
         "CSP":
          "Hoare, C. A. R. "+
          "<a href=\"http://www.usingcsp.com/cspbook.pdf\"><cite>Communicating Sequential Processes</cite></a>."+
          "Prentice-Hall. 1985"+
          "URL: <a href=\"http://www.usingcsp.com/cspbook.pdf\">http://www.usingcsp.com/cspbook.pdf</a>",
+        
         "Logic":
           "W. E. Johnson"+
           "<a href=\"http://www.ditext.com/johnson/intro-3.html\"><cite>Logic: Part III</cite></a>."+
           "1924. "+
           "URL: <a href=\"http://www.ditext.com/johnson/intro-3.html\">http://www.ditext.com/johnson/intro-3.html</a>",
+        
         "PROV-SEM":
           "James Cheney "+
           "<a href=\"http://www.w3.org/2011/prov/wiki/FormalSemanticsStrawman\"><cite>Formal Semantics Strawman</cite></a>. "+
           "2011, Work in progress. "+
           "URL: <a href=\"http://www.w3.org/2011/prov/wiki/FormalSemanticsStrawman\">http://www.w3.org/2011/prov/wiki/FormalSemanticsStrawman</a>",
-
+          
         "PROV-PRIMER":
           "Yolanda Gil and Simon Miles (eds.) Khalid Belhajjame, Helena Deus, Daniel Garijo, Graham Klyne, Paolo Missier, Stian Soiland-Reyes, and Stephan Zednik "+
           "<a href=\"http://www.w3.org/TR/prov-primer/\"><cite>Prov Model Primer</cite></a>. "+
-          "2011, Working Draft. "+
+          "2012, Working Draft. "+
           "URL: <a href=\"http://www.w3.org/TR/prov-primer/\">http://www.w3.org/TR/prov-primer/</a>",
 
         "PROV-O":
-          "Satya Sahoo and Deborah McGuinness (eds.) Khalid Belhajjame, James Cheney, Daniel Garijo, Timothy Lebo, Stian Soiland-Reyes, and Stephan Zednik "+
+          "Timothy Lebo, Satya Sahoo and Deborah McGuinness (eds.) Khalid Belhajjame, James Cheney, David Corsar, Daniel Garijo, Stian Soiland-Reyes, and Stephan Zednik "+
           "<a href=\"http://www.w3.org/TR/prov-o/\"><cite>Provenance Formal Model</cite></a>. "+
-          "2011, Working Draft. "+
+          "2012, Working Draft. "+
           "URL: <a href=\"http://www.w3.org/TR/prov-o/\">http://www.w3.org/TR/prov-o/</a>",
 
 
         "PROV-DM":
           "Luc Moreau and Paolo Missier (eds.) ... "+
           "<a href=\"http://www.w3.org/TR/prov-dm/\"><cite>PART 1: PROV-DM ...</cite></a>. "+
-          "2011, Working Draft. "+
+          "2012, Working Draft. "+
           "URL: <a href=\"http://www.w3.org/TR/prov-dm/\">http://www.w3.org/TR/prov-dm/</a>",
 
 
-        "PROV-DM-CONSTRAINTS":
-          "Luc Moreau and Paolo Missier (eds.) ... "+
-          "<a href=\"http://www.w3.org/TR/prov-dm-constraints/\"><cite>PROV-DM Constraints</cite></a>. "+
-          "2011, Working Draft. "+
-          "URL: <a href=\"http://www.w3.org/TR/prov-dm-constraints/\">http://www.w3.org/TR/prov-dm-constraints/</a>",
+        "PROV-CONSTRAINTS":
+          "James Cheney, Paolo Missier, and Luc Moreau (eds.) "+
+          "<a href=\"http://www.w3.org/TR/prov-constraints/\"><cite>Constraints of the PROV Data Model</cite></a>. "+
+          "2012, Working Draft. "+
+          "URL: <a href=\"http://www.w3.org/TR/prov-constraints/\">http://www.w3.org/TR/prov-constraints/</a>",
 
         "PROV-N":
-          "Luc Moreau and Paolo Missier (eds.) ... "+
-          "<a href=\"http://www.w3.org/TR/prov-n/\"><cite>PROV-N ....</cite></a>. "+
-          "2011, Working Draft. "+
+          "Luc Moreau and Paolo Missier (eds.) James Cheney, Stian Soiland-Reyes "+
+          "<a href=\"http://www.w3.org/TR/prov-n/\"><cite>PROV-N: The Provenance Notation</cite></a>. "+
+          "2012, Working Draft. "+
           "URL: <a href=\"http://www.w3.org/TR/prov-n/\">http://www.w3.org/TR/prov-n/</a>",
-
+          
         "PROV-AQ":
           "Graham Klyne and Paul Groth (eds.) Luc Moreau, Olaf Hartig, Yogesh Simmhan, James Meyers, Timothy Lebo, Khalid Belhajjame, and Simon Miles "+
           "<a href=\"http://www.w3.org/TR/prov-aq/\"><cite>Provenance Access and Query</cite></a>. "+
-          "2011, Working Draft. "+
+          "2012, Working Draft. "+
           "URL: <a href=\"http://www.w3.org/TR/prov-aq/\">http://www.w3.org/TR/prov-aq/</a>",
+        
+        "Mappings":
+          "Satya Sahoo and Paul Groth and Olaf Hartig and Simon Miles and Sam Coppens and James Myers and Yolanda Gil and Luc Moreau and Jun Zhao and Michael Panzer and Daniel Garijo "+
+          "<a href=\"http://www.w3.org/2005/Incubator/prov/wiki/Provenance_Vocabulary_Mappings\"><cite>Provenance Vocabulary Mappings</cite></a>. "+
+          "August 2010 "+
+          "URL: <a href=\"http://www.w3.org/2005/Incubator/prov/wiki/Provenance_Vocabulary_Mappings\">http://www.w3.org/2005/Incubator/prov/wiki/Provenance_Vocabulary_Mappings</a>",
       };
       var respecConfig = {
           // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
@@ -355,9 +287,11 @@
           // This is optional, uncomment if you have authors as well as editors.
           // only "name" is required. Same format as editors.
  
-          //  authors:  [
-          //      {  },
-          //  ],
+          authors:  [
+                { name: "Luc Moreau",
+                	url: "http://www.ecs.soton.ac.uk/~lavm/",
+                	company: "University of Southampton" },
+            ],
           
           // name of the WG
           wg:           "Provenance Working Group",
@@ -386,49 +320,32 @@
 
 <section id="abstract">
 <p>
-Provenance is information about entities, activities, and people
-involved in producing a piece of data or thing, which can be used
- to form assessments about its quality, reliability or trustworthiness.
-PROV-DM is the conceptual data model that forms a basis for the W3C
-provenance (PROV) family of specifications.
-PROV-DM distinguishes core structures, forming the essence of provenance information, from
-extended structures catering for more specific uses of provenance. 
-PROV-DM is organized in six components, respectively dealing with: 
-(1) entities and activities, and the time at which they were created, used, or ended;
-(2) derivations of entities from entities;
-(3) agents bearing responsibility for entities that were generated and activities that happened;
-(4) a notion of bundle, a mechanism to support provenance of provenance; 
-(5) properties to link entities that refer to the same thing; and,
-(6) collections forming a logical structure for its members.
+Provenance is information about entities, activities, and people involved in producing a piece of data or thing, which can be used to form assessments about its quality, reliability or trustworthiness. PROV-DM is the conceptual data model that forms a basis for the W3C provenance (PROV) family of specifications. It defines a concepts for expressing provenance information enabling interchange. This document introduces an XML schema for the PROV data model (PROV-DM), allowing instances of the PROV data model to be serialized in XML.
 </p>
-
-<p>This document introduces an XML schema for the PROV data model (PROV-DM),
-allowing instances of the PROV data model to be serialized in
-XML.</p>
 </section>  <!-- end abstract -->
 
 <section id="sotd">
+
 <h4>PROV Family of Specifications</h4>
-This document is part of the PROV family of specifications, a set of specifications aiming to define the various aspects that are necessary to achieve the vision of inter-operable
-interchange of provenance information in heterogeneous environments such as the Web.  The specifications are as follows.
+This document is part of the PROV family of specifications, a set of specifications defining various aspects that are necessary to achieve the vision of inter-operable
+interchange of provenance information in heterogeneous environments such as the Web.  The specifications are:
 <ul>
-<li> PROV-DM, the PROV data model for provenance,</li>
-<li> PROV-DM-CONSTRAINTS, a set of constraints applying to the PROV data model,</li>
-<li> PROV-N, a notation for provenance aimed at human consumption,</li>
-<li> PROV-O, the PROV ontology, an OWL-RL ontology allowing the mapping of PROV to RDF;</li>
-<li> PROV-AQ, the mechanisms for accessing and querying provenance; </li>
-<li> PROV-PRIMER, a primer for the PROV data model,</li>
-<li> PROV-SEM, a formal semantics for the PROV data model.</li>
-<li> PROV-XML, an XML schema for the PROV data model (this document).</li>
+<li> <a href="http://www.w3.org/TR/prov-dm/">PROV-DM</a>, the PROV data model for provenance [[PROV-DM]];</li>
+<li> <a href="http://www.w3.org/TR/prov-constraints/">PROV-CONSTRAINTS</a>, a set of constraints applying to the PROV data model [[PROV-CONSTRAINTS]];</li>
+<li> <a href="http://www.w3.org/TR/prov-n/">PROV-N</a>, a notation for provenance aimed at human consumption [[PROV-N]];</li>
+<li> <a href="http://www.w3.org/TR/prov-o/">PROV-O</a>, the PROV ontology, an OWL2 ontology allowing the mapping of PROV to RDF [[PROV-O]];</li>
+<li> <a href="http://www.w3.org/TR/prov-aq/">PROV-AQ</a>, the mechanisms for accessing and querying provenance [[PROV-AQ]]; </li>
+<li> <a href="http://www.w3.org/TR/prov-primer/">PROV-PRIMER</a>, a primer for the PROV data model [[PROV-PRIMER]].</li>
+<li> <a href="http://www.w3.org/TR/prov-xml/">PROV-XML</a>, an XML schema for the PROV data model (this document).</li>
 </ul>
 <h4>How to read the PROV Family of Specifications</h4>
 <ul>
-<li>The primer is the entry point to PROV offering a pedagogical presentation of the provenance model.</li>
-<li>The Linked Data and Semantic Web community should focus on PROV-O defining PROV classes and properties specified in an OWL-RL ontology. For further details, PROV-DM and PROV-DM-CONSTRAINTS specify the constraints applicable to the data model, and its interpretation. PROV-SEM provides a mathematical semantics.</li>
-<li>The XML community should focus on PROV-XML defining an XML schema for PROV-DM. Further details can also be found in PROV-DM, PROV-DM-CONSTRAINTS, and PROV-SEM.</li>
-<li>Developers seeking to retrieve or publish provenance should focus of PROV-AQ.</li>
+<li>The primer is the entry point to PROV offering an introduction to the provenance model.</li>
+<li>The Linked Data and Semantic Web community should focus on PROV-O defining PROV classes and properties specified in an OWL2 ontology. For further details, PROV-DM and PROV-CONSTRAINTS specify the constraints applicable to the data model, and its interpretation. </li>
+<li>The XML community should focus on PROV-XML (this document) defining an XML schema for PROV-DM. Further details can also be found in PROV-DM, PROV-DM-CONSTRAINTS, and PROV-SEM.</li>
+<li>Developers seeking to retrieve or publish provenance should focus on PROV-AQ.</li>
 <li>Readers seeking to implement other PROV serializations
-should focus on PROV-DM and PROV-DM-CONSTRAINTS.  PROV-O, PROV-N, PROV-XML offer examples of mapping to RDF, text, and XML, respectively.</li>
+should focus on PROV-DM and PROV-CONSTRAINTS.  PROV-O, PROV-N, and PROV-XML offer examples of mapping to RDF, text, and XML, respectively.</li>
 </ul>
 </section> <!-- end sotd -->
 
@@ -436,50 +353,37 @@
 <h2>Introduction</h2> 
 
 <p> 
-For the purpose of this specification, <dfn>provenance</dfn> is defined as a record that describes the people,
-institutions, entities, and activities involved in producing,
-influencing, or delivering a piece of data or a thing.
-In particular, the provenance of information is crucial in deciding
-whether information is to be trusted, how it should be integrated with
-other diverse information sources, and how to give credit to its
-originators when reusing it.  In an open and inclusive environment
-such as the Web, where users find information that is often contradictory or
-questionable, provenance can help those users to make trust judgements.
+For the purpose of this specification, <dfn>provenance</dfn> is defined as a record that describes the people, institutions, entities, and activities involved in producing, influencing, or delivering a piece of data or a thing.  In particular, the provenance of information is crucial in deciding whether information is to be trusted, how it should be integrated with other diverse information sources, and how to give credit to its originators when reusing it.  In an open and inclusive environment such as the Web, where users find information that is often contradictory or questionable, provenance can help those users to make trust judgements.
 </p>
 
-<p>A set of specifications, referred to as the PROV family of specifications, define the various aspects
-that are necessary to achieve this vision in an interoperable
-way:</p>
-<ul>
-<li>A data model for provenance, which is presented in three documents:
+<p>
+The PROV data model, PROV-DM, presents a generic data model for provenance that allows domain and application specific representations of provenance to be translated into such a data model and <em>interchanged</em> between systems.  Thus, heterogeneous systems can export their native provenance into such a core data model, and applications that need to make sense of provenance can then import it,
+process it, and reason over it.</p>
+
+<p>
+The PROV data model distinguishes <em>core structures</em> from <em>extended structures</em>: core structures form the essence of provenance information, and are commonly found in various domain-specific vocabularies that deal with provenance or similar kinds of information [[Mappings]].  Extended structures enhance and refine core structures with more expressive capabilities to cater for more advanced uses of provenance.  The PROV data model, comprising both core and extended structures, is a domain-agnostic model, but with clear extensibility points allowing further domain-specific and application-specific extensions to be defined.
+</p>
+
+<p>
+The PROV data model has a modular design and is structured according to six components covering various facets of provenance:</p>
 <ul>
-<li> PROV-DM (part I): the provenance data model itself, expressed in natural language (this document);
-<li> PROV-DM-CONSTRAINTS (part II): constraints underpinning the data model [[PROV-DM-CONSTRAINTS]];
-<li> PROV-N (part III): a notation to express instances of that data model for human consumption [[PROV-N]];
-</ul> 
-</li>
-<li>PROV-O: the PROV ontology, an OWL-RL ontology allowing the mapping of PROV to RDF [[PROV-O]];</li>
-<li>PROV-AQ: the mechanisms for accessing and querying provenance [[PROV-AQ]];</li>
-<li>PROV-PRIMER: a primer for the PROV approach [[PROV-PRIMER]];</li>
-<li>PROV-SEM: semantics of the PROV-DM data model [[PROV-SEM]];</li>
-<li>PROV-XML: an XML schema for the PROV data model.</li>
+<li> component 1: entities and activities, and the time at which they were created, used, or ended;
+<li> component 2: derivations of entities from others;
+<li> component 3: agents bearing responsibility for entities that were generated and activities that happened;
+<li> component 4: bundles, a mechanism to support provenance of provenance;
+<li> component 5: properties to link entities that refer to a same thing;
+<li> component 6: collections forming a logical structure for its members.
 </ul>
 
 <p>
-  PROV-DM is a domain-agnostic model, but with clear extensibility points allowing further domain-specific and
-application-specific extensions to be defined.
-The PROV data model is structured according to six components covering various aspects of provenance:</p>
-<ol>
-<li> component 1: entities and activities, and the time at which they were created, used, or ended;
-<li> component 2: agents bearing responsibility for entities that were generated and actities that happened;
-<li> component 3: derivations between entities;
-<li> component 4: properties to link entities that refer to a same thing;
-<li> component 5: collections of entities, whose provenance can itself be tracked;
-<li> component 6: a simple annotation mechanism.
-</ol>
+This specification goal is to provide a succinct definition of the XML form of PROV-DM, thus, we refer the reader to the PROV-DM to provide overall justification and context to the definitions presented here.  
+</p>
 
+<!--
 <section id="structure-of-this-document"> 
 <h3>Structure of this Document</h3>
+<p><a href="#schema-components">Section 2</a> provides an overview of the PROV XML Schema elements and types</p>
+<p><a href="#prov-xml-schema">Appendix A</a> contains the full PROV-XML Schema</p>
 </section> <!-- end structure-of-this-document -->
 
 <section id="prov-namespace">
@@ -724,12 +628,14 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:tr="http://example.com/ns/tr#"&gt;
 
   <b>&lt;prov:entity prov:id="tr:WD-prov-dm-20111215"&gt;
-    &lt;prov:type&gt;document&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;document&lt;/prov:type&gt;
     &lt;ex:version&gt;2&lt;/ex:version&gt;
   &lt;/prov:entity&gt;</b>
 
@@ -760,13 +666,15 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   <b>&lt;prov:activity prov:id="a1"&gt;
     &lt;prov:startTime&gt;2011-11-16T16:05:00&lt;/prov:startTime&gt;
     &lt;prov:endTime&gt;2011-11-16T16:06:00&lt;/prov:endTime&gt;
-    &lt;prov:type&gt;ex:edit&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;ex:edit&lt;/prov:type&gt;
     &lt;ex:host&gt;server.example.org&lt;/ex:host&gt;
   &lt;/prov:activity&gt;</b>
 
@@ -899,14 +807,17 @@
 &lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="wasInformedBy" type="prov:Communication"/&gt;
 </pre>
 <pre class="example">
-&lt;prov:document xmlns:prov="http://www.w3.org/ns/prov#"&gt;
+&lt;prov:document 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:prov="http://www.w3.org/ns/prov#"&gt;
 
   &lt;prov:activity prov:id="a1"&gt;
-    &lt;prov:type&gt;traffic regulations enforcing&lt;prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;traffic regulations enforcing&lt;prov:type&gt;
   &lt;/prov:activity&gt;
 
   &lt;prov:activity prov:id="a2"&gt;
-    &lt;prov:type>fine paying, check writing, and mailing&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;fine paying, check writing, and mailing&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   <b>&lt;prov:wasInformedBy&gt;
@@ -944,15 +855,17 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity prov:id="e1"&gt;
-    &lt;prov:type&gt;email message&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;email message&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:activity prov:id="a1"&gt;
-    &lt;prov:type&gt;Discuss&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;Discuss&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   <b>&lt;prov:wasStartedBy&gt;
@@ -967,7 +880,7 @@
   &lt;/prov:used&gt;
 
   &lt;prov:activity prov:id="a0"&gt;
-    &lt;prov:type&gt;Write&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;Write&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   &lt;prov:wasGeneratedBy&gt;
@@ -1018,15 +931,17 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity prov:id="e1"&gt;
-    &lt;prov:type&gt;approval document&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;approval document&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:activity prov:id="a1"&gt;
-    &lt;prov:type&gt;Editing&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;Editing&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   <b>&lt;prov:wasEndedBy&gt;
@@ -1120,7 +1035,10 @@
 &lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="wasDerivedFrom" type="prov:Derivation"/&gt;
 </pre>
 <pre class="example">
-&lt;prov:document xmlns:prov="http://www.w3.org/ns/prov#"&gt;
+&lt;prov:document 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:prov="http://www.w3.org/ns/prov#"&gt;
 
   &lt;prov:entity prov:id="e1"/&gt;
 
@@ -1134,7 +1052,7 @@
   <b>&lt;prov:wasDerivedFrom&gt;
     &lt;prov:generatedEntity prov:ref="e2"/&gt;
     &lt;prov:usedEntity prov:ref="e1"/&gt;
-    &lt;prov:type&gt;physical transform&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;physical transform&lt;/prov:type&gt;
   &lt;/prov:wasDerivedFrom&gt;</b>
 
 &lt;/prov:document&gt;
@@ -1147,22 +1065,24 @@
 <p>To specialize a Derivation relationship as a Revision relationship, include a <code>prov:type</code> with the value "prov:Revision".</p>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:rec54="http://www.w3.org/2001/02pd/rec54#"
     xmlns:tr="http://example.com/ns/tr#"&gt;
 
   &lt;prov:entity prov:id="tr:WD-prov-dm-20111215"&gt;
-    &lt;prov:type&gt;rec54:WD&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;rec54:WD&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:entity prov:id="tr:WD-prov-dm-20111018"&gt;
-    &lt;prov:type&gt;rec54:WD&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;rec54:WD&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:wasDerivedFrom&gt;
     &lt;prov:generatedEntity prov:ref="tr:WD-prov-dm-20111215"/&gt;
     &lt;prov:usedEntity prov:ref="tr:WD-prov-dm-20111018"/&gt;
-    <b>&lt;prov:type&gt;prov:Revision&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;prov:Revision&lt;/prov:type&gt;</b>
   &lt;/prov:wasDerivedFrom&gt;
 
 &lt;/prov:document&gt;
@@ -1175,6 +1095,8 @@
 <p>To specialize a Derivation relationship as a Quotation relationship, include a <code>prov:type</code> with the value "prov:Quotation".</p>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:wp="http://thinklinks.wordpress.com/2012/03/07/"
     xmlns:ex="http://example.com/ns/ex#"
@@ -1191,7 +1113,7 @@
   &lt;prov:wasDerivedFrom&gt;
     &lt;prov:generatedEntity prov:ref="dm:gl-dagstuhl"/&gt;
     &lt;prov:usedEntity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/&gt;
-    <b>&lt;prov:type&gt;prov:Quotation&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;prov:Quotation&lt;/prov:type&gt;</b>
   &lt;/prov:wasDerivedFrom&gt;
 
   &lt;prov:wasAttributedTo&gt;
@@ -1214,21 +1136,23 @@
 <p>To specialize a Derivation relationship as a Primary Source relationship, include a <code>prov:type</code> with the value "prov:PrimarySource".</p>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity prov:id="ex:la-campagne-de-Russie-1812-1813"&gt;
-    &lt;prov:type&gt;map&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;map&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:entity prov:id="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII"&gt;
-    &lt;prov:type&gt;journal&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;journal&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:wasDerivedFrom&gt;
     &lt;prov:generatedEntity prov:ref="ex:la-campagne-de-Russie-1812-1813"/&gt;
     &lt;prov:usedEntity prov:ref="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII"/&gt;
-    <b>&lt;prov:type&gt;prov:PrimarySource&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;prov:PrimarySource&lt;/prov:type&gt;</b>
   &lt;/prov:wasDerivedFrom&gt;
 
 &lt;/prov:document&gt;
@@ -1240,7 +1164,7 @@
 <section id="component3">
 <h3>Component 3: Agents, Responsibility, and Influence</h3>
 
-<p>The second component of PROV-DM, depicted in  <a href="#figure-component3">Figure 7</a>, is concerned with <a title="agent">agents</a> and the relations WasAttributedTo
+<p>The third component of PROV-DM, depicted in  <a href="#figure-component3">Figure 7</a>, is concerned with <a title="agent">agents</a> and the relations WasAttributedTo
 (<a>Attribution</a>), WasAssociatedWith (<a>Association</a>), ActedOnBehalfOf (<a>Delegation</a>), relating agents to entities, activities, and agents, respectively.</p>
 
 <section id="term-Agent">
@@ -1264,11 +1188,13 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   <b>&lt;prov:agent prov:id="e1"&gt;
-    &lt;prov:type&gt;prov:Person&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Person&lt;/prov:type&gt;
     &lt;ex:name&gt;Alice&lt;/ex:name&gt;
     &lt;ex:employee&gt;1234&lt;/ex:employee&gt;
   &lt;/prov:agent&gt;</b>
@@ -1299,33 +1225,35 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:tr="http://example.com/ns/tr#"
     xmlns:rec54="http://example.com/ns/rec54#"&gt;
 
   &lt;prov:agent prov:id="ex:Paolo"&gt;
-    &lt;prov:type>prov:Person&lt;/prov:type&gt;
+    &lt;prov:typexsi:type="xsd:QName"&gt;prov:Person&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:agent prov:id="ex:Simon"&gt;
-    &lt;prov:type>prov:Person&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Person&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:entity prov:id="tr:WD-prov-dm-20111215"&gt;
-    &lt;prov:type>rec54:WD&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;rec54:WD&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   <b>&lt;prov:wasAttributedTo&gt;
     &lt;prov:entity prov:ref="rec54:WD"/&gt;
     &lt;prov:agent prov:ref="ex:Paolo"/&gt;
-    &lt;prov:type&gt;editorship&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;editorship&lt;/prov:type&gt;
   &lt;/prov:wasAttributedTo&gt;</b>
 
   <b>&lt;prov:wasAttributedTo&gt;
     &lt;prov:entity prov:ref="rec54:WD"/&gt;
     &lt;prov:agent prov:ref="ex:Simon"/&gt;
-    &lt;prov:type>authorship&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;authorship&lt;/prov:type&gt;
   &lt;/prov:wasAttributedTo&gt;</b>
 
 &lt;/prov:document&gt;
@@ -1356,26 +1284,27 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:activity prov:id="a"&gt;
-    &lt;prov:type&gt;workflow execution&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;workflow execution&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   &lt;prov:agent prov:id="ag1"&gt;
-    &lt;prov:type&gt;operator&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;operator&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:agent prov:id="ag2"&gt;
-    &lt;prov:type&gt;designator&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;designator&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   <b>&lt;prov:wasAssociatedWith&gt;
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag1"/&gt;
-    &lt;prov:role&gt;loggedInUser&lt;/prov:role&gt;
+    &lt;prov:role xsi:type="xsd:QName"&gt;loggedInUser&lt;/prov:role&gt;
     &lt;ex:how&gt;webapp&lt;/ex:how&gt;
   &lt;/prov:wasAssociatedWith&gt;</b>
 
@@ -1383,14 +1312,14 @@
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag2"/&gt;
     &lt;prov:plan prov:ref="ex:wf"/&gt;
-    &lt;prov:role&gt;designer&lt;/prov:role&gt;
+    &lt;prov:role xsi:type="xsd:QName"&gt;designer&lt;/prov:role&gt;
     &lt;ex:content&gt;project1&lt;/ex:content&gt;
   &lt;/prov:wasAssociatedWith&gt;</b>
 
   &lt;prov:entity prov:id="ex:wf"&gt;
-    &lt;prov:type&gt;prov:Plan&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Plan&lt;/prov:type&gt;
     &lt;ex:label&gt;Workflow 1&lt;/ex:label&gt;
-    &lt;prov:location&gt;http://example.org/workflow1.bpel&lt;/prov:location&gt;
+    &lt;prov:location xsi:type="xsd:anyURI"&gt;http://example.org/workflow1.bpel&lt;/prov:location&gt;
   &lt;/prov:entity&gt;
 
 &lt;/prov:document&gt;
@@ -1419,34 +1348,37 @@
 &lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="actedOnBehalfOf" type="prov:Delegation"/&gt;
 </pre>
 <pre class="example">
-&lt;prov:document xmlns:prov="http://www.w3.org/ns/prov#"&gt;
+&lt;prov:document 
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:prov="http://www.w3.org/ns/prov#"&gt;
 
   &lt;prov:activity prov:id="a"&gt;
-    &lt;prov:type&gt;workflow&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;workflow&lt;/prov:type&gt;
   &lt;/prov:activity&gt;
 
   &lt;prov:agent prov:id="ag1"&gt;
-    &lt;prov:type&gt;programmer&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;programmer&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:agent prov:id="ag2"&gt;
-    &lt;prov:type&gt;researcher&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;researcher&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:agent prov:id="ag3"&gt;
-    &lt;prov:type&gt;funder&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;funder&lt;/prov:type&gt;
   &lt;/prov:agent&gt;
 
   &lt;prov:wasAssociatedWith&gt;
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag1"/&gt;
-    &lt;prov:role&gt;loggedInUser&lt;/prov:role&gt;
+    &lt;prov:role xsi:type="xsd:QName"&gt;loggedInUser&lt;/prov:role&gt;
   &lt;/prov:wasAssociatedWith&gt;
 
   &lt;prov:wasAssociatedWith&gt;
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag2"/&gt;
-  &lt;/prov:wasAssociatedWithv
+  &lt;/prov:wasAssociatedWith&gt;
 
   &lt;prov:wasAssociatedWith&gt;
     &lt;prov:activity prov:ref="a"/&gt;
@@ -1457,14 +1389,14 @@
     &lt;prov:delegate prov:ref="ag1"/&gt;
     &lt;prov:responsible prov:ref="ag2"/&gt;
     &lt;prov:activity prov:ref="a"/&gt;
-    &lt;prov:type&gt;line-management&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;line-management&lt;/prov:type&gt;
   &lt;/prov:actedOnBehalfOf&gt;</b>
 
   <b>&lt;prov:actedOnBehalfOf&gt;
     &lt;prov:delegate prov:ref="ag2"/&gt;
     &lt;prov:responsible prov:ref="ag3"/&gt;
     &lt;prov:activity prov:ref="a"/&gt;
-    &lt;prov:type&gt;contract&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;contract&lt;/prov:type&gt;
   &lt;/prov:actedOnBehalfOf&gt;</b>
 
 &lt;/prov:document&gt;
@@ -1569,16 +1501,18 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:bbc="http://www.bbc.co.uk/news"
     xmlns:bbcmobile="http://www.bbc.co.uk/news/mobile"&gt;
 
   &lt;prov:entity prov:id="bbc:science-environment-17526723"&gt;
-    &lt;prov:type&gt;a news item for desktop&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;a news item for desktop&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:entity prov:id="bbcmobile:science-environment-17526723"&gt;
-    &lt;prov:type&gt;a news item for mobile devices&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:string"&gt;a news item for mobile devices&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   <b>&lt;prov:alternateOf&gt;
@@ -1607,6 +1541,8 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:perf="http://example.com/ns/perf#"
@@ -1621,7 +1557,7 @@
     &lt;prov:wasAssociatedWith&gt;
       &lt;prov:activity prov:ref="ex:a1" /&gt;
       &lt;prov:agent prov:ref="ex:Bob" /&gt;
-      &lt;prov:role&gt;controller&lt;/prov:role&gt;
+      &lt;prov:role xsi:type="xsd:QName"&gt;controller&lt;/prov:role&gt;
     &lt;/prov:wasAssociatedWith&gt;
   &lt;/prov:bundle&gt;
 
@@ -1634,7 +1570,7 @@
     &lt;prov:wasAssociatedWith&gt;
       &lt;prov:activity prov:ref="ex:a2" /&gt;
       &lt;prov:agent prov:ref="ex:Bob" /&gt;
-      &lt;prov:role&gt;controller&lt;/prov:role&gt;
+      &lt;prov:role xsi:type="xsd:QName"&gt;controller&lt;/prov:role&gt;
     &lt;/prov:wasAssociatedWith&gt;
   &lt;/prov:bundle&gt;
 
@@ -1679,17 +1615,19 @@
 <p>An EmptyCollection is asserted with the <code>prov:type</code> "prov:EmptyCollection" and denotes a Collection with no members.</p>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;!-- c0 is an empty collection --&gt;
   <b>&lt;prov:entity prov:id="c0"&gt;
-    &lt;prov:type>prov:EmptyCollection&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:EmptyCollection&lt;/prov:type&gt;
   &lt;/prov:entity&gt;</b>
 
   &lt;!-- c1 is a collection, with unknown content --&gt;
   <b>&lt;prov:entity prov:id="c1"&gt;
-    &lt;prov:type&gt;prov:Collection&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Collection&lt;/prov:type&gt;
   &lt;/prov:entity&gt;</b>
 
 &lt;/prov:document&gt;
@@ -1712,6 +1650,8 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"&gt;
 
   &lt;prov:entity prov:id="e0"/&gt;
@@ -1719,7 +1659,7 @@
   &lt;prov:entity prov:id="e2"/&gt;
 
   &lt;prov:entity prov:id="c"&gt;
-    &lt;prov:type&gt;prov:Collection&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Collection&lt;/prov:type&gt;
   &lt;/prov:entity&gt;
 
   <b>&lt;prov:hadMember&gt;
@@ -1746,11 +1686,13 @@
 <p>The identifier attribute is used to identify instances of PROV types or relations.</p>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#" 
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity <b>prov:id="tr:WD-prov-dm-20111215"</b>&gt;
-    &lt;prov:type&gt;document&lt;/prov:type&gt;
+    &lt;prov:type xsi:type="xsd:Qname"&gt;document&lt;/prov:type&gt;
     &lt;ex:version&gt;2&lt;/ex:version&gt;
   &lt;/prov:entity&gt;
 
@@ -1790,17 +1732,19 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity prov:id="ex:MonaLisa"&gt;
-    &lt;prov:type&gt;StillImage&lt;/prov:type&gt;
-    <b>&lt;prov:location&gt;Le Louvre, Paris&lt;/prov:location&gt;</b>
+    &lt;prov:type xsi:type="xsd:QName"&gt;StillImage&lt;/prov:type&gt;
+    <b>&lt;prov:location xsi:type="xsd:string"&gt;Le Louvre, Paris&lt;/prov:location&gt;</b>
   &lt;/prov:entity&gt;
 
   &lt;prov:entity prov:id="ex:cell"&gt;
-    <b>&lt;prov:location&gt;(5,5)&lt;/prov:location&gt;</b>
-    &lt;prov:value&gt;10&lt;/prov:value&gt;
+    <b>&lt;prov:location xsi:type="xsd:string"&gt;(5,5)&lt;/prov:location&gt;</b>
+    &lt;prov:value xsi:type="xsd:integer"&gt;10&lt;/prov:value&gt;
   &lt;/prov:entity&gt;
 
 &lt;/prov:document&gt;
@@ -1815,14 +1759,15 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:wasAssociatedWith&gt;
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag1"/&gt;
-    <b>&lt;prov:role&gt;loggedInUser&lt;/prov:role&gt;</b>
+    <b>&lt;prov:role xsi:type="xsd:QName"&gt;loggedInUser&lt;/prov:role&gt;</b>
     &lt;ex:how&gt;webapp&lt;/ex:how&gt;
   &lt;/prov:wasAssociatedWith&gt;
 
@@ -1830,7 +1775,7 @@
     &lt;prov:activity prov:ref="a"/&gt;
     &lt;prov:agent prov:ref="ag2"/&gt;
     &lt;prov:plan prov:ref="ex:wf"/&gt;
-    <b>&lt;prov:role&gt;designer&lt;/prov:role&gt;</b>
+    <b>&lt;prov:role xsi:type="xsd:QName"&gt;designer&lt;/prov:role&gt;</b>
     &lt;ex:content&gt;project1&lt;/ex:content&gt;
   &lt;/prov:wasAssociatedWith&gt;
 
@@ -1846,17 +1791,19 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:tr="http://example.com/ns/tr#"&gt;
 
   &lt;prov:entity prov:id="tr:WD-prov-dm-20111215"&gt;
-    <b>&lt;prov:type&gt;document&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;document&lt;/prov:type&gt;</b>
     &lt;ex:version&gt;2&lt;/ex:version&gt;
   &lt;/prov:entity&gt;
 
   &lt;prov:agent prov:id="e1"&gt;
-    <b>&lt;prov:type&gt;prov:Person&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;prov:Person&lt;/prov:type&gt;</b>
     &lt;ex:name&gt;Alice&lt;/ex:name&gt;
     &lt;ex:employee&gt;1234&lt;/ex:employee&gt;
   &lt;/prov:agent&gt;
@@ -1864,7 +1811,7 @@
   &lt;prov:activity prov:id="a1"&gt;
     &lt;prov:startTime&gt;2011-11-16T16:05:00&lt;/prov:startTime&gt;
     &lt;prov:endTime&gt;2011-11-16T16:06:00&lt;/prov:endTime&gt;
-    <b>&lt;prov:type&gt;ex:edit&lt;/prov:type&gt;</b>
+    <b>&lt;prov:type xsi:type="xsd:QName"&gt;ex:edit&lt;/prov:type&gt;</b>
     &lt;ex:host&gt;server.example.org&lt;/ex:host&gt;
   &lt;/prov:activity&gt;
 
@@ -1880,15 +1827,17 @@
 </pre>
 <pre class="example">
 &lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"&gt;
 
   &lt;prov:entity prov:id="ex:in"&gt;
-    <b>&lt;prov:value&gt;abcd&lt;/prov:value&gt;</b>
+    <b>&lt;prov:value xsi:type="xsd:string"&gt;abcd&lt;/prov:value&gt;</b>
   &lt;/prov:entity&gt;
 
   &lt;prov:entity prov:id="ex:out"&gt;
-    <b>&lt;prov:value&gt;4&lt;/prov:value&gt;</b>
+    <b>&lt;prov:value xsi:type="xsd:integer"&gt;4&lt;/prov:value&gt;</b>
   &lt;/prov:entity&gt;
 
 &lt;/prov:document&gt;
@@ -1940,7 +1889,7 @@
 
 
 <!-- Should this be folded or hid in some way until the user asks to see it? -->
-<section class="appendix"> 
+<section class="appendix" id="prov-xml-schema"> 
       <h2>Full XML Schema</h2> 
 		<pre class="full-schema">
 &lt;?xml version="1.0" encoding="utf-8"?&gt;