Difference between revisions of "Wgraph:Ahnen"

From FollowTheScore
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
  ...
 
  ...
 
  {{Nachkommen |Mutter              |Schwester          |Bruder              |*Jana              }}
 
  {{Nachkommen |Mutter              |Schwester          |Bruder              |*Jana              }}
 +
{{Paar      |Jana                |Ehemann            }}
 
  {{Nachkommen |Jana                |*Tochter            |Sohn                }}
 
  {{Nachkommen |Jana                |*Tochter            |Sohn                }}
{{Paar      |Jana                |Ehemann            }}
 
 
  {{Paar      |Tochter            |Schwiegersohn      }}
 
  {{Paar      |Tochter            |Schwiegersohn      }}
 
  ...
 
  ...
 
</nowiki></pre>
 
</nowiki></pre>
  
{{#wgraph: svg | thumb=80 |
+
{{#wgraph: svg | thumb=60 | wgl | gdl |
 
  smanhattan_edges = yes
 
  smanhattan_edges = yes
 
  equal_y_dist    = yes
 
  equal_y_dist    = yes
 
  portsharing      = yes
 
  portsharing      = yes
  
{{Paar      |Urgroßmutter        |Urgroßvater        |}}
+
  {{Nachkommen | Urgroßmutter     | Großonkel          | Großtante          |*Großmutter        }}
  {{Nachkommen |Urgroßmutter       |Großonkel          |Großtante          |*Großmutter        }}
+
  {{Nachkommen | Großmutter       | *Mutter            | Tante              }}
  {{Nachkommen |Großmutter         |*Mutter            |Tante              }}
+
  {{Nachkommen | Mutter           | Schwester          | Bruder              |*Jana              }}
  {{Nachkommen |Mutter             |Schwester          |Bruder              |*Jana              }}
+
  {{Nachkommen | Jana             | *Tochter            | Sohn                }}
  {{Nachkommen |Jana               |*Tochter            |Sohn                }}
+
  {{Nachkommen | Bruder           | Nichte              | Neffe              }}
  {{Nachkommen |Bruder             |Nichte              |Neffe              }}
+
  {{Nachkommen | Tochter         | Enkel              | *Enkelin            }}
  {{Nachkommen |Tochter             |Enkel              |*Enkelin            }}
+
  {{Nachkommen | Enkelin         | *Urenkelin          | Urenkel            }}
  {{Nachkommen |Enkelin             |*Urenkelin          |Urenkel            }}
+
  {{Nachkommen | Tante           | Kusine              | Vetter              }}
  {{Nachkommen |Tante               |Kusine              |Vetter              }}
+
  {{Nachkommen | Schwiegermutter | Ehemann            | Schwager            }}
  {{Nachkommen |Schwiegermutter     |Ehemann            |Schwager            }}
 
  
  {{Paar      |Großmutter         |Großvater          }}
+
{{Paar      | Urgroßmutter    | Urgroßvater        }}
  {{Paar      |Schwiegermutter     |Schwiegervater      }}
+
  {{Paar      | Großmutter       | Großvater          }}
  {{Paar      |Mutter             |Vater              }}
+
  {{Paar      | Schwiegermutter | Schwiegervater      }}
  {{Paar      |Jana               |Ehemann            }}
+
  {{Paar      | Mutter           | Vater              }}
  {{Paar      |Tochter             |Schwiegersohn      }}
+
  {{Paar      | Jana             | Ehemann            }}
  {{Paar      |Sohn               |Schwiegertochter    }}
+
  {{Paar      | Tochter         | Schwiegersohn      }}
  {{Paar      |Enkelin             |Ehemann der Enkelin }}
+
  {{Paar      | Sohn             | Schwiegertochter    }}
  {{Paar      |Tante               |Onkel              }}
+
  {{Paar      | Enkelin         | Ehemann der Enkelin }}
 +
  {{Paar      | Tante           | Onkel              }}
  
  node "Schwiegermutter     " { vertical_order 2 }
+
  node Schwiegermutter   { vertical_order 2 }
  node "Jana               " { type Fokus }
+
  node Jana             { type Fokus }
  
  nodetype Fokus             { bordercolor blue font helvB10 borderwidth 3}
+
  nodetype Fokus         { bordercolor blue font helvB10 borderwidth 3}
  nodetype *                 { bordercolor white font helvR10 }
+
  nodetype *             { bordercolor white font helvR10 }
  
  edgetype Fokus             { thickness 4 }
+
  edgetype Fokus         { thickness 4 }
  edgetype *                 { arrowstyle none color blue }
+
  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 }

}}