empty dictionary and dictionary property examples
authordgarijo
Tue, 24 Apr 2012 11:21:00 +0200
changeset 2490 a8ab862d6f62
parent 2489 ebc92c8ddb93
child 2491 fb45cbed6d6e
empty dictionary and dictionary property examples
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EmptyDictionary.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_dictionary.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EmptyDictionary.ttl	Tue Apr 24 09:02:57 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EmptyDictionary.ttl	Tue Apr 24 11:21:00 2012 +0200
@@ -1,7 +1,25 @@
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix prov: <http://www.w3.org/ns/prov#> .
 @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.org/> .
 
-# TODO
+:e1 a prov:Entity .
+:e2 a prov:Entity .
+
+:c  a prov:EmptyDictionary .
+
+:c1 a prov:Dictionary;
+   prov:derivedByInsertionFrom :c;
+   prov:qualifiedInsertion [ 
+      a prov:Insertion;
+      prov:dictionary :c;
+      prov:inserted [ 
+         a prov:KeyValuePair;
+         prov:key   "k1"^^xsd:string;
+         prov:value :e1;
+      ], [ 
+         a prov:KeyValuePair;
+         prov:key   "k2"^^xsd:string;
+         prov:value :e2;
+      ];
+   ]; 
+. 
\ No newline at end of file
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_dictionary.ttl	Tue Apr 24 09:02:57 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_dictionary.ttl	Tue Apr 24 11:21:00 2012 +0200
@@ -1,7 +1,20 @@
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix prov: <http://www.w3.org/ns/prov#> .
 @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.org/> .
 
-# TODO
+:e1 a prov:Entity .
+
+:c  a prov:EmptyDictionary .
+
+:c1 a prov:Dictionary;
+   prov:derivedByInsertionFrom :c;
+   prov:qualifiedInsertion [ 
+      a prov:Insertion;
+      prov:dictionary :c;
+      prov:inserted [ 
+         a prov:KeyValuePair;
+         prov:key   "k1"^^xsd:string;
+         prov:value :e1;
+      ];
+   ]; 
+.