Updated referencing elements via prov:ref instead of element content id.
Reorder activities before entities to follow current xsd until https://www.w3.org/2011/prov/track/issues/547 is settled which will allow entities before activities.
--- a/examples/eg-40-xml-examples-by-term/xml/End.xml Fri Sep 14 11:51:26 2012 -0700
+++ b/examples/eg-40-xml-examples-by-term/xml/End.xml Fri Sep 14 11:51:53 2012 -0700
@@ -7,18 +7,18 @@
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:ex="http://example.com/ns/ex#">
- <prov:entity prov:id="e1">
- <prov:type>approval document</prov:type>
- </prov:entity>
-
<prov:activity prov:id="a1">
<prov:type>Editing</prov:type>
</prov:activity>
+ <prov:entity prov:id="e1">
+ <prov:type>approval document</prov:type>
+ </prov:entity>
+
<prov:dependencies>
<prov:wasEndedBy>
- <prov:activity>a1</prov:activity>
- <prov:trigger>e1</prov:trigger>
+ <prov:activity prov:ref="a1"/>
+ <prov:trigger prov:ref="e1"/>
</prov:wasEndedBy>
</prov:dependencies>
--- a/examples/eg-40-xml-examples-by-term/xml/Start.xml Fri Sep 14 11:51:26 2012 -0700
+++ b/examples/eg-40-xml-examples-by-term/xml/Start.xml Fri Sep 14 11:51:53 2012 -0700
@@ -7,10 +7,6 @@
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:ex="http://example.com/ns/ex#">
- <prov:entity prov:id="e1">
- <prov:type>email message</prov:type>
- </prov:entity>
-
<prov:activity prov:id="a0">
<prov:type>Write</prov:type>
</prov:activity>
@@ -18,16 +14,20 @@
<prov:type>Discuss</prov:type>
</prov:activity>
+ <prov:entity prov:id="e1">
+ <prov:type>email message</prov:type>
+ </prov:entity>
+
<prov:dependencies>
<prov:wasStartedBy>
<prov:time>2011-11-16T16:05:00</prov:time>
- <prov:activity>a1</prov:activity>
- <prov:trigger>e1</prov:trigger>
- <prov:starter>a0</prov:starter>
+ <prov:activity prov:ref="a1"/>
+ <prov:trigger prov:ref="e1"/>
+ <prov:starter prov:ref="a0"/>
</prov:wasStartedBy>
<prov:used>
- <prov:activity>a1</prov:activity>
- <prov:entity>e1</prov:entity>
+ <prov:activity prov:ref="a1"/>
+ <prov:entity prov:ref="e1"/>
</prov:used>
</prov:dependencies>