Wgraph:Sample Genealogy 6
We spread the 'database' over several articles
The next step is a simple one, but it shows the real power of the approach presented here.
Now we use multiple dynasty articles. Each of them contains a piece of information we want to use for our table and graph. We can use the same templates. Only the selection criteria within the DPL statement have to be changed.
Note that the second dynasty file (Wgraph:Dynasty Smith 2) contains additional data about a person ("Gero Scholz") which was already defined in the first dynasty file. While the table representation shows two rows with the same key, wgraph is able to merge the two facts and produces a correct graph.
Person | born | died | father | mother | married to | info |
---|---|---|---|---|---|---|
John Smith | 21.06.1952 | Bella Smith 01.03.1985 | that & this | |||
Bella Smith | 03.04.1955 | this and that | ||||
Dave Smith | 30.05.1986 | John Smith | Bella Smith | |||
Paul Smith | 28.02.1988 | John Smith | Bella Smith | |||
Susan Smith | 04.06.1995 | John Smith | Bella Smith | |||
Edward Smith | 15.08.1922 | Elisabeth Smith 21.10.1954 | ||||
Elisabeth Smith | 02.11.1926 | |||||
John Smith | Edward Smith | Elisabeth Smith |
{{#wgraph: svg | thumb = 40 |
nodetype male { shape box color #ddddff bordercolor #9999ff width 140 textwidth 20 } nodetype female { shape box color #ffdddd bordercolor #ff9999 width 140 textwidth 20 }
edgetype father { color #7777ff backarrowsize 10 backarrowstyle solid arrowsize 0 } edgetype mother { color #ff7777 backarrowsize 10 backarrowstyle solid arrowsize 0 } edgetype marriage { kind rightnear arrowstyle line backarrowstyle line backarrowsize 10 color #ff77ff }
nodetype info { color #f0f0f0 borderstyle dashed bordercolor #e0e0e0 } edgetype info { kind near arrowstyle none linestyle dotted color lightgray }
nodetype 'undefined node' { bordercolor red // label '%%?' }
orientation bottom_to_top splines yes
node " John Smith " {
type male label " John Smith " "\n*" "21.06.1952"
}
edge from " John Smith " to " John Smith " "_info" { type info }
node " John Smith " "_info" { type info label "that & this" }
edge from " John Smith " to "Bella Smith" {type marriage label "01.03.1985" }
node " Bella Smith " {
type female label " Bella Smith " "\n*" "03.04.1955"
}
edge from " Bella Smith " to " Bella Smith " "_info" { type info }
node " Bella Smith " "_info" { type info label "this and that" }
node " Dave Smith " {
type male label " Dave Smith " "\n*" "30.05.1986"
}
edge from " Dave Smith " to "Bella Smith" {type mother} edge from " Dave Smith " to "John Smith" {type father}
node " Paul Smith " {
type male label " Paul Smith " "\n*" "28.02.1988"
}
edge from " Paul Smith " to "Bella Smith" {type mother} edge from " Paul Smith " to "John Smith" {type father}
node " Susan Smith " {
type female label " Susan Smith " "\n*" "04.06.1995"
}
edge from " Susan Smith " to "Bella Smith" {type mother} edge from " Susan Smith " to "John Smith" {type father}
node " Edward Smith " {
type male label " Edward Smith " "\n*" "15.08.1922"
}
edge from " Edward Smith " to "Elisabeth Smith" {type marriage label "21.10.1954" }
node " Elisabeth Smith " {
type female label " Elisabeth Smith " "\n*" "02.11.1926"
}
node " John Smith " {
}
edge from " John Smith " to "Elisabeth Smith" {type mother} edge from " John Smith " to "Edward Smith" {type father}
skip_edgetypes info orientation left_to_right
}}
continue with Wgraph:Sample Genealogy 7 .. back to Wgraph:Sample Genealogy 5 ..