More examples for the ontology
authordgarijo
Tue, 24 Apr 2012 00:43:49 +0200
changeset 2482 50f983cd4eb3
parent 2481 8aa9f333638a
child 2483 9d844f7fe0b5
More examples for the ontology
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Source.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Trace.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedTrace.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_tracedTo.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasEndedBy.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_Source.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Source.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -4,4 +4,13 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:myPost 
+	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/class_Trace.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Trace.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -2,6 +2,23 @@
 @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 dcterms: <http://purl.org/dc/elements/1.1/>.
 @prefix :     <http://example.com/> .
 
-# TODO
+:newsArticle
+	a prov:Entity;
+	dcterms:title "Review of the last presidents of the United States of America"^^xsd:string;
+	prov:tracedTo :president_obama;
+	prov:qualifiedTrace :trace1.
+	
+:trace1 a prov:Trace;
+      prov:entity :president_obama;
+	  prov:hasAnnotation :noteFromTheAuthor.
+	  
+:president_obama a prov:Entity, prov:Agent.
+
+:noteFromTheAuthor {
+	:noteFromTheAuthor a prov:Note;
+	:trace1 rdfs:comment "The main motivation for the article was the latest president"^^xsd:string.
+	:trace1 :annotatedAtTime "2011-07-16T01:52:02Z"^^xsd:dateTime;
+}
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -4,4 +4,13 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:experiment 
+	a prov:Acticity;
+	prov:wasEndedBy :inconsistentResult;
+	prov:qualifiedEnd [
+		a prov:End;
+		prov:entity :inconsistentResult;
+		prov:atTime "2011-07-16T01:52:02Z"^^xsd:dateTime;
+		prov:atLocation :scienceLab003.
+	].
+:inconsistentResult a prov:Entity.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -4,4 +4,13 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:workflow a prov:Activity .
+:subWorkflow 
+	a prov:Activity ;
+	prov:wasStartedByActivity :workflow ;
+	prov:qualifiedStartByActivity[
+		a StartByActivity;
+		prov:activity :workflow;
+		:triggeredAt "2011-07-16T01:52:02Z"^^xsd:dateTime;
+		:activationParameter "java -jar -n 5"^^xsd:string;
+	].
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedTrace.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedTrace.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -8,7 +8,7 @@
 <http://dbpedia.org/resource/Hurricane_Isabel>
    a prov:Entity, :Hurricane;
    rdfs:label "Hurricane Isabel";
-   prov:wasTracedTo :butterfly_456;
+   prov:tracedTo :butterfly_456;
    prov:qualifiedTrace [
       a prov:Trace;
       rdfs:seeAlso <http://en.wikipedia.org/wiki/Butterfly_effect>;
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_tracedTo.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_tracedTo.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -2,6 +2,12 @@
 @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 dcterms: <http://purl.org/dc/elements/1.1/>.
 @prefix :     <http://example.com/> .
 
-# TODO
+:newsArticle
+	a prov:Entity;
+	dcterms:title "Last presidents of the United States of America"^^xsd:string;
+	prov:tracedTo :president_obama.
+	
+:president_obama a prov:Entity, prov:Agent.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasEndedBy.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasEndedBy.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -4,4 +4,13 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:experiment 
+	a prov:Acticity;
+	prov:wasEndedBy :inconsistentResult;
+	prov:qualifiedEnd [
+		a prov:End;
+		prov:entity :inconsistentResult;
+		prov:atTime "2011-07-16T01:52:02Z"^^xsd:dateTime;
+		prov:atLocation :scienceLab003.
+	].
+:inconsistentResult a prov:Entity.
\ No newline at end of file
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Mon Apr 23 22:47:31 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Tue Apr 24 00:43:49 2012 +0200
@@ -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:workflow a prov:Activity .
-ex:subWorkflow a prov:Activity .
-ex:subWorkflow prov:wasStartedByActivity prov:Workflow .
\ No newline at end of file
+:workflow a prov:Activity .
+:subWorkflow a 
+	prov:Activity;
+	prov:wasStartedByActivity :workflow .
\ No newline at end of file