Nominal and structural typing seem to be fully working
This commit is contained in:
parent
f7430cceff
commit
695ec6132a
3 changed files with 77 additions and 25 deletions
|
|
@ -31,10 +31,10 @@ def bootstrap_pn(state: State, model_name: str) -> UUID:
|
|||
# Create class attributes
|
||||
service.create_attribute_link("P", "Integer", "t", False)
|
||||
service.create_attribute_link("P", "String", "n", False)
|
||||
service.create_attribute_link("T", "String", "n", False)
|
||||
service.create_attribute_link("T", "String", "name", False)
|
||||
# Create association attributes
|
||||
service.create_attribute_link("P2T", "Integer", "w", False)
|
||||
service.create_attribute_link("T2P", "Integer", "w", False)
|
||||
service.create_attribute_link("P2T", "Integer", "weight", False)
|
||||
service.create_attribute_link("T2P", "Integer", "weight", False)
|
||||
# Create test constraint
|
||||
service.add_constraint("P", "True")
|
||||
return model_uuid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue