examples/eg-34-us-supreme-court-membership/rdf/eg-34-us-supreme-court-membership.ttl
author Paul Groth <p.t.groth@vu.nl>
Fri, 07 Jun 2013 20:21:19 +0200
changeset 6412 600c6fd1fdb4
parent 3375 bd5b95246778
permissions -rw-r--r--
minor updates to address dong's comments
     1 @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
     2 @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
     3 @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
     4 @prefix owl:     <http://www.w3.org/2002/07/owl#> .
     5 @prefix dcterms: <http://purl.org/dc/terms/> .
     6 @prefix sd:      <http://www.w3.org/ns/sparql-service-description#> .
     7 @prefix dcat:    <http://www.w3.org/ns/dcat#> .
     8 @prefix void:    <http://rdfs.org/ns/void#> .
     9 @prefix foaf:    <http://xmlns.com/foaf/0.1/> .
    10 @prefix prov:    <http://www.w3.org/ns/prov#> .
    11 @prefix :        <http://dvcs.w3.org/hg/prov/raw-file/tip/examples/eg-24-prov-o-html-examples/rdf/eg-24-prov-o-html-examples.ttl#> .
    12 
    13 <> 
    14    a prov:Bundle;
    15    prov:wasDerivedFrom  <http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States_by_court_composition>,
    16                         <http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States_by_seat>,
    17                         <http://www.w3.org/2011/prov/track/issues/374>;
    18    prov:wasAttributedTo <http://tw.rpi.edu/instances/TimLebo>;
    19 .
    20 
    21 :todays-us-supreme-court-as-collection
    22    a prov:Collection;
    23    prov:hadMember
    24       <http://dbpedia.org/resource/John_Glover_Roberts,_Jr.>,
    25       <http://dbpedia.org/resource/Antonin_Scalia>, 
    26       <http://dbpedia.org/resource/Anthony_Kennedy>, 
    27       <http://dbpedia.org/resource/Clarence_Thomas>, 
    28       <http://dbpedia.org/resource/Ruth_Bader_Ginsburg>,
    29       <http://dbpedia.org/resource/Stephen_Breyer>,     
    30       <http://dbpedia.org/resource/Samuel_Alito>,      
    31       <http://dbpedia.org/resource/Sonia_Sotomayor>,  
    32       <http://dbpedia.org/resource/Elena_Kagan>;     
    33 .
    34 
    35 :todays-us-supreme-court-as-dictionary
    36    a prov:Dictionary, :RobertsCourt;
    37 
    38    prov:qualifiedGeneration [
    39       a prov:Generation;
    40       dcterms:date "2012"^^xsd:gYear;                                         # Since we need to be imprecise, we can't use prov:generatedAtTime or prov:atTime
    41    ];
    42 
    43    prov:wasDerivedFrom         :court-in-2010-with-stevens-seat-3-empty; # Inferred from prov:derivedByInserationFrom
    44    prov:derivedByInsertionFrom :court-in-2010-with-stevens-seat-3-empty;
    45    prov:qualifiedInsertion [
    46       a prov:Inseration;
    47       prov:dictionary :court-in-2010-with-stevens-seat-3-empty;
    48       prov:inserted [ 
    49          a prov:KeyValuePair;
    50          prov:pairKey   "seat 3"^^xsd:string;
    51          prov:pairValue <http://dbpedia.org/resource/Elena_Kagan>; 
    52       ];
    53    ];
    54 
    55    prov:hadMember [                                                           # Using a prov:Dictionary is a second step of complexity beyond prov:Collection.
    56       a prov:KeyValuePair;
    57       prov:pairKey   "chief";
    58       prov:pairValue <http://dbpedia.org/resource/John_Glover_Roberts,_Jr.>;
    59    ], [
    60       a prov:KeyValuePair;
    61       prov:pairKey   "seat 9";
    62       prov:pairValue <http://dbpedia.org/resource/Antonin_Scalia>;
    63    ], [
    64       a prov:KeyValuePair;
    65       prov:pairKey   "seat 4";
    66       prov:pairValue <http://dbpedia.org/resource/Anthony_Kennedy>;
    67    ], [
    68       a prov:KeyValuePair;
    69       prov:pairKey   "seat 10";
    70       prov:pairValue <http://dbpedia.org/resource/Clarence_Thomas>;
    71    ], [
    72       a prov:KeyValuePair;
    73       prov:pairKey   "seat 6";
    74       prov:pairValue <http://dbpedia.org/resource/Ruth_Bader_Ginsburg>;
    75    ], [
    76       a prov:KeyValuePair;
    77       prov:pairKey   "seat 2";
    78       prov:pairValue <http://dbpedia.org/resource/Stephen_Breyer>;
    79    ], [
    80       a prov:KeyValuePair;
    81       prov:pairKey   "seat 8";
    82       prov:pairValue <http://dbpedia.org/resource/Samuel_Alito>;
    83    ], [
    84       a prov:KeyValuePair;
    85       prov:pairKey   "seat 1";
    86       prov:pairValue <http://dbpedia.org/resource/Sonia_Sotomayor>;
    87    ], [
    88       a prov:KeyValuePair;
    89       prov:pairKey   "seat 3";
    90       prov:pairValue <http://dbpedia.org/resource/Elena_Kagan>;
    91    ];
    92 
    93    dcterms:description [
    94       a prov:Entity;
    95       prov:value "2010–present: A. Scalia A. Kennedy C. Thomas R.B. Ginsburg S. Breyer S. Alito S. Sotomayor E. Kagan";
    96       prov:wasQuotedFrom :page-by-composition;
    97    ];
    98 
    99    prov:wasDerivedFrom :the-first-us-supreme-court, 
   100 
   101    #
   102    # We can go a third step and qualify the members' memberships.
   103    #
   104 
   105    prov:qualifiedMembership [ # We can qualify a KeyValuePair's membership in this Dictionary.
   106       a prov:Membership;
   107       prov:pair [            
   108          a prov:KeyValuePair;
   109          prov:pairKey   "chief";
   110          prov:pairValue <http://dbpedia.org/resource/John_Glover_Roberts,_Jr.>;
   111       ];
   112       
   113       prov:hadRole :chief-justice;     # Here is my little addition about Chief Roberts.
   114    ];
   115    prov:qualifiedMembership [ # We can also qualify many KeyValuePairs' memberships in this Dictionary.
   116       a prov:Membership;
   117 
   118       prov:hadRole :associate-justice; # Here is my little addition about the rest of the Chiefs.
   119 
   120       prov:pair [ # The same property is used to point to one or many KeyValuePairs.
   121          a prov:KeyValuePair;
   122          prov:pairKey   "seat 9";
   123          prov:pairValue <http://dbpedia.org/resource/Antonin_Scalia>;
   124       ], [
   125          a prov:KeyValuePair;
   126          prov:pairKey   "seat 4";
   127          prov:pairValue <http://dbpedia.org/resource/Anthony_Kennedy>;
   128       ], [
   129          a prov:KeyValuePair;
   130          prov:pairKey   "seat 10";
   131          prov:pairValue <http://dbpedia.org/resource/Clarence_Thomas>;
   132       ], [
   133          a prov:KeyValuePair;
   134          prov:pairKey   "seat 6";
   135          prov:pairValue <http://dbpedia.org/resource/Ruth_Bader_Ginsburg>;
   136       ], [
   137          a prov:KeyValuePair;
   138          prov:pairKey   "seat 2";
   139          prov:pairValue <http://dbpedia.org/resource/Stephen_Breyer>;
   140       ], [
   141          a prov:KeyValuePair;
   142          prov:pairKey   "seat 8";
   143          prov:pairValue <http://dbpedia.org/resource/Samuel_Alito>;
   144       ], [
   145          a prov:KeyValuePair;
   146          prov:pairKey   "seat 1";
   147          prov:pairValue <http://dbpedia.org/resource/Sonia_Sotomayor>;
   148       ], [
   149          a prov:KeyValuePair;
   150          prov:pairKey   "seat 3";
   151          prov:pairValue <http://dbpedia.org/resource/Elena_Kagan>;
   152       ];
   153    ]; # <- the prov:Membership
   154 .
   155 
   156 :the-first-us-supreme-court-as-dictionary
   157    a prov:Collection;
   158    prov:hadMember                                    # These are asserted on a simple (first step)
   159       <http://dbpedia.org/resource/John_Jay>,        # prov:Collection.
   160       <http://dbpedia.org/resource/John_Rutledge>,   #
   161       <http://dbpedia.org/resource/William_Cushing>, #
   162       <http://dbpedia.org/resource/James_Wilson>,    #
   163       <http://dbpedia.org/resource/John_Blair,_Jr.>, #
   164       <http://dbpedia.org/resource/James_Iredell>;   #
   165 .
   166 
   167 :the-first-us-supreme-court-as-dictionary
   168    a prov:Dictionary, :JayCourt;
   169    dcterms:description [
   170       a prov:Entity;
   171       prov:value "1789–1792: J. Rutledge Wm. Cushing J. Wilson J. Blair J. Iredell";
   172       prov:wasQuotedFrom :page-by-composition;
   173    ];
   174    prov:qualifiedGeneration [
   175       a prov:Generation;
   176       dcterms:date "1789"^^xsd:gYear;
   177    ];
   178    prov:qualifiedInvalidation [
   179       a prov:Invalidation;
   180       dcterms:date "1792"^^xsd:gYear;
   181    ];
   182    prov:hadMember [                                 # Using a prov:Dictionary is a second step of complexity beyond prov:Collection.
   183       a prov:KeyValuePair;
   184       prov:pairKey   "chief";
   185       prov:pairValue <http://dbpedia.org/resource/John_Jay>;
   186    ], [
   187       a prov:KeyValuePair;
   188       prov:pairKey   "seat 4";
   189       prov:pairValue <http://dbpedia.org/resource/John_Rutledge>;
   190    ], [
   191       a prov:KeyValuePair;
   192       prov:pairKey   "seat 2";
   193       prov:pairValue <http://dbpedia.org/resource/William_Cushing>;
   194    ], [
   195       a prov:KeyValuePair;
   196       prov:pairKey   "seat 1";
   197       prov:pairValue <http://dbpedia.org/resource/James_Wilson>;
   198    ], [
   199       a prov:KeyValuePair;
   200       prov:pairKey   "seat 3";
   201       prov:pairValue <http://dbpedia.org/resource/John_Blair,_Jr.>;
   202    ], [
   203       a prov:KeyValuePair;
   204       prov:pairKey   "seat 5";
   205       prov:wasDerivedFrom :page-by-seat; # Yes, I'm making a KeyValuePair an Entity here.
   206       prov:pairValue <http://dbpedia.org/resource/James_Iredell>;
   207    ];
   208 
   209    #
   210    # We can go a third step and qualify the members' memberships.
   211    #
   212 
   213    prov:qualifiedMembership [ # We can qualify a KeyValuePair's membership in this Dictionary.
   214       a prov:Membership;
   215       prov:pair [
   216          a prov:KeyValuePair;
   217          prov:pairKey   "chief";
   218          prov:pairValue <http://dbpedia.org/resource/John_Jay>;
   219       ];
   220 
   221       prov:hadRole :chief-justice;     # Here is my little addition about Chief Jay.
   222    ];
   223    prov:qualifiedMembership [ # We can also qualify many KeyValuePairs' memberships in this Dictionary.
   224       a prov:Membership;
   225 
   226       prov:hadRole :associate-justice; # Here is my little addition about the rest of the Chiefs.
   227 
   228       prov:pair [ # The same property is used to point to one or many KeyValuePairs.
   229          a prov:KeyValuePair;
   230          prov:pairKey   "seat 4";
   231          prov:pairValue <http://dbpedia.org/resource/John_Rutledge>;
   232       ], [
   233          a prov:KeyValuePair;
   234          prov:pairKey   "seat 2";
   235          prov:pairValue <http://dbpedia.org/resource/William_Cushing>;
   236       ], [
   237          a prov:KeyValuePair;
   238          prov:pairKey   "seat 1";
   239          prov:pairValue <http://dbpedia.org/resource/James_Wilson>;
   240       ], [
   241          a prov:KeyValuePair;
   242          prov:pairKey   "seat 3";
   243          prov:pairValue <http://dbpedia.org/resource/John_Blair,_Jr.>;
   244       ], [
   245          a prov:KeyValuePair;
   246          prov:pairKey   "seat 5";
   247          prov:wasDerivedFrom :page-by-seat; # Yes, I'm making a KeyValuePair an Entity here.
   248          prov:pairValue <http://dbpedia.org/resource/James_Iredell>;
   249       ];
   250    ]; # <- the prov:Membership
   251 .
   252 
   253 :page-by-seat
   254    a prov:Entity, :WikipediaPage;
   255    prov:specializationOf <http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States_by_seat>;
   256    prov:wasGeneratedAtTime "2011-08-31T12:51"^^xsd:dateTime;
   257 .
   258 
   259 :page-by-composition
   260    a prov:Entity, :WikipediaPage;
   261    prov:specializationOf <http://en.wikipedia.org/wiki/List_of_Justices_of_the_Supreme_Court_of_the_United_States_by_court_composition>;
   262    prov:wasGeneratedAtTime "2012-05-16T14:33"^^xsd:dateTime;
   263 .
   264 
   265 :scalia-left
   266    a prov:Removal;
   267 
   268 <http://dbpedia.org/resource/Elena_Kagan>