provo example turtle consistency tweaks
authorTim L <lebot@rpi.edu>
Mon, 14 May 2012 14:56:39 -0400
changeset 2801 d92de2845a14
parent 2800 0bea0a5f057c
child 2802 704649955ad9
provo example turtle consistency tweaks
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Account.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Entity.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Location.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Note.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Organization.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_SoftwareAgent.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_alternateOf.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_atLocation.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_endedAtTime.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_generated.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadOriginalSource.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_invalidatedAtTime.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_startedAtTime.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_used.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAssociatedWith.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAttributedTo.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasDerivedFrom.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasGeneratedBy.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInvalidatedBy.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Account.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Account.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,16 +5,14 @@
 @prefix :     <http://example.com/> .
 
 # An account can be described in many ways. A possibility is a named graph:
-:acc23_04_2012_dereck{
-
-:acc23_04_2012_dereck a prov:Account.
+:acc23_04_2012_dereck {
 
-:entity1 a prov:Entity.
+   :acc23_04_2012_dereck a prov:Account .
 
-:agent1 a prov:Agent.
+   :entity1 a prov:Entity .
+   :agent1  a prov:Agent .
 
-#Other provenance statements.
-
+   #Other provenance statements.
 }
 
 # Another possibility is by pointing to the container of the provenance triples:
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Entity.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Entity.ttl	Mon May 14 14:56:39 2012 -0400
@@ -6,7 +6,9 @@
 @prefix :        <http://example.com/> .
 
 :bar_chart 
-	a prov:Entity;
-	dcterms:title "Aggregated statistics from the crime file"^^xsd:string;
-	prov:wasAttributedTo :derek;
+   a prov:Entity;
+   dcterms:title "Aggregated statistics from the crime file"^^xsd:string;
+   prov:wasAttributedTo :derek;
 .
+
+:derek a prov:Agent .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Location.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Location.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,19 +5,20 @@
 @prefix sioc: <http://rdfs.org/sioc/ns#> .
 @prefix :     <http://example.com/> .
 
-#A Location can be a path or a geographical location.
+# A Location can be a path or a geographical location.
+
 :post9821 
-      a prov:Entity, sioc:Post;   
-      prov:wasGeneratedBy :publicationActivity1123;
-      prov:atLocation     :more-crime-happens-in-cities;
-      prov:qualifiedGeneration [
-         a prov:Generation;
-         prov:activity    :publicationActivity1123;
-         prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime; 
-         prov:atLocation <http://dbpedia.org/resource/Madrid>;
-      ];
-   .
-:publicationActivity1123 a prov:Activity.
+   a prov:Entity, sioc:Post;   
+   prov:wasGeneratedBy :publicationActivity1123;
+   prov:atLocation     :more-crime-happens-in-cities;
+   prov:qualifiedGeneration [
+      a prov:Generation;
+      prov:activity    :publicationActivity1123;
+      prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime; 
+      prov:atLocation <http://dbpedia.org/resource/Madrid>;
+   ];
+.
+
+:publicationActivity1123      a prov:Activity.
 :more-crime-happens-in-cities a prov:Location.
-<http://dbpedia.org/resource/Madrid> a prov:Location.
-  
+<http://dbpedia.org/resource/Madrid> a prov:Location. 
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Note.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Note.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,11 +5,13 @@
 @prefix :     <http://example.com/> .
 
 :post112 
-	a prov:Entity;
-	prov:hasAnnotation :parserNote.
-	
+   a prov:Entity;
+   prov:hasAnnotation :parserNote;
+.
+   
 :parserNote {
-	:parserNote a prov:Note.
-	:post112 :parsedAt "2012-04-15T13:00:00-04:00"^^xsd:dateTime.
-	#Other statements annotating the resource could be added here
+   :parserNote a prov:Note.
+   :post112 :parsedAt "2012-04-15T13:00:00-04:00"^^xsd:dateTime.
+
+   # Other statements annotating the resource could be added here
 }
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Organization.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Organization.ttl	Mon May 14 14:56:39 2012 -0400
@@ -6,6 +6,6 @@
 @prefix :     <http://example.com/> .
 
 :boogle 
-   a prov:Agent, prov:Organization, foaf:Organization;
+   a prov:Agent, prov:Organization;
    foaf:name "Boogle";
 . 
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_SoftwareAgent.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_SoftwareAgent.ttl	Mon May 14 14:56:39 2012 -0400
@@ -4,7 +4,9 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# Googlebot is Google's web crawling bot.  it can initiate and participate in web-crawling activities.
+# Googlebot is Google's web crawling bot; it can initiate and participate in web-crawling activities.
+
 :googlebot
-	a prov:SoftwareAgent ;
-	rdfs:label "Googlebot"^^xsd:string .
+   a prov:SoftwareAgent;
+   rdfs:label "Googlebot"^^xsd:string;
+.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_alternateOf.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_alternateOf.ttl	Mon May 14 14:56:39 2012 -0400
@@ -4,30 +4,33 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:london_forecast_0412 a  prov:Entity ;
-		      prov:wasAttributedTo :bbc ;
-		      prov:wasGeneratedBy [
-		          a   prov:Activity ;
-  			  prov:endedAtTime "2012-04-12T00:00:00-04:00"^^xsd:dateTime;
-		      ]
+:london_forecast_0412 
+   a prov:Entity;
+   prov:wasAttributedTo :bbc;
+   prov:wasGeneratedBy [
+      a prov:Activity;
+      prov:endedAtTime "2012-04-12T00:00:00-04:00"^^xsd:dateTime;
+   ];
 .
 
-
-:london_forecast_0413 a  prov:Entity ;
-                      prov:wasAttributedTo :bbc ;
-                      prov:wasGeneratedBy [
-                          a   prov:Activity ;
-                          prov:endedAtTime "2012-04-13T00:00:00-04:00"^^xsd:dateTime;
-                      ]
-.
-    
-
-:london_forecast a prov:Entity ;
-		 prov:wasAttributedTo :bbc ;
+:london_forecast_0413 
+   a prov:Entity;
+   prov:wasAttributedTo :bbc;
+   prov:wasGeneratedBy [
+      a prov:Activity;
+      prov:endedAtTime "2012-04-13T00:00:00-04:00"^^xsd:dateTime;
+   ];
 .
 
-### :london_forecast_0412 and :london_forecast_0413 are both specialization of the more general entity :london_forecast
+:london_forecast 
+   a prov:Entity;
+   prov:wasAttributedTo :bbc;
+.
 
-:london_forecast_0412  prov:alternateOf  :london_forecast_0413 ;
-		       prov:specializationOf  :london_forecast ;
+## :london_forecast_0412 and :london_forecast_0413 are both 
+## specialization of the more general entity :london_forecast
+
+:london_forecast_0412  
+   prov:alternateOf      :london_forecast_0413;
+   prov:specializationOf :london_forecast;
 .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_atLocation.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_atLocation.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,18 +5,20 @@
 @prefix sioc: <http://rdfs.org/sioc/ns#> .
 @prefix :     <http://example.com/> .
 
-#A Location can be a path or a geographical location.
+# A Location can be a path or a geographical location.
+
 :post9821 
-      a prov:Entity, sioc:Post;   
-      prov:wasGeneratedBy :publicationActivity1123;
-      prov:atLocation     :more-crime-happens-in-cities;
-      prov:qualifiedGeneration [
-         a prov:Generation;
-         prov:activity    :publicationActivity1123;
-         prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime; 
-         prov:atLocation <http://dbpedia.org/resource/Madrid>;
-      ];
-   .
-:publicationActivity1123 a prov:Activity.
-:more-crime-happens-in-cities a prov:Location.
-<http://dbpedia.org/resource/Madrid> a prov:Location.
+   a prov:Entity, sioc:Post;   
+   prov:wasGeneratedBy :publicationActivity1123;
+   prov:atLocation     :more-crime-happens-in-cities;
+   prov:qualifiedGeneration [
+      a prov:Generation;
+      prov:activity    :publicationActivity1123;
+      prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime; 
+      prov:atLocation <http://dbpedia.org/resource/Madrid>;
+   ];
+.
+
+:publicationActivity1123      a prov:Activity .
+:more-crime-happens-in-cities a prov:Location .
+<http://dbpedia.org/resource/Madrid> a prov:Location .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_endedAtTime.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_endedAtTime.ttl	Mon May 14 14:56:39 2012 -0400
@@ -9,3 +9,5 @@
   prov:used :drosophilaSample;
   prov:endedAtTime "2012-04-30T12:46:32Z"^^xsd:dateTime;
 .
+
+:drosophilaSample a prov:Entity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_generated.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_generated.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,8 +5,8 @@
 @prefix :     <http://example.com/> .
 
 :proteinDigestion
-  a prov:Activity;
-  prov:generated :peptideSample1.
+   a prov:Activity;
+   prov:generated :peptideSample1;
+.
 
-:peptideSample1 a prov:Entity.
-  
+:peptideSample1 a prov:Entity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadOriginalSource.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadOriginalSource.ttl	Mon May 14 14:56:39 2012 -0400
@@ -4,15 +4,16 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-### a particular case of derivation
+## Having an original source is a particular case of derivation.
 
 :myPost 
-        a prov:Entity;
-        prov:hadOriginalSource :donQuixote;
-        prov:qualifiedSource [
-                a prov:Source;
-                prov:entity :donQuixote;
-                #other attributes of the relationship
-        ].
+   a prov:Entity;
+   prov:hadOriginalSource :donQuixote;
+   prov:qualifiedSource [
+      a prov:Source;
+      prov:entity :donQuixote;
+      # other attributes of the relationship
+   ];
+.
         
 :donQuixote a prov:Entity.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_invalidatedAtTime.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_invalidatedAtTime.ttl	Mon May 14 14:56:39 2012 -0400
@@ -8,5 +8,5 @@
    a prov:Entity, :Painting;
    rdfs:label "Le Peintre"@fr, "The Painter"@en;
    prov:wasAttributedTo <http://dbpedia.org/resource/Pablo_Picasso>;
-   prov:invalidatedAtTime "2012-09-02T01:31:00Z" .
-
+   prov:invalidatedAtTime "2012-09-02T01:31:00Z";
+.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_startedAtTime.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_startedAtTime.ttl	Mon May 14 14:56:39 2012 -0400
@@ -9,3 +9,5 @@
   prov:used :drosophilaSample;
   prov:startedAtTime "2012-04-25T01:30:25Z"^^xsd:dateTime;
 .
+
+:drosophilaSample a prov:Entity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_used.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_used.ttl	Mon May 14 14:56:39 2012 -0400
@@ -7,7 +7,7 @@
 :sortActivity
    a prov:Activity;
    prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime;
-   prov:used	    :datasetA;
+   prov:used       :datasetA;
    prov:generated  :datasetB;
 .
 
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAssociatedWith.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAssociatedWith.ttl	Mon May 14 14:56:39 2012 -0400
@@ -5,7 +5,8 @@
 @prefix :     <http://example.com/> .
 
 :illustrating
-    a prov:Activity ; 
-    prov:wasAssociatedWith :derek .
+   a prov:Activity; 
+   prov:wasAssociatedWith :derek;
+.
 
 :derek a prov:Person, prov:Agent, prov:Entity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAttributedTo.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAttributedTo.ttl	Mon May 14 14:56:39 2012 -0400
@@ -2,8 +2,9 @@
 @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
 @prefix owl:  <http://www.w3.org/2002/07/owl#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
-@prefix ex:     <http://example.com/> .
+@prefix :     <http://example.com/> .
 
-ex:nationalRegionsList 
+:nationalRegionsList 
    a prov:Entity;
-   prov:wasAttributedTo ex:civil_action_group.
+   prov:wasAttributedTo ex:civil_action_group;
+.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasDerivedFrom.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasDerivedFrom.ttl	Mon May 14 14:56:39 2012 -0400
@@ -2,6 +2,6 @@
 @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
 @prefix owl:  <http://www.w3.org/2002/07/owl#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
-@prefix ex:     <http://example.com/> .
+@prefix :     <http://example.com/> .
 
-ex:bar_chart   prov:wasDerivedFrom ex:aggregatedByRegions.
+:bar_chart  prov:wasDerivedFrom ex:aggregatedByRegions .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasGeneratedBy.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasGeneratedBy.ttl	Mon May 14 14:56:39 2012 -0400
@@ -2,10 +2,11 @@
 @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
 @prefix owl:  <http://www.w3.org/2002/07/owl#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
-@prefix :   <http://example.com/> .
+@prefix :     <http://example.com/> .
 
 :bar_chart
-   a prov:Entity ;
-   prov:wasGeneratedBy :illustrating .   
+   a prov:Entity;
+   prov:wasGeneratedBy :illustrating;
+.
 
 :illustrating a prov:Activity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl	Mon May 14 14:56:39 2012 -0400
@@ -4,8 +4,9 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:writing-celebrity-gossip a prov:Activity ;
-    prov:wasInformedBy :voicemail-interception .
+:writing-celebrity-gossip 
+   a prov:Activity;
+   prov:wasInformedBy :voicemail-interception;
+.
 
 :voicemail-interception a prov:Activity .
-
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInvalidatedBy.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInvalidatedBy.ttl	Mon May 14 14:56:39 2012 -0400
@@ -9,7 +9,8 @@
    a prov:Entity, :Painting;
    rdfs:label "Le Peintre"@fr, "The Painter"@en;
    prov:wasAttributedTo <http://dbpedia.org/resource/Pablo_Picasso>;
-   prov:wasInvalidatedBy :Swissair_Flight_111_crash .
+   prov:wasInvalidatedBy :Swissair_Flight_111_crash;
+.
 
 <http://dbpedia.org/resource/Pablo_Picasso> 
    a prov:Agent;
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Mon May 14 14:37:49 2012 -0400
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Mon May 14 14:56:39 2012 -0400
@@ -6,15 +6,16 @@
 
 :filling-fuel
     a prov:Activity;
-    prov:startedAtTime        "2012-04-24T18:21:00Z"^^xsd:dateTime ;
-    prov:endedAtTime          "2012-04-24T18:23:10Z"^^xsd:dateTime ;
-    prov:wasAssociatedWith    :driver ;
-    prov:wasStartedByActivity :observing-low-fuel .
+    prov:startedAtTime        "2012-04-24T18:21:00Z"^^xsd:dateTime;
+    prov:endedAtTime          "2012-04-24T18:23:10Z"^^xsd:dateTime;
+    prov:wasAssociatedWith    :driver;
+    prov:wasStartedByActivity :observing-low-fuel;
+.
 
 :observing-low-fuel
     a prov:Activity;
-    prov:wasAssociatedWith    :driver ;
-    prov:startedAtTime        "2012-04-24T17:45:00Z"^^xsd:dateTime .
+    prov:wasAssociatedWith    :driver;
+    prov:startedAtTime        "2012-04-24T17:45:00Z"^^xsd:dateTime;
+.
 
 :driver a prov:Person, prov:Agent .
-