Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- specification {
- //
- // Definiujemy typ "person"
- //
- element person {
- // Opcjonalnie można dodać styl, np.:
- // style {
- // shape person
- // }
- }
- //
- // Definiujemy relacje
- //
- relationship spouse_of {
- // line solid, arrow none, color red? Można dodać styl
- // style {
- // line solid
- // head none
- // color red
- // }
- }
- relationship parent_of {
- // line dashed, arrow normal? Można dodać styl
- // style {
- // line dashed
- // head normal
- // color gray
- // }
- }
- }
- model {
- //
- // GENERATION 1
- //
- gvi = person "George VI" {
- description "King (1895-1952)"
- }
- ebl = person "Elizabeth Bowes-Lyon" {
- description "Queen Mother (1900-2002)"
- }
- // Małżeństwo
- gvi -[spouse_of]-> ebl "marriage"
- //
- // GENERATION 2
- //
- e2 = person "Elizabeth II" {
- description "Queen (1926-2022)"
- }
- philip = person "Prince Philip" {
- description "Duke of Edinburgh (1921-2021)"
- }
- // Rodzice Elizabeth II
- gvi -[parent_of]-> e2 "is father of"
- ebl -[parent_of]-> e2 "is mother of"
- // Małżeństwo Elżbiety II i Philipa
- e2 -[spouse_of]-> philip "marriage"
- //
- // GENERATION 3 (dzieci Elżbiety II i Philipa)
- //
- charles = person "Charles III" {
- description "King Charles III (born 1948)"
- }
- anne = person "Princess Anne" {
- description "Princess Royal (born 1950)"
- }
- andrew = person "Prince Andrew" {
- description "Duke of York (born 1960)"
- }
- edward = person "Prince Edward" {
- description "Earl of Wessex (born 1964)"
- }
- // Relacje rodzic-dziecko w Gen3
- e2 -[parent_of]-> charles "is mother of"
- philip -[parent_of]-> charles "is father of"
- e2 -[parent_of]-> anne "is mother of"
- philip -[parent_of]-> anne "is father of"
- e2 -[parent_of]-> andrew "is mother of"
- philip -[parent_of]-> andrew "is father of"
- e2 -[parent_of]-> edward "is mother of"
- philip -[parent_of]-> edward "is father of"
- //
- // GENERATION 4 (wnuki Elżbiety II)
- //
- // Dzieci Charlesa
- william = person "Prince William" {
- description "Prince of Wales (born 1982)"
- }
- harry = person "Prince Harry" {
- description "Duke of Sussex (born 1984)"
- }
- charles -[parent_of]-> william "is father of"
- charles -[parent_of]-> harry "is father of"
- // Dzieci Andrew
- beatrice = person "Princess Beatrice" {
- description "Daughter of Prince Andrew (born 1988)"
- }
- eugenie = person "Princess Eugenie" {
- description "Daughter of Prince Andrew (born 1990)"
- }
- andrew -[parent_of]-> beatrice "is father of"
- andrew -[parent_of]-> eugenie "is father of"
- // Dzieci Edwarda
- james = person "James, Viscount Severn" {
- description "Son of Prince Edward (born 2007)"
- }
- louise = person "Lady Louise Windsor" {
- description "Daughter of Prince Edward (born 2003)"
- }
- edward -[parent_of]-> james "is father of"
- edward -[parent_of]-> louise "is father of"
- // Dzieci Anny
- peter = person "Peter Phillips" {
- description "Son of Princess Anne (born 1977)"
- }
- zara = person "Zara Tindall" {
- description "Daughter of Princess Anne (born 1981)"
- }
- anne -[parent_of]-> peter "is mother of"
- anne -[parent_of]-> zara "is mother of"
- }
- views {
- //
- // Widok obejmujący wszystkie elementy
- //
- view final {
- title "Royal Family - 4 Generations"
- include *
- }
- }
- notations {
- legend {
- item person "A family member"
- item spouse_of "Marriage"
- item parent_of "Parent -> Child"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement