Rename 'is_a_child_of' to 'is_child_of' . Changed 'is_father_of' (etc) to use 'is_child_of' in 'revrel' (ie inverse) mode. Adjusted phrase model to give correct output. NB: json handling of revrel not working yet.
Merge branch 'master' of https://github.com/rogerevansbrighton/nimrodel
json: suboptimal fix for isChildOf(2, c, p)

This is really not ideal. Before when we saw, `dad father of kid',
we were outputting effectively the same as `kid father of dad`.
This at least fixes this so that we're saying things in the right
order, but ddeally we want to output the same as `kid son of dad`.

Case 1 (was working)
--------------------
Peter son of John

[ rel 1 equals
 [ entity Person 12 17 ( peter ) forename = peter gender = male ]
 [ rel 1 is_child_of
  [ entity Person 18 29 ( son of john ) gender = male ]
  [ entity Person 25 29 ( john ) forename = john gender = male ] ] ]

Gave in JSON:

[ {
 "id":"T1",
 "origOccurrence":"peter",
 "forename":"peter",
 "gender":"male",
 "childOf":"T3"
}
, {
 "id":"T3",
 "origOccurrence":"john",
 "forename":"john",
 "gender":"male"
} ]

Case 2 (broken)
---------------
Peter son of John

[ rel 1 equals
 [ entity Person 12 17 ( peter ) forename = peter gender = male ]
 [ rel 2 is_child_of
  [ entity Person 28 32 ( john ) forename = john gender = male ]
  [ entity Person 18 32 ( father of john ) gender = male ] ] ]

[ {
 "id":"T1",
 "origOccurrence":"peter",
 "forename":"peter",
 "gender":"male",
 "childOf":"T3"
}
, {
 "id":"T3",
 "origOccurrence":"john",
 "forename":"john",
 "gender":"male"
} ]

Revised case 2 output
---------------------
[ {
 "id":"T1",
 "origOccurrence":"peter",
 "forename":"peter",
 "gender":"male",
 "parentOf":"T2"
}
, {
 "id":"T2",
 "origOccurrence":"john",
 "forename":"john",
 "gender":"male"
} ]