# # This example shows an example of reasoning about a role's parameters. There # are 4 principals StateU, Bob, Maryann, and Joe. StateU wants to establish a # set of founding alumni based on the year of graduation. On graduation each # alum has previously been issued a credential parameterized with their major # and graduation year. StateU sets up a policy that says that a principal is a # founding alum if they graduated in 1960, 1961, or 1963 no matter what major # the principal had. One assumes there was some kind of NCAA suspension in # 1962. This policy is expressed in Credential 1. # # Credentials 2, 3, and 4 each assign a diploma credential to Bob (a 1961 # mathematics degree), Joe (a 1955 zoology degree) and Maryann (a 1962 # psychology degree). # # The query.py file asks if each of these principals are favored # alums, and only Bob is. # alumni2_rt1 # Credential #1 # [keyid:stateU].role:foundingAlumni # <- [keyid:stateU].role:diploma([?], [integer:?Year:[1960,1961,1963]]) # Credential 2 # [keyid:stateU].role:diploma([string:'mathmatics'],[integer:1961]) <- [keyid:bob] # Credential 3 # [keyid:stateU].role:diploma([string:'zoology'],[integer:1955]) <- [keyid:joe] # Credential 4 # [keyid:stateU].role:diploma([string:'psychology'],[integer:1962]) <- [keyid:maryann]