file i/o eg
authorTim L <lebot@rpi.edu>
Mon, 19 Sep 2011 16:26:21 -0400
changeset 348 5a8ffcbe55a9
parent 347 9431a148ad29
child 349 47fbedeb7213
file i/o eg
ontology/components/assumedBy/appending-a-file-to-itself.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ontology/components/assumedBy/appending-a-file-to-itself.ttl	Mon Sep 19 16:26:21 2011 -0400
@@ -0,0 +1,36 @@
+@prefix owl:  <http://www.w3.org/2002/07/owl#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix ext:  <http://dvcs.w3.org/hg/prov/file/tip/ontology/examples/ontology-extensions/crime-file/crime.owl#> .
+@prefix :     <#> .
+
+:Input  rdfs:subClassOf prov:Role .
+:Output rdfs:subClassOf prov:Role .
+
+:pe
+   a prov:ProcessExecution; :Concatentation;
+   dcterms:description "Tim used the cat unix command to append appending-a-file-to-itself.ttl to itself.";
+                       "cat appending-a-file-to-itself.ttl > tmp; cat tmp >> appending-a-file-to-itself.ttl";
+   prov:used [
+      a :Input, prov:Role, prov:Entity;
+      ext:hasFilePath <appending-a-file-to-itself.ttl>;
+      ext:hasFileContent "hello"^^xsd:string;
+      dcterms:modified "2011-09-12T16:00:00-04:00"^^xsd:dateTime;
+   ];
+   prov:used [
+      a prov:Controller;
+      prov:assumedBy <http://tw.rpi.edu/instances/TimLebo>;
+   ];
+   prov:used [
+      a :Output, prov:Role, prov:Entity;
+      ext:hasFilePath <appending-a-file-to-itself.ttl>;
+      ext:hasFileContent "hellohello"^^xsd:string;
+      dcterms:modified "2011-09-12T16:01:00-04:00"^^xsd:dateTime;
+   ];
+   rdfs:comment "NOTE, the contents of <appending-a-file-to-itself.ttl> is NO LONGER 'hellohello' - as it contains 'this string right here'";
+.
+
+<http://tw.rpi.edu/instances/TimLebo> 
+   a foaf:Person, [ owl:complementOf prov:Entity ] .