Advertisement
ptrcsky

LikeC4 - Rodzina Królewska 5 generacji

Feb 14th, 2025
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.27 KB | None | 0 0
  1. specification {
  2.   //
  3.   // Definiujemy typ "person"
  4.   //
  5.   element person {
  6.     // Opcjonalnie można włączyć styl, np. ikonkę "osoby":
  7.     // style {
  8.     //   shape person
  9.     // }
  10.   }
  11.  
  12.   //
  13.   // Definiujemy relacje
  14.   //
  15.   relationship spouse_of {
  16.     // Opcjonalnie styl linii (np. czerwona linia ciągła):
  17.     // style {
  18.     //   line solid
  19.     //   head none
  20.     //   color red
  21.     // }
  22.   }
  23.  
  24.   relationship parent_of {
  25.     // Opcjonalnie styl linii (np. szara linia przerywana):
  26.     // style {
  27.     //   line dashed
  28.     //   head normal
  29.     //   color gray
  30.     // }
  31.   }
  32. }
  33.  
  34. model {
  35.   //
  36.   // GENERACJA 1
  37.   //
  38.   gvi = person "Jerzy VI" {
  39.     description "Król (1895–1952)"
  40.   }
  41.   ebl = person "Elżbieta Bowes-Lyon" {
  42.     description "Królowa Matka (1900–2002)"
  43.   }
  44.  
  45.   // Małżeństwo
  46.   gvi -[spouse_of]-> ebl "małżeństwo"
  47.  
  48.   //
  49.   // GENERACJA 2
  50.   //
  51.   e2 = person "Elżbieta II" {
  52.     description "Królowa (1926–2022)"
  53.   }
  54.   philip = person "Filip" {
  55.     description "Książę Edynburga (1921–2021)"
  56.   }
  57.  
  58.   // Rodzice Elżbiety II
  59.   gvi -[parent_of]-> e2 "jest ojcem"
  60.   ebl -[parent_of]-> e2 "jest matką"
  61.  
  62.   // Małżeństwo Elżbiety II i Filipa
  63.   e2 -[spouse_of]-> philip "małżeństwo"
  64.  
  65.   //
  66.   // GENERACJA 3 (dzieci Elżbiety II i Filipa)
  67.   //
  68.   charles = person "Karol III" {
  69.     description "Król Karol III (ur. 1948)"
  70.   }
  71.   anne = person "Anna" {
  72.     description "Księżniczka Anna (ur. 1950)"
  73.   }
  74.   andrew = person "Andrzej" {
  75.     description "Książę Yorku (ur. 1960)"
  76.   }
  77.   edward = person "Edward" {
  78.     description "Hrabia Wessex (ur. 1964)"
  79.   }
  80.  
  81.   // Relacje rodzic-dziecko w Gen3
  82.   e2 -[parent_of]-> charles "jest matką"
  83.   philip -[parent_of]-> charles "jest ojcem"
  84.  
  85.   e2 -[parent_of]-> anne "jest matką"
  86.   philip -[parent_of]-> anne "jest ojcem"
  87.  
  88.   e2 -[parent_of]-> andrew "jest matką"
  89.   philip -[parent_of]-> andrew "jest ojcem"
  90.  
  91.   e2 -[parent_of]-> edward "jest matką"
  92.   philip -[parent_of]-> edward "jest ojcem"
  93.  
  94.   //
  95.   // GENERACJA 4 (wnuki Elżbiety II)
  96.   //
  97.   // Dzieci Karola
  98.   william = person "William" {
  99.     description "Książę Walii (ur. 1982)"
  100.   }
  101.   harry = person "Harry" {
  102.     description "Książę Sussex (ur. 1984)"
  103.   }
  104.   charles -[parent_of]-> william "jest ojcem"
  105.   charles -[parent_of]-> harry "jest ojcem"
  106.  
  107.   // Dzieci Andrzeja
  108.   beatrice = person "Beatrycze" {
  109.     description "Księżniczka Beatrycze (ur. 1988)"
  110.   }
  111.   eugenie = person "Eugenia" {
  112.     description "Księżniczka Eugenia (ur. 1990)"
  113.   }
  114.   andrew -[parent_of]-> beatrice "jest ojcem"
  115.   andrew -[parent_of]-> eugenie "jest ojcem"
  116.  
  117.   // Dzieci Edwarda
  118.   james = person "Jakub, wicehrabia Severn" {
  119.     description "Syn Edwarda (ur. 2007)"
  120.   }
  121.   louise = person "Louise Windsor" {
  122.     description "Lady Louise Windsor (ur. 2003)"
  123.   }
  124.   edward -[parent_of]-> james "jest ojcem"
  125.   edward -[parent_of]-> louise "jest ojcem"
  126.  
  127.   // Dzieci Anny
  128.   peter = person "Peter Phillips" {
  129.     description "Syn księżniczki Anny (ur. 1977)"
  130.   }
  131.   zara = person "Zara Tindall" {
  132.     description "Córka księżniczki Anny (ur. 1981)"
  133.   }
  134.   anne -[parent_of]-> peter "jest matką"
  135.   anne -[parent_of]-> zara "jest matką"
  136.  
  137.   //
  138.   // GENERACJA 5 (prawnuki Elżbiety II)
  139.   //
  140.   // Dzieci Williama
  141.   pg = person "Książę Jerzy" {
  142.     description "Syn Williama (ur. 2013)"
  143.   }
  144.   pc = person "Księżniczka Charlotta" {
  145.     description "Córka Williama (ur. 2015)"
  146.   }
  147.   pl = person "Książę Ludwik" {
  148.     description "Syn Williama (ur. 2018)"
  149.   }
  150.  
  151.   william -[parent_of]-> pg "jest ojcem"
  152.   william -[parent_of]-> pc "jest ojcem"
  153.   william -[parent_of]-> pl "jest ojcem"
  154.  
  155.   // Dzieci Harry'ego
  156.   archie = person "Archie Mountbatten-Windsor" {
  157.     description "Syn Harry'ego (ur. 2019)"
  158.   }
  159.   lilibet = person "Lilibet Mountbatten-Windsor" {
  160.     description "Córka Harry'ego (ur. 2021)"
  161.   }
  162.  
  163.   harry -[parent_of]-> archie "jest ojcem"
  164.   harry -[parent_of]-> lilibet "jest ojcem"
  165. }
  166.  
  167. views {
  168.   //
  169.   // Widok obejmujący wszystkie elementy
  170.   //
  171.   view final {
  172.     title "Brytyjska Rodzina Królewska - 5 Pokoleń"
  173.     include *
  174.   }
  175. }
  176.  
  177. notations {
  178.   legend {
  179.     item person "Członek rodziny"
  180.     item spouse_of "Małżeństwo"
  181.     item parent_of "Rodzic -> Dziecko"
  182.   }
  183. }
  184.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement