Add PROV-LINKS mentionOf XML example to eg-45-xml-links
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Wed, 30 Jan 2013 14:13:20 -0500
changeset 5459 47fbd6860415
parent 5458 df85cd75a1e7
child 5460 02e7bdfe51fe
Add PROV-LINKS mentionOf XML example to eg-45-xml-links
examples/eg-40-xml-examples-by-term/xml/Mention_45.xml
examples/eg-40-xml-examples-by-term/xml/Mention_46.xml
examples/eg-45-xml-links/xml/Makefile
examples/eg-45-xml-links/xml/Mention.xml
examples/eg-45-xml-links/xml/ex.xsd
--- a/examples/eg-40-xml-examples-by-term/xml/Mention_45.xml	Wed Jan 30 14:12:37 2013 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- based on Example 45 from http://www.w3.org/TR/prov-dm/#anexample-mention-rating -->
-
-<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#">
-  
-<!--
-  <prov:bundle prov:id="ex:run1">
-    <prov:activity prov:id="ex:a1">
-      <prov:startTime>2011-11-16T16:00:00</prov:startTime>
-      <prov:endTime>2011-11-16T17:00:00</prov:endTime>
-    </prov:activity>
-
-    <prov:wasAssociatedWith>
-      <prov:activity prov:ref="ex:a1" />
-      <prov:agent prov:ref="ex:Bob" />
-      <prov:role xsi:type="xsd:QName">controller</prov:role>
-    </prov:wasAssociatedWith>
-  </prov:bundle>
-
-  <prov:bundle prov:id="ex:run2">
-    <prov:activity prov:id="ex:a2">
-      <prov:startTime>2011-11-17T10:00:00</prov:startTime>
-      <prov:endTime>2011-11-17T17:00:00</prov:endTime>
-    </prov:activity>
-
-    <prov:wasAssociatedWith>
-      <prov:activity prov:ref="ex:a2" />
-      <prov:agent prov:ref="ex:Bob" />
-      <prov:role xsi:type="xsd:QName">controller</prov:role>
-    </prov:wasAssociatedWith>
-  </prov:bundle>
-
-  <prov:bundle prov:id="tool:analysis01">
-    <prov:agent prov:id="tool:Bob-2011-11-16">
-      <ex:perfrating>good</ex:perfrating>
-    </prov:agent>
-
-    <prov:mentionOf>
-      <prov:specificEntity prov:ref="tool:Bob-2011-11-16" />
-      <prov:generalEntity prov:ref="ex:Bob" />
-      <prov:bundle prov:ref="ex:run1" />
-    </prov:mentionOf>
-
-    <prov:agent prov:id="tool:Bob-2011-11-17">
-      <ex:perfrating>bad</ex:perfrating>
-    </prov:agent>
-
-    <prov:mentionOf>
-      <prov:specificEntity prov:ref="tool:Bob-2011-11-17" />
-      <prov:generalEntity prov:ref="ex:Bob" />
-      <prov:bundle prov:ref="ex:run2" />
-    </prov:mentionOf>
-  </prov:bundle>
-
--->
-</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Mention_46.xml	Wed Jan 30 14:12:37 2013 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- based on Example 46 from http://www.w3.org/TR/prov-dm/#anexample-mention-viz -->
-
-<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:tool="http://example.com/ns/tool#"
-    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>
-      <ex:version>1</ex:version>
-    </prov:entity>
-
-    <prov:wasGeneratedBy prov:id="ex:g1">
-      <prov:entity prov:ref="ex:report1"/>
-      <prov:time>2012-05-24T10:00:01</prov:time>
-    </prov:wasGeneratedBy>
-
-    <prov:entity prov:id="ex:report2">
-      <prov:type xsi:type="xsd:QName">report</prov:type>
-      <ex:version>2</ex:version>
-    </prov:entity>
-
-    <prov:wasGeneratedBy prov:id="ex:g2">
-      <prov:entity prov:ref="ex:report2"/>
-      <prov:time>2012-05-25T11:00:01</prov:time>
-    </prov:wasGeneratedBy>
-
-    <prov:wasDerivedFrom>
-      <prov:generatedEntity prov:ref="ex:report2"/>
-      <prov:usedEntity prov:ref="ex:report1"/>
-    </prov:wasDerivedFrom>
-  </prov:bundle>
-
-  <prov:entity prov:id="obs:bundle1">
-    <prov:type xsi:type="xsd:QName">prov:Bundle</prov:type>
-  </prov:entity>
-
-  <prov:wasAttributedTo>
-    <prov:entity prov:ref="obs:bundle1"/>
-    <prov:agent prov:ref="ex:observer01"/>
-  </prov:wasAttributedTo>
-  
-  <prov:bundle prov:id="tool:bundle2">
-    <prov:entity prov:id="tool:bundle2">
-      <prov:type xsi:type="xsd:QName">viz:Configuration</prov:type>
-      <prov:type xsi:type="xsd:QName">prov:Bundle</prov:type>
-    </prov:entity>
-
-    <prov:wasAttributedTo>
-      <prov:entity prov:ref="tool:bundle2"/>
-      <prov:agent prov:ref="viz:Visualizer"/>
-    </prov:wasAttributedTo>
-
-    <prov:entity prov:id="tool:report1">
-      <ex:vizcolor>orange</ex:vizcolor>
-    </prov:entity>
-    
-    <prov:mentionOf>
-      <prov:specificEntity prov:ref="tool:report1"/>
-      <prov:generalEntity prov:ref="ex:report1"/>
-      <prov:bundle prov:ref="obs:bundle1"/>
-    </prov:mentionOf>
-
-    <prov:entity prov:id="tool:report2">
-      <ex:vizcolor>blue</ex:vizcolor>
-    </prov:entity>
-
-    <prov:mentionOf>
-      <prov:specificEntity prov:ref="tool:report2"/>
-      <prov:generalEntity prov:ref="ex:report2"/>
-      <prov:bundle prov:ref="obs:bundle1"/>
-    </prov:mentionOf>
-
-  </prov:bundle>
-
--->
-</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-45-xml-links/xml/Makefile	Wed Jan 30 14:13:20 2013 -0500
@@ -0,0 +1,4 @@
+SCHEMA = ex.xsd
+
+validate: 
+	xmllint --noout --schema $(SCHEMA) *.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-45-xml-links/xml/Mention.xml	Wed Jan 30 14:13:20 2013 -0500
@@ -0,0 +1,57 @@
+<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#">
+
+  <prov:bundle prov:id="ex:run1">
+    <prov:activity prov:id="ex:a1">
+      <prov:startTime>2011-11-16T16:00:00</prov:startTime>
+      <prov:endTime>2011-11-16T17:00:00</prov:endTime>
+    </prov:activity>
+
+    <prov:wasAssociatedWith>
+      <prov:activity prov:ref="ex:a1" />
+      <prov:agent prov:ref="ex:Bob" />
+      <prov:role xsi:type="xsd:QName">controller</prov:role>
+    </prov:wasAssociatedWith>
+  </prov:bundle>
+
+  <prov:bundle prov:id="ex:run2">
+    <prov:activity prov:id="ex:a2">
+      <prov:startTime>2011-11-17T10:00:00</prov:startTime>
+      <prov:endTime>2011-11-17T17:00:00</prov:endTime>
+    </prov:activity>
+
+    <prov:wasAssociatedWith>
+      <prov:activity prov:ref="ex:a2" />
+      <prov:agent prov:ref="ex:Bob" />
+      <prov:role xsi:type="xsd:QName">controller</prov:role>
+    </prov:wasAssociatedWith>
+  </prov:bundle>
+
+  <prov:bundle prov:id="tool:analysis01">
+    <prov:agent prov:id="tool:Bob-2011-11-16">
+      <ex:perfrating>good</ex:perfrating>
+    </prov:agent>
+
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:Bob-2011-11-16" />
+      <prov:generalEntity prov:ref="ex:Bob" />
+      <prov:bundle prov:ref="ex:run1" />
+    </prov:mentionOf>
+
+    <prov:agent prov:id="tool:Bob-2011-11-17">
+      <ex:perfrating>bad</ex:perfrating>
+    </prov:agent>
+
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:Bob-2011-11-17" />
+      <prov:generalEntity prov:ref="ex:Bob" />
+      <prov:bundle prov:ref="ex:run2" />
+    </prov:mentionOf>
+  </prov:bundle>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-45-xml-links/xml/ex.xsd	Wed Jan 30 14:13:20 2013 -0500
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- Just for validation of examples -->
+
+<xs:schema targetNamespace="http://example.com/ns/ex#"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns="http://example.com/ns/ex#"
+           elementFormDefault="qualified"
+           attributeFormDefault="qualified">
+
+    <xs:import namespace="http://www.w3.org/ns/prov#"
+            schemaLocation="../../../xml/schema/prov.xsd"/>
+
+    <xs:element name="how" type="xs:string" />
+
+    <xs:element name="content" type="xs:string" />
+
+    <xs:element name="version" type="xs:string" />
+
+    <xs:element name="host" type="xs:string" />
+
+    <xs:element name="port" type="xs:string" />
+
+    <xs:element name="parameter" type="xs:string" />
+
+    <xs:element name="circumstances" type="xs:string" />
+
+    <xs:element name="name" type="xs:string" />
+
+    <xs:element name="employee" type="xs:string" />
+
+    <xs:element name="label" type="xs:string" />
+
+    <xs:element name="perfrating" type="xs:string" />
+
+    <xs:element name="vizcolor" type="xs:string" />
+
+</xs:schema>