pair eg
authorTim L <lebot@rpi.edu>
Mon, 18 Jun 2012 00:33:46 -0700
changeset 3382 411b4431c528
parent 3381 d2a4d7d72092
child 3383 b191b7c56979
pair eg
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_pair.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_pair.ttl	Sun Jun 17 23:29:42 2012 -0700
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_pair.ttl	Mon Jun 18 00:33:46 2012 -0700
@@ -4,4 +4,74 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:todays-us-supreme-court-as-dictionary
+   a prov:Dictionary, :RobertsCourt;
+   dcterms:description [
+      a prov:Entity;
+      prov:value "2010–present: A. Scalia A. Kennedy C. Thomas R.B. Ginsburg S. Breyer S. Alito S. Sotomayor E. Kagan";
+      prov:wasQuotedFrom :page-by-composition;
+   ];
+   prov:qualifiedGeneration [
+      a prov:Generation;
+      dcterms:date "2012"^^xsd:gYear; # Since we need to be imprecise, we can't use prov:generatedAtTime or prov:atTime
+   ];
+
+   prov:wasDerivedFrom :the-first-us-supreme-court;
+
+   prov:qualifiedMembership [ # We can qualify a KeyValuePair's membership in this Dictionary.
+      a prov:Membership;
+      prov:pair [            
+         a prov:KeyValuePair;
+         prov:pairKey   "chief";
+         prov:pairValue <http://dbpedia.org/resource/John_Glover_Roberts,_Jr.>;
+      ];
+      
+      prov:hadRole :chief-justice;     # Here is my little addition about Chief Roberts.
+   ];
+   prov:qualifiedMembership [ # We can also qualify many KeyValuePairs' memberships in this Dictionary.
+      a prov:Membership;
+
+      prov:hadRole :associate-justice; # Here is my little addition about the rest of the Chiefs.
+
+      prov:pair [ # The same property is used to point to one or many KeyValuePairs.
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 9";
+         prov:pairValue <http://dbpedia.org/resource/Antonin_Scalia>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 4";
+         prov:pairValue <http://dbpedia.org/resource/Anthony_Kennedy>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 10";
+         prov:pairValue <http://dbpedia.org/resource/Clarence_Thomas>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 6";
+         prov:pairValue <http://dbpedia.org/resource/Ruth_Bader_Ginsburg>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 2";
+         prov:pairValue <http://dbpedia.org/resource/Stephen_Breyer>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 8";
+         prov:pairValue <http://dbpedia.org/resource/Samuel_Alito>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 1";
+         prov:pairValue <http://dbpedia.org/resource/Sonia_Sotomayor>;
+      ], [
+         a prov:KeyValuePair;
+         prov:pairKey   "seat 3";
+         prov:pairValue <http://dbpedia.org/resource/Elena_Kagan>;
+      ];
+   ];
+.
+
+
+:page-by-composition
+   a prov:Entity, :WikipediaPage;
+   prov:specializationOf <http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States_by_court_composition>;
+   prov:wasGeneratedAtTime "2012-05-16T14:33"^^xsd:dateTime;
+.