Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- specification {
- //
- // Definiujemy typ "person"
- //
- element person {
- // Opcjonalnie można włączyć styl, np. ikonkę "osoby":
- // style {
- // shape person
- // }
- }
- //
- // Definiujemy relacje
- //
- relationship spouse_of {
- // Opcjonalnie styl linii (np. czerwona linia ciągła):
- // style {
- // line solid
- // head none
- // color red
- // }
- }
- relationship parent_of {
- // Opcjonalnie styl linii (np. szara linia przerywana):
- // style {
- // line dashed
- // head normal
- // color gray
- // }
- }
- }
- model {
- //
- // GENERACJA 1
- //
- gvi = person "Jerzy VI" {
- description "Król (1895–1952)"
- }
- ebl = person "Elżbieta Bowes-Lyon" {
- description "Królowa Matka (1900–2002)"
- }
- // Małżeństwo
- gvi -[spouse_of]-> ebl "małżeństwo"
- //
- // GENERACJA 2
- //
- e2 = person "Elżbieta II" {
- description "Królowa (1926–2022)"
- }
- philip = person "Filip" {
- description "Książę Edynburga (1921–2021)"
- }
- // Rodzice Elżbiety II
- gvi -[parent_of]-> e2 "jest ojcem"
- ebl -[parent_of]-> e2 "jest matką"
- // Małżeństwo Elżbiety II i Filipa
- e2 -[spouse_of]-> philip "małżeństwo"
- //
- // GENERACJA 3 (dzieci Elżbiety II i Filipa)
- //
- charles = person "Karol III" {
- description "Król Karol III (ur. 1948)"
- }
- anne = person "Anna" {
- description "Księżniczka Anna (ur. 1950)"
- }
- andrew = person "Andrzej" {
- description "Książę Yorku (ur. 1960)"
- }
- edward = person "Edward" {
- description "Hrabia Wessex (ur. 1964)"
- }
- // Relacje rodzic-dziecko w Gen3
- e2 -[parent_of]-> charles "jest matką"
- philip -[parent_of]-> charles "jest ojcem"
- e2 -[parent_of]-> anne "jest matką"
- philip -[parent_of]-> anne "jest ojcem"
- e2 -[parent_of]-> andrew "jest matką"
- philip -[parent_of]-> andrew "jest ojcem"
- e2 -[parent_of]-> edward "jest matką"
- philip -[parent_of]-> edward "jest ojcem"
- //
- // GENERACJA 4 (wnuki Elżbiety II)
- //
- // Dzieci Karola
- william = person "William" {
- description "Książę Walii (ur. 1982)"
- }
- harry = person "Harry" {
- description "Książę Sussex (ur. 1984)"
- }
- charles -[parent_of]-> william "jest ojcem"
- charles -[parent_of]-> harry "jest ojcem"
- // Dzieci Andrzeja
- beatrice = person "Beatrycze" {
- description "Księżniczka Beatrycze (ur. 1988)"
- }
- eugenie = person "Eugenia" {
- description "Księżniczka Eugenia (ur. 1990)"
- }
- andrew -[parent_of]-> beatrice "jest ojcem"
- andrew -[parent_of]-> eugenie "jest ojcem"
- // Dzieci Edwarda
- james = person "Jakub, wicehrabia Severn" {
- description "Syn Edwarda (ur. 2007)"
- }
- louise = person "Louise Windsor" {
- description "Lady Louise Windsor (ur. 2003)"
- }
- edward -[parent_of]-> james "jest ojcem"
- edward -[parent_of]-> louise "jest ojcem"
- // Dzieci Anny
- peter = person "Peter Phillips" {
- description "Syn księżniczki Anny (ur. 1977)"
- }
- zara = person "Zara Tindall" {
- description "Córka księżniczki Anny (ur. 1981)"
- }
- anne -[parent_of]-> peter "jest matką"
- anne -[parent_of]-> zara "jest matką"
- //
- // GENERACJA 5 (prawnuki Elżbiety II)
- //
- // Dzieci Williama
- pg = person "Książę Jerzy" {
- description "Syn Williama (ur. 2013)"
- }
- pc = person "Księżniczka Charlotta" {
- description "Córka Williama (ur. 2015)"
- }
- pl = person "Książę Ludwik" {
- description "Syn Williama (ur. 2018)"
- }
- william -[parent_of]-> pg "jest ojcem"
- william -[parent_of]-> pc "jest ojcem"
- william -[parent_of]-> pl "jest ojcem"
- // Dzieci Harry'ego
- archie = person "Archie Mountbatten-Windsor" {
- description "Syn Harry'ego (ur. 2019)"
- }
- lilibet = person "Lilibet Mountbatten-Windsor" {
- description "Córka Harry'ego (ur. 2021)"
- }
- harry -[parent_of]-> archie "jest ojcem"
- harry -[parent_of]-> lilibet "jest ojcem"
- }
- views {
- //
- // Widok obejmujący wszystkie elementy
- //
- view final {
- title "Brytyjska Rodzina Królewska - 5 Pokoleń"
- include *
- }
- }
- notations {
- legend {
- item person "Członek rodziny"
- item spouse_of "Małżeństwo"
- item parent_of "Rodzic -> Dziecko"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement