server/test/data-cwep002/schema.py
changeset 9968 50f046bf0e50
parent 9956 19a683a0047c
child 10553 1d824df4f2bd
equal deleted inserted replaced
9967:e65873ad0371 9968:50f046bf0e50
    25     subject = 'Person'
    25     subject = 'Person'
    26     object  = 'Company'
    26     object  = 'Company'
    27     cardinality = '?*'
    27     cardinality = '?*'
    28 
    28 
    29 class Company(EntityType):
    29 class Company(EntityType):
    30     total_salary = Int()
    30     total_salary = Int(formula='Any SUM(SA) GROUPBY X WHERE '
       
    31                        'P works_for X, P salary SA')
    31 
    32 
    32 class has_employee(ComputedRelation):
    33 class has_employee(ComputedRelation):
    33     rule = 'O works_for S'
    34     rule = 'O works_for S'
    34 
    35