Difference between revisions of "Wgraph:Ahnen"
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This is one of the examples on the [http://www.absint.com/aisee/galerie5.htm#graph15 aiSee website]. | This is one of the examples on the [http://www.absint.com/aisee/galerie5.htm#graph15 aiSee website]. | ||
− | We show how the genealogy graph can be produced using | + | We show how the genealogy graph can be produced using two templates which raise the semantic level of expression compared to the native description in gdl. |
+ | The wiki source structure is like this: | ||
+ | <pre><nowiki> | ||
+ | ... | ||
+ | {{Nachkommen |Mutter |Schwester |Bruder |*Jana }} | ||
+ | {{Paar |Jana |Ehemann }} | ||
+ | {{Nachkommen |Jana |*Tochter |Sohn }} | ||
+ | {{Paar |Tochter |Schwiegersohn }} | ||
+ | ... | ||
+ | </nowiki></pre> | ||
− | {{#wgraph: svg | thumb= | + | {{#wgraph: svg | thumb=60 | wgl | gdl | |
smanhattan_edges = yes | smanhattan_edges = yes | ||
equal_y_dist = yes | equal_y_dist = yes | ||
portsharing = yes | portsharing = yes | ||
− | + | {{Nachkommen | Urgroßmutter | Großonkel | Großtante |*Großmutter }} | |
− | {{Nachkommen |Urgroßmutter | + | {{Nachkommen | Großmutter | *Mutter | Tante }} |
− | {{Nachkommen |Großmutter | + | {{Nachkommen | Mutter | Schwester | Bruder |*Jana }} |
− | {{Nachkommen |Mutter | + | {{Nachkommen | Jana | *Tochter | Sohn }} |
− | {{Nachkommen |Jana | + | {{Nachkommen | Bruder | Nichte | Neffe }} |
− | {{Nachkommen |Bruder | + | {{Nachkommen | Tochter | Enkel | *Enkelin }} |
− | {{Nachkommen |Tochter | + | {{Nachkommen | Enkelin | *Urenkelin | Urenkel }} |
− | {{Nachkommen |Enkelin | + | {{Nachkommen | Tante | Kusine | Vetter }} |
− | {{Nachkommen |Tante | + | {{Nachkommen | Schwiegermutter | Ehemann | Schwager }} |
− | {{Nachkommen |Schwiegermutter | ||
− | {{Paar |Großmutter | + | {{Paar | Urgroßmutter | Urgroßvater }} |
− | {{Paar |Schwiegermutter | + | {{Paar | Großmutter | Großvater }} |
− | {{Paar |Mutter | + | {{Paar | Schwiegermutter | Schwiegervater }} |
− | {{Paar |Jana | + | {{Paar | Mutter | Vater }} |
− | {{Paar |Tochter | + | {{Paar | Jana | Ehemann }} |
− | {{Paar |Sohn | + | {{Paar | Tochter | Schwiegersohn }} |
− | {{Paar |Enkelin | + | {{Paar | Sohn | Schwiegertochter }} |
− | {{Paar |Tante | + | {{Paar | Enkelin | Ehemann der Enkelin }} |
+ | {{Paar | Tante | Onkel }} | ||
− | node | + | node Schwiegermutter { vertical_order 2 } |
− | node | + | node Jana { type Fokus } |
− | nodetype Fokus | + | nodetype Fokus { bordercolor blue font helvB10 borderwidth 3} |
− | nodetype * | + | nodetype * { bordercolor white font helvR10 } |
− | edgetype Fokus | + | edgetype Fokus { thickness 4 } |
− | edgetype * | + | edgetype * { arrowstyle none color blue } |
}} | }} |
Latest revision as of 16:37, 27 September 2007
This is one of the examples on the aiSee website.
We show how the genealogy graph can be produced using two templates which raise the semantic level of expression compared to the native description in gdl. The wiki source structure is like this:
... {{Nachkommen |Mutter |Schwester |Bruder |*Jana }} {{Paar |Jana |Ehemann }} {{Nachkommen |Jana |*Tochter |Sohn }} {{Paar |Tochter |Schwiegersohn }} ...
{{#wgraph: svg | thumb=60 | wgl | gdl |
smanhattan_edges = yes equal_y_dist = yes portsharing = yes
{{#vardefine:v|{{#replace: Urgroßmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Großonkel |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Großtante |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:*Großmutter |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Großmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Mutter |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Mutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Schwester |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Bruder |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:*Jana |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Jana |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Tochter |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Sohn |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Bruder |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Nichte |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Neffe |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Tochter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Enkel |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: *Enkelin |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Enkelin |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Urenkelin |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Urenkel |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Kusine |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Vetter |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Schwiegermutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Ehemann |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Schwager |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:w|{{#replace: Urgroßmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Urgroßvater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Großmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Großvater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Schwiegermutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegervater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Mutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Vater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Jana |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Ehemann |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Tochter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegersohn |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Sohn |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegertochter |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Enkelin |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Ehemann der Enkelin |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Onkel |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {}
node Schwiegermutter { vertical_order 2 } node Jana { type Fokus }
nodetype Fokus { bordercolor blue font helvB10 borderwidth 3} nodetype * { bordercolor white font helvR10 }
edgetype Fokus { thickness 4 } edgetype * { arrowstyle none color blue }
}}