[f66b44]: Test / first / family.py  Maximize  Restore  History

Download this file

15 lines (13 with data), 475 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# family.py
def init(engine):
def son_of(son, father, mother):
engine.add_universal_fact('family', 'son_of', (son, father, mother))
son_of('art', 'art2', 'nana')
son_of('artie', 'art', 'kathleen')
son_of('ed', 'art', 'kathleen')
son_of('david', 'art', 'kathleen')
son_of('justin', 'artie', 'julie')
son_of('arthur', 'artie', 'lisa')
son_of('keith', 'ed', 'ann')
son_of('ramon', 'ed', 'ann')
son_of('cody', 'david', 'colleen')

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks