removed mentionOf from examples, schema, and Note HTML
authorStephan Zednik <zednis@rpi.edu>
Mon, 12 Nov 2012 16:25:25 -0700
changeset 4760 5515c5bcd61c
parent 4759 d1a3461528e2
child 4761 cb75358697a9
removed mentionOf from examples, schema, and Note HTML
examples/eg-40-xml-examples-by-term/xml/Mention_45.xml
examples/eg-40-xml-examples-by-term/xml/Mention_46.xml
xml/prov-xml.html
xml/schema/prov.xsd
--- a/examples/eg-40-xml-examples-by-term/xml/Mention_45.xml	Mon Nov 12 17:08:22 2012 -0500
+++ b/examples/eg-40-xml-examples-by-term/xml/Mention_45.xml	Mon Nov 12 16:25:25 2012 -0700
@@ -10,6 +10,7 @@
     xmlns:perf="http://example.com/ns/perf#"
     xmlns:tool="http://example.com/ns/tool#">
   
+<!--
   <prov:bundle prov:id="ex:run1">
     <prov:activity prov:id="ex:a1">
       <prov:startTime>2011-11-16T16:00:00</prov:startTime>
@@ -58,4 +59,5 @@
     </prov:mentionOf>
   </prov:bundle>
 
+-->
 </prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Mention_46.xml	Mon Nov 12 17:08:22 2012 -0500
+++ b/examples/eg-40-xml-examples-by-term/xml/Mention_46.xml	Mon Nov 12 16:25:25 2012 -0700
@@ -11,6 +11,7 @@
     xmlns:viz="http://example.com/ns/viz#"
     xmlns:obs="http://example.com/ns/obs#">
 
+<!--
   <prov:bundle prov:id="obs:bundle1">
     <prov:entity prov:id="ex:report1">
       <prov:type xsi:type="xsd:QName">report</prov:type>
@@ -80,4 +81,5 @@
 
   </prov:bundle>
 
+-->
 </prov:document>
--- a/xml/prov-xml.html	Mon Nov 12 17:08:22 2012 -0500
+++ b/xml/prov-xml.html	Mon Nov 12 16:25:25 2012 -0700
@@ -40,97 +40,11 @@
 		
 	</style>
 
-	<!-- TODO, pull down respec.js and fix status=0 bug -->
-    <!--<script type="text/javascript" src="ReSpec.js/js/respec.js" class="remove"></script>-->
     <script src="http://dev.w3.org/2009/dap/ReSpec.js/js/respec.js" class="remove"></script>
-
     <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="../model/glossary.js" class="remove"></script>
 
-    <!-- This is a test to see if the respec data-oninclude is working -->
-    <!--
-    <script>
-    function insertSchemaComplexType(doc, content, name) {    	
-    	var xml = $.parseXML(content);
-    	var segment = $(xml).find('complexType[name~="' + name + '"]')[0];
-    	return "<pre>"+doc._esc((new XMLSerializer()).serializeToString(segment))+"</pre>";
-    }
-    
-    function insertSchemaElement(doc, content, name) {    	
-    	var xml = $.parseXML(content);
-    	var segment = $(xml).find('element[name~="' + name + '"]').not('[type*="Ref"]')[0];
-    	return "<pre>"+doc._esc((new XMLSerializer()).serializeToString(segment))+"</pre>";
-    }
-    
-    function formatExample(doc, content) {
-	    var xml = $.parseXML(content);
-	    return "<pre>"+doc._esc((new XMLSerializer()).serializeToString(xml))+"</pre>";
-    }
-    
-    function insertSchema_Entity(doc, content) { return insertSchemaComplexType(doc, content, "Entity"); }
-    function insertSchema_entity(doc, content) { return insertSchemaElement(doc, content, "entity"); }
-    
-    function insertSchema_Activity(doc, content) { return insertSchemaComplexType(doc, content, "Activity"); }
-    function insertSchema_activity(doc, content) { return insertSchemaElement(doc, content, "activity"); }
-    
-    function insertSchema_Agent(doc, content) { return insertSchemaComplexType(doc, content, "Agent"); }
-    function insertSchema_agent(doc, content) { return insertSchemaElement(doc, content, "agent"); }
-    
-    function insertSchema_Generation(doc, content) { return insertSchemaComplexType(doc, content, "Generation"); }
-    function insertSchema_wasGeneratedBy(doc, content) { return insertSchemaElement(doc, content, "wasGeneratedBy"); }
-    
-    function insertSchema_Usage(doc, content) { return insertSchemaComplexType(doc, content, "Usage"); }
-    function insertSchema_used(doc, content) { return insertSchemaElement(doc, content, "used"); }
-    
-    function insertSchema_Communication(doc, content) { return insertSchemaComplexType(doc, content, "Communication"); }
-    function insertSchema_wasInformedBy(doc, content) { return insertSchemaElement(doc, content, "wasInformedBy"); }
-    
-    function insertSchema_Start(doc, content) { return insertSchemaComplexType(doc, content, "Start"); }
-    function insertSchema_wasStartedBy(doc, content) { return insertSchemaElement(doc, content, "wasStartedBy"); }
-    
-    function insertSchema_End(doc, content) { return insertSchemaComplexType(doc, content, "End"); }
-    function insertSchema_wasEndedBy(doc, content) { return insertSchemaElement(doc, content, "wasEndedBy"); }
-    
-    function insertSchema_Invalidation(doc, content) { return insertSchemaComplexType(doc, content, "Invalidation"); }
-    function insertSchema_wasInvalidatedBy(doc, content) { return insertSchemaElement(doc, content, "wasInvalidatedBy"); }
-    
-    function insertSchema_Derivation(doc, content) { return insertSchemaComplexType(doc, content, "Derivation"); }
-    function insertSchema_wasDerivedFrom(doc, content) { return insertSchemaElement(doc, content, "wasDerivedFrom"); }
-    
-    function insertSchema_Attribution(doc, content) { return insertSchemaComplexType(doc, content, "Attribution"); }
-    function insertSchema_wasAttributedTo(doc, content) { return insertSchemaElement(doc, content, "wasAttributedTo"); }
-    
-    function insertSchema_Association(doc, content) { return insertSchemaComplexType(doc, content, "Association"); }
-    function insertSchema_wasAssociatedWith(doc, content) { return insertSchemaElement(doc, content, "wasAssociatedWith"); }
-    
-    function insertSchema_Delegation(doc, content) { return insertSchemaComplexType(doc, content, "Delegation"); }
-    function insertSchema_actedOnBehalfOf(doc, content) { return insertSchemaElement(doc, content, "actedOnBehalfOf"); }
-    
-    function insertSchema_Influence(doc, content) { return insertSchemaComplexType(doc, content, "Influence"); }
-    function insertSchema_wasInfluencedBy(doc, content) { return insertSchemaElement(doc, content, "wasInfluencedBy"); }
-    
-    function insertSchema_Specialization(doc, content) { return insertSchemaComplexType(doc, content, "Specialization"); }
-    function insertSchema_specializationOf(doc, content) { return insertSchemaElement(doc, content, "specializationOf"); }
-    
-    function insertSchema_Alternate(doc, content) { return insertSchemaComplexType(doc, content, "Alternate"); }
-    function insertSchema_alternateOf(doc, content) { return insertSchemaElement(doc, content, "alternateOf"); }
-    
-    function insertSchema_Mention(doc, content) { return insertSchemaComplexType(doc, content, "Mention"); }
-    function insertSchema_mentionOf(doc, content) { return insertSchemaElement(doc, content, "mentionOf"); }
-    
-    function insertSchema_Membership(doc, content) { return insertSchemaComplexType(doc, content, "Membership"); }
-    function insertSchema_hadMember(doc, content) { return insertSchemaElement(doc, content, "hadMember"); }
-    
-    function insertSchema_label(doc, content) { return insertSchemaElement(doc, content, "label"); }
-    function insertSchema_role(doc, content) { return insertSchemaElement(doc, content, "role"); }
-    function insertSchema_type(doc, content) { return insertSchemaElement(doc, content, "type"); }
-    function insertSchema_location(doc, content) { return insertSchemaElement(doc, content, "location"); }
-    function insertSchema_value(doc, content) { return insertSchemaElement(doc, content, "value"); }
-    
-    </script>
-    -->
 
     <script>
     $(function() {
@@ -574,10 +488,6 @@
 	<td><a>Specialization</a></td>
 	<td><a title="specializationOf">prov:Specialization</a></td>
 </tr>
-<tr class="component5-color">
-	<td><a>Mention</a></td>
-	<td><a title="mentionOf">prov:Mention</a></td>
-</tr> 
 <tr>
 	<td colspan="3" style="border-width: 0px; "></td>
 </tr>
@@ -1560,7 +1470,7 @@
 <section id="component5"> 
 <h3>Component 5: Alternate Entities</h3>
 <p>The fifth component of PROV-DM is concerned with
-relations SpecializationOf (<a>specialization</a>), AlternateOf (<a>alternate</a>), and MentionOf (<a>mention</a>) between entities.</p>
+relations SpecializationOf (<a>specialization</a>) and AlternateOf (<a>alternate</a>) between entities.</p>
 
 <section id="term-Specialization">
 <h4>Specialization</h4>
@@ -1634,82 +1544,6 @@
 </pre>
 </section> <!-- end term-Alternate -->
 
-<section id="term-Mention">
-<h4>Mention</h4>
-<div class="glossary-ref" data-ref="glossary-mention"></div>
-<pre class="schema-type">
-&lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Mention"&gt;
-  &lt;xs:sequence&gt;
-    &lt;xs:element name="specificEntity" type="prov:EntityRef"/&gt;
-    &lt;xs:element name="generalEntity" type="prov:EntityRef"/&gt;
-    &lt;xs:element name="bundle" type="prov:EntityRef"/&gt;
-  &lt;/xs:sequence&gt;
-&lt;/xs:complexType&gt;
-</pre>
-<pre class="schema-usage">
-&lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="mentionOf" type="prov:Mention"/&gt;
-</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#"
-    xmlns:tool="http://example.com/ns/tool#"&gt;
-
-  &lt;prov:bundle prov:id="ex:run1"&gt;
-    &lt;prov:activity prov:id="ex:a1"&gt;
-      &lt;prov:startTime&gt;2011-11-16T16:00:00&lt;/prov:startTime&gt;
-      &lt;prov:endTime&gt;2011-11-16T17:00:00&lt;/prov:endTime&gt;
-    &lt;/prov:activity&gt;
-
-    &lt;prov:wasAssociatedWith&gt;
-      &lt;prov:activity prov:ref="ex:a1" /&gt;
-      &lt;prov:agent prov:ref="ex:Bob" /&gt;
-      &lt;prov:role xsi:type="xsd:QName"&gt;controller&lt;/prov:role&gt;
-    &lt;/prov:wasAssociatedWith&gt;
-  &lt;/prov:bundle&gt;
-
-  &lt;prov:bundle prov:id="ex:run2"&gt;
-    &lt;prov:activity prov:id="ex:a2"&gt;
-      &lt;prov:startTime&gt;2011-11-17T10:00:00&lt;/prov:startTime&gt;
-      &lt;prov:endTime&gt;2011-11-17T17:00:00&lt;/prov:endTime&gt;
-    &lt;/prov:activity&gt;
-
-    &lt;prov:wasAssociatedWith&gt;
-      &lt;prov:activity prov:ref="ex:a2" /&gt;
-      &lt;prov:agent prov:ref="ex:Bob" /&gt;
-      &lt;prov:role xsi:type="xsd:QName"&gt;controller&lt;/prov:role&gt;
-    &lt;/prov:wasAssociatedWith&gt;
-  &lt;/prov:bundle&gt;
-
-  &lt;prov:bundle prov:id="tool:analysis01"&gt;
-    &lt;prov:agent prov:id="tool:Bob-2011-11-16"&gt;
-      &lt;ex:perfrating&gt;good&lt;/ex:perfrating&gt;
-    &lt;/prov:agent&gt;
-
-    <b>&lt;prov:mentionOf&gt;
-      &lt;prov:specificEntity prov:ref="tool:Bob-2011-11-16" /&gt;
-      &lt;prov:generalEntity prov:ref="ex:Bob" /&gt;
-      &lt;prov:bundle prov:ref="ex:run1" /&gt;
-    &lt;/prov:mentionOf&gt;</b>
-
-    &lt;prov:agent prov:id="tool:Bob-2011-11-17"&gt;
-      &lt;ex:perfrating&gt;bad&lt;/ex:perfrating&gt;
-    &lt;/prov:agent&gt;
-
-    <b>&lt;prov:mentionOf&gt;
-      &lt;prov:specificEntity prov:ref="tool:Bob-2011-11-17" /&gt;
-      &lt;prov:generalEntity prov:ref="ex:Bob" /&gt;
-      &lt;prov:bundle prov:ref="ex:run2" /&gt;
-    &lt;/prov:mentionOf&gt;</b>
-  &lt;/prov:bundle&gt;
-
-&lt;/prov:document&gt;
-</pre>
-</section> <!-- end term-Mention -->
-
 </section> <!-- end component5 -->
 
 
@@ -2248,15 +2082,6 @@
     &lt;/xs:sequence&gt;
   &lt;/xs:complexType&gt;
 
-  &lt;xs:complexType name="Mention"&gt;
-    &lt;xs:sequence&gt;
-      &lt;xs:element name="specificEntity"   type="prov:EntityRef"/&gt;
-      &lt;xs:element name="generalEntity"     type="prov:EntityRef"/&gt;
-      &lt;xs:element name="bundle"            type="prov:EntityRef"/&gt;
-    &lt;/xs:sequence&gt;
-  &lt;/xs:complexType&gt;
-
-
   &lt;!-- Component 6 --&gt;
 
   &lt;xs:complexType name="Membership"&gt;
@@ -2345,7 +2170,6 @@
 
   &lt;xs:element name="specializationOf"     type="prov:Specialization"/&gt;
   &lt;xs:element name="alternateOf"          type="prov:Alternate"/&gt;
-  &lt;xs:element name="mentionOf"            type="prov:Mention"/&gt;
 
   &lt;!-- Component 6 elements --&gt;
 
@@ -2370,7 +2194,6 @@
         &lt;xs:element ref="prov:wasInfluencedBy"/&gt;
         &lt;xs:element ref="prov:specializationOf"/&gt;
         &lt;xs:element ref="prov:alternateOf"/&gt;
-        &lt;xs:element ref="prov:mentionOf"/&gt;
         &lt;xs:element ref="prov:hadMember"/&gt;
 		&lt;xs:any namespace="##other"/&gt;
       &lt;/xs:choice&gt;
--- a/xml/schema/prov.xsd	Mon Nov 12 17:08:22 2012 -0500
+++ b/xml/schema/prov.xsd	Mon Nov 12 16:25:25 2012 -0700
@@ -267,6 +267,7 @@
     </xs:sequence>
   </xs:complexType>
 
+  <!--
   <xs:complexType name="Mention">
     <xs:sequence>
       <xs:element name="specificEntity"   type="prov:EntityRef"/>
@@ -274,7 +275,7 @@
       <xs:element name="bundle"            type="prov:EntityRef"/>
     </xs:sequence>
   </xs:complexType>
-
+  -->
   
   <!-- Component 6 -->
 
@@ -310,6 +311,12 @@
        These should be prov:QualifiedName
        but instead are xsd:QName for tools to process them -->
 
+  <!--  Possible alternative, but may cause us 
+        to lose benefit of existing XML tooling
+  <xs:attribute name="id"  type="xs:anyURI"/>
+  <xs:attribute name="ref" type="xs:anyURI"/>
+  -->
+
   <xs:attribute name="id"  type="xs:QName"/>
   <xs:attribute name="ref" type="xs:QName"/>
 
@@ -364,7 +371,7 @@
 
   <xs:element name="specializationOf"     type="prov:Specialization"/>
   <xs:element name="alternateOf"          type="prov:Alternate"/>
-  <xs:element name="mentionOf"            type="prov:Mention"/>
+  <!--<xs:element name="mentionOf"            type="prov:Mention"/>-->
 
   <!-- Component 6 elements -->
 
@@ -393,7 +400,7 @@
         <xs:element ref="prov:wasInfluencedBy"/>
         <xs:element ref="prov:specializationOf"/>
         <xs:element ref="prov:alternateOf"/>
-        <xs:element ref="prov:mentionOf"/>
+        <!--<xs:element ref="prov:mentionOf"/>-->
         <xs:element ref="prov:hadMember"/>
 		<xs:any namespace="##other"/>
       </xs:choice>