Advertisement
ptrcsky

LikeC4 - Rodzina Królewska

Feb 14th, 2025
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.55 KB | None | 0 0
  1. specification {
  2.   //
  3.   // Definiujemy typ "person"
  4.   //
  5.   element person {
  6.     // Opcjonalnie można dodać styl, np.:
  7.     // style {
  8.     //   shape person
  9.     // }
  10.   }
  11.  
  12.   //
  13.   // Definiujemy relacje
  14.   //
  15.   relationship spouse_of {
  16.     // line solid, arrow none, color red? Można dodać styl
  17.     // style {
  18.     //   line solid
  19.     //   head none
  20.     //   color red
  21.     // }
  22.   }
  23.   relationship parent_of {
  24.     // line dashed, arrow normal? Można dodać styl
  25.     // style {
  26.     //   line dashed
  27.     //   head normal
  28.     //   color gray
  29.     // }
  30.   }
  31. }
  32.  
  33. model {
  34.   //
  35.   // GENERATION 1
  36.   //
  37.   gvi = person "George VI" {
  38.     description "King (1895-1952)"
  39.   }
  40.   ebl = person "Elizabeth Bowes-Lyon" {
  41.     description "Queen Mother (1900-2002)"
  42.   }
  43.  
  44.   // Małżeństwo
  45.   gvi -[spouse_of]-> ebl "marriage"
  46.  
  47.   //
  48.   // GENERATION 2
  49.   //
  50.   e2 = person "Elizabeth II" {
  51.     description "Queen (1926-2022)"
  52.   }
  53.   philip = person "Prince Philip" {
  54.     description "Duke of Edinburgh (1921-2021)"
  55.   }
  56.  
  57.   // Rodzice Elizabeth II
  58.   gvi -[parent_of]-> e2 "is father of"
  59.   ebl -[parent_of]-> e2 "is mother of"
  60.  
  61.   // Małżeństwo Elżbiety II i Philipa
  62.   e2 -[spouse_of]-> philip "marriage"
  63.  
  64.   //
  65.   // GENERATION 3 (dzieci Elżbiety II i Philipa)
  66.   //
  67.   charles = person "Charles III" {
  68.     description "King Charles III (born 1948)"
  69.   }
  70.   anne = person "Princess Anne" {
  71.     description "Princess Royal (born 1950)"
  72.   }
  73.   andrew = person "Prince Andrew" {
  74.     description "Duke of York (born 1960)"
  75.   }
  76.   edward = person "Prince Edward" {
  77.     description "Earl of Wessex (born 1964)"
  78.   }
  79.  
  80.   // Relacje rodzic-dziecko w Gen3
  81.   e2 -[parent_of]-> charles "is mother of"
  82.   philip -[parent_of]-> charles "is father of"
  83.  
  84.   e2 -[parent_of]-> anne "is mother of"
  85.   philip -[parent_of]-> anne "is father of"
  86.  
  87.   e2 -[parent_of]-> andrew "is mother of"
  88.   philip -[parent_of]-> andrew "is father of"
  89.  
  90.   e2 -[parent_of]-> edward "is mother of"
  91.   philip -[parent_of]-> edward "is father of"
  92.  
  93.   //
  94.   // GENERATION 4 (wnuki Elżbiety II)
  95.   //
  96.   // Dzieci Charlesa
  97.   william = person "Prince William" {
  98.     description "Prince of Wales (born 1982)"
  99.   }
  100.   harry = person "Prince Harry" {
  101.     description "Duke of Sussex (born 1984)"
  102.   }
  103.   charles -[parent_of]-> william "is father of"
  104.   charles -[parent_of]-> harry "is father of"
  105.  
  106.   // Dzieci Andrew
  107.   beatrice = person "Princess Beatrice" {
  108.     description "Daughter of Prince Andrew (born 1988)"
  109.   }
  110.   eugenie = person "Princess Eugenie" {
  111.     description "Daughter of Prince Andrew (born 1990)"
  112.   }
  113.   andrew -[parent_of]-> beatrice "is father of"
  114.   andrew -[parent_of]-> eugenie "is father of"
  115.  
  116.   // Dzieci Edwarda
  117.   james = person "James, Viscount Severn" {
  118.     description "Son of Prince Edward (born 2007)"
  119.   }
  120.   louise = person "Lady Louise Windsor" {
  121.     description "Daughter of Prince Edward (born 2003)"
  122.   }
  123.   edward -[parent_of]-> james "is father of"
  124.   edward -[parent_of]-> louise "is father of"
  125.  
  126.   // Dzieci Anny
  127.   peter = person "Peter Phillips" {
  128.     description "Son of Princess Anne (born 1977)"
  129.   }
  130.   zara = person "Zara Tindall" {
  131.     description "Daughter of Princess Anne (born 1981)"
  132.   }
  133.   anne -[parent_of]-> peter "is mother of"
  134.   anne -[parent_of]-> zara "is mother of"
  135. }
  136.  
  137. views {
  138.   //
  139.   // Widok obejmujący wszystkie elementy
  140.   //
  141.   view final {
  142.     title "Royal Family - 4 Generations"
  143.     include *
  144.   }
  145. }
  146.  
  147. notations {
  148.   legend {
  149.     item person "A family member"
  150.     item spouse_of "Marriage"
  151.     item parent_of "Parent -> Child"
  152.   }
  153. }
  154.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement