Add some more XML examples.
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Tue, 28 Aug 2012 15:56:36 -0400
changeset 4371 bdb842ddf163
parent 4370 853d38081960
child 4372 fbe20385e1f3
Add some more XML examples.
examples/eg-40-xml-examples-by-term/xml/Alternate_43.xml
examples/eg-40-xml-examples-by-term/xml/Alternate_44.xml
examples/eg-40-xml-examples-by-term/xml/Delegation.xml
examples/eg-40-xml-examples-by-term/xml/Influence.xml
examples/eg-40-xml-examples-by-term/xml/Label.xml
examples/eg-40-xml-examples-by-term/xml/Quotation.xml
examples/eg-40-xml-examples-by-term/xml/Specialization.xml
examples/eg-40-xml-examples-by-term/xml/Value.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Alternate_43.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 43 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-alternate  -->
+
+<prov:records 
+    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">
+    <prov:entity prov:id="bbc:science-environment-17526723">
+        <prov:type>a news item for desktop</prov:type>
+    </prov:entity>
+    <prov:entity prov:id="bbcmobile:science-environment-17526723">
+        <prov:type>a news item for mobile devices</prov:type>
+    </prov:entity>
+    <prov:dependencies>
+        <prov:alternateOf>
+            <prov:entity2 prov:ref="bbcmobile:science-environment-17526723"/>
+            <prov:entity1 prov:ref="bbc:science-environment-17526723"/>
+        </prov:alternateOf>
+    </prov:dependencies>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Alternate_44.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 44 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-alternate2  -->
+
+<prov:records 
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:tr="http://example.com/ns/tr#">
+    <prov:entity prov:id="tr:WD-prov-dm-20111018"/>
+    <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
+    <prov:dependencies>
+        <prov:alternateOf>
+            <prov:entity2 prov:ref="tr:WD-prov-dm-20111018"/>
+            <prov:entity1 prov:ref="tr:WD-prov-dm-20111215"/>
+        </prov:alternateOf>
+    </prov:dependencies>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Delegation.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 37 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-wasAssociatedWith -->
+
+<prov:records xmlns:prov="http://www.w3.org/ns/prov#">
+    <prov:activity prov:id="a">
+        <prov:type>workflow</prov:type>
+    </prov:activity>
+    <prov:agent prov:id="ag1">
+        <prov:type>programmer</prov:type>
+    </prov:agent>
+    <prov:agent prov:id="ag2">
+        <prov:type>researcher</prov:type>
+    </prov:agent>
+    <prov:agent prov:id="ag3">
+        <prov:type>funder</prov:type>
+    </prov:agent>
+    <prov:dependencies>
+        <prov:wasAssociatedWith>
+            <prov:activity prov:ref="a"/>
+            <prov:agent prov:ref="ag1"/>
+            <prov:role>loggedInUser</prov:role>
+        </prov:wasAssociatedWith>
+        <prov:wasAssociatedWith>
+            <prov:activity prov:ref="a"/>
+            <prov:agent prov:ref="ag2"/>
+        </prov:wasAssociatedWith>
+        <prov:wasAssociatedWith>
+            <prov:activity prov:ref="a"/>
+            <prov:agent prov:ref="ag3"/>
+        </prov:wasAssociatedWith>
+        <prov:actedOnBehalfOf>
+            <prov:subordinate prov:ref="ag1"/>
+            <prov:responsible prov:ref="ag2"/>
+            <prov:activity prov:ref="a"/>
+            <prov:type>line-management</prov:type>
+        </prov:actedOnBehalfOf>
+        <prov:actedOnBehalfOf>
+            <prov:subordinate prov:ref="ag2"/>
+            <prov:responsible prov:ref="ag3"/>
+            <prov:activity prov:ref="a"/>
+            <prov:type>contract</prov:type>
+        </prov:actedOnBehalfOf>
+    </prov:dependencies>
+</prov:records>
--- a/examples/eg-40-xml-examples-by-term/xml/Influence.xml	Tue Aug 28 15:42:45 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Influence.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 38 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_38  -->
+
+<prov:records 
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:tr="http://example.com/ns/tr#"
+    xmlns:w3="http://w3.org/">
+    <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
+    <prov:agent prov:id="w3:Consortium"/>
+    <prov:dependencies>
+        <prov:wasInfluencedBy>
+            <prov:influencee prov:ref="tr:WD-prov-dm-20111215"/>
+            <prov:influencer prov:ref="w3:Consortium"/>
+        </prov:wasInfluencedBy>
+    </prov:dependencies>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Label.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 49 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_49 -->
+
+<prov:records
+    xmlns:prov="http://www.w3.org/ns/prov#" 
+    xmlns:ex="http://example.com/ns/ex#">
+    <prov:entity prov:id="ex:e1">
+        <prov:label>This is a human-readable label</prov:label>
+    </prov:entity>
+    <prov:entity prov:id="ex:car01">
+        <prov:label xml:lang="fr">Voiture 01</prov:label>
+        <prov:label xml:lang="en">Car 01</prov:label>
+    </prov:entity>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Quotation.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 31 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-quotation -->
+
+<prov:records 
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:wp="http://thinklinks.wordpress.com/2012/03/07/"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:dm="http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#">
+    <prov:entity prov:id="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+    <prov:entity prov:id="dm:bl-dagstuhl"/>
+    <prov:agent prov:id="ex:Luc"/>
+    <prov:agent prov:id="ex:Paul"/>
+    <prov:dependencies>
+        <prov:wasDerivedFrom>
+            <prov:generatedEntity prov:ref="dm:gl-dagstuhl"/>
+            <prov:usedEntity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+            <prov:type>prov:Quotation</prov:type>
+        </prov:wasDerivedFrom>
+        <prov:wasAttributedTo>
+            <prov:entity prov:ref="dm:bl-dagstuhl"/>
+            <prov:agent prov:ref="ex:Luc"/>
+        </prov:wasAttributedTo>
+        <prov:wasAttributedTo>
+            <prov:entity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+            <prov:agent prov:ref="ex:Paul"/>
+        </prov:wasAttributedTo>
+    </prov:dependencies>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Specialization.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 42 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-specialization -->
+
+<prov:records 
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:bbc="http://www.bbc.co.uk/">
+    <prov:entity prov:id="ex:bbcNews2012-03-23"/>
+    <prov:entity prov:id="bbc:news"/>
+    <prov:dependencies>
+        <prov:specializationOf>
+            <prov:specializedEntity prov:ref="ex:bbcNews2012-03-23"/>
+            <prov:generalEntity prov:ref="bbc:news"/>
+        </prov:specializationOf>
+    </prov:dependencies>
+</prov:records>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Value.xml	Tue Aug 28 15:56:36 2012 -0400
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 53 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_53 -->
+
+<prov:records
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+    <prov:activity prov:id="ex:len">
+        <prov:type>string-length</prov:type>
+    </prov:activity>
+    <prov:entity prov:id="ex:in">
+        <prov:value>abcd</prov:value>
+    </prov:entity>
+    <prov:entity prov:id="ex:out">
+        <prov:value>4</prov:value>
+    </prov:entity>
+    <prov:dependencies>
+        <prov:used>
+            <prov:activity prov:ref="ex:len"/>
+            <prov:entity prov:ref="ex:in"/>
+        </prov:used>
+        <prov:wasGeneratedBy>
+            <prov:entity prov:ref="ex:out"/>
+            <prov:activity prov:ref="ex:len"/>
+        </prov:wasGeneratedBy>
+        <prov:wasDerivedFrom>
+            <prov:generatedEntity prov:ref="ex:out"/>
+            <prov:usedEntity prov:ref="ex:in"/>
+        </prov:wasDerivedFrom>
+    </prov:dependencies>
+</prov:records>