Example divided in three parts
authordgarijo
Mon, 16 Apr 2012 23:37:12 +0200
changeset 2334 ce09ee3eacdd
parent 2333 e19c467c854d
child 2335 5ed5a96c31dc
Example divided in three parts
examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt1.ttl
examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt2.ttl
examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt3.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt1.ttl	Mon Apr 16 23:37:12 2012 +0200
@@ -0,0 +1,88 @@
+@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix prov: <http://www.w3.org/ns/prov#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex:   <http://example.org#> .
+@prefix sioc: <http://rdfs.org/sioc/ns#Post> .
+
+ex:accountPost{
+	ex:accountPost 
+		a prov:Account
+	.
+	ex:derek
+	   a prov:Agent;
+	   a foaf:Person;
+	   foaf:givenName "Derek"^^xsd:string;
+	   foaf:mbox      <mailto:dererk@example.org>;
+	   prov:actedOnBehalfOf ex:chartgen 
+	.
+	ex:monica
+	   a prov:Agent;
+	   a foaf:Person;
+	   foaf:givenName "Monica"^^xsd:string;
+	   foaf:mbox      <mailto:monica@example.org>
+	.
+
+	ex:chartgen 
+	   a prov:Agent;
+	   a prov:Organization;
+	   foaf:name "Chart Generators"
+	. 
+
+	ex:aggregatedByRegions
+	   a prov:Entity;
+	   prov:atLocation <file://Users/aggr.txt>
+	.
+
+	ex:post9821 
+	   a prov:Entity, sioc:Post;   
+	   prov:wasGeneratedBy ex:publicationActivity1123;
+	   prov:atLocation ex:more-crime-happens-in-cities;  ##PERMALINK of the post
+	   ex:snapshotContent ex:postContent0;                ##Snapshot with the content of this version
+	   prov:qualifiedGeneration [
+		  a prov:Generation;
+		  prov:activity ex:publicationActivity1123;
+		  prov:atTime "2011-07-16T01:52:02Z"^^xsd:dateTime; 
+		  prov:atLocation <http://dbpedia.org/resource/Madrid>.
+	   ];
+	   sioc:title "More crime happens in cities"^^xsd:string;
+	   prov:hadOriginalSource ex:aggregatedByRegions;
+	   prov:wasAttributedTo ex:dereck
+	.
+
+	##Version 2 of the post
+	ex:post9821v1
+		a prov:Entity, sioc:Post;
+		prov:atLocation ex:more-crime-happens-in-cities;   ##PERMALINK of the post
+		ex:snapshotContent ex:postContent1;                ##Snapshot with the content of this version
+		prov:wasRevisionOf ex:post9821;
+		prov:specializationOf ex:post9821;
+		prov:wasAttributedTo ex:dereck
+	.
+
+	##Rephrasing of the post in a new version
+	ex:post9821v2
+		a prov:Entity, sioc:Post;
+		prov:atLocation ex:more-crime-happens-in-cities-for-dummies;  ##PERMALINK of the post
+		ex:snapshotContent ex:postContent2;                           ##Snapshot with the content of this version
+		prov:alternateOf ex:post9821v1;
+		prov:specializationOf ex:post9821;
+		sioc:title "More crime happens in cities for dummies"^^xsd:string;
+		prov:wasAttributedTo ex:monica
+	.
+		
+	   
+	<http://dbpedia.org/resource/Madrid> 
+		a prov:Location
+	.
+
+	ex:publicationActivity1123 
+		a prov:Activity;
+		prov:wasStartedAt      "2011-07-16T01:01:01Z"^^xsd:dateTime;
+		prov:wasEndedAt        "2011-07-16T01:52:02Z"^^xsd:dateTime;
+		prov:wasAssociatedWith ex:derek;
+		prov:used              ex:aggregatedByRegions;   
+		prov:generated         ex:post9821;
+		prov:wasStartedBy 	   ex:dereck;
+		prov:wasEndedBy 	   ex:dereck
+	.
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt2.ttl	Mon Apr 16 23:37:12 2012 +0200
@@ -0,0 +1,23 @@
+@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix prov: <http://www.w3.org/ns/prov#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex:   <http://example.org#> .
+@prefix sioc: <http://rdfs.org/sioc/ns#Post> .
+
+ex:accountPost2{
+	ex:accountPost2 
+		a prov:Account;
+		prov:hasAnnotation ex:noteMadeByParser
+	.
+	
+	ex:john 
+		a prov:Agent
+	.
+	
+	ex:post19201
+		a prov:Entity, sioc:Post;
+		prov:wasAttributedTo ex:john;
+		prov:wasQuotedFrom post9821v1, post9821v2;
+		prov:hadOriginalSource ex:aggregatedByRegions
+	.
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-25-extended-crime-file-example/rdf/extended-crime-file-pt3.ttl	Mon Apr 16 23:37:12 2012 +0200
@@ -0,0 +1,24 @@
+@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix prov: <http://www.w3.org/ns/prov#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex:   <http://example.org#> .
+@prefix sioc: <http://rdfs.org/sioc/ns#Post> .
+
+ex:noteMadeByParser{
+	ex:noteMadeByParser 
+		a prov:Note;
+		prov:wasAttributedTo ex:boogleParser
+	.
+	
+	ex:boogleParser 
+		a prov:SoftwareAgent;
+		prov:actedOnBehalfOf ex:boogle
+	.
+	ex:boogle
+		a prov:Organization
+	.
+	
+	ex:accountPost2 
+		ex:parsedDate "2011-08-16T00:00:02Z"^^xsd:dateTime
+	.
+}
\ No newline at end of file