goa/test/data/schema.py
author Laure Bourgois <Laure.Bourgois@logilab.fr>
Wed, 28 Jan 2009 16:52:12 +0100
changeset 502 7882941d3530
parent 0 b97547f5f1fa
child 1977 606923dff11b
permissions -rw-r--r--
owl module has two views : OWLView (TBOX) and OWLABOXView (more or less ABOX. indeed, it layout ABOX information only for an specific entity and not all entities)



class YamsEntity(EntityType):
    if 'Blog' in defined_types and 'Article' in defined_types:
        ambiguous_relation = SubjectRelation(('Blog', 'Article'))
    if 'Blog' in defined_types:
        inlined_relation = SubjectRelation('Blog', cardinality='?*')

class inlined_relation(RelationType):
    inlined = True