
#Create a context and make it current
# @@word/word/.../word: description="description string"
#Create a component in the current context
# --componentname: type="type of component", value_type="type of value", description="description", value="blah", value="..".......
#	subscription="sub statement"
# ==viewname: path, path,....

#Notes: 
# defs continue on new line starting with whitespace
# ComponentTypes = ["attribute", "activity", "knowledge", "belief", "preference", "goal"]
# ValueTypes = ["string", "number", "boolean", "enum", "JSON"]


# root context

@@Devices: description="Devices related to the user"
@@Apps: description="Applications related to the user"
@@Goals: description="Goals related to the user"
@@Goals/Health: description="Health related goals"

@@modelinfo: description="Model Information"
--modeled: type="attribute", value_type="string", description="type of entity being modeled"
--personisversion: type="attribute", value_type="string", description="version of the Personis version in use"

@@Personal: description="Personal data"
--firstname: type="attribute", value_type="string", description="First name"
--lastname: type="attribute", value_type="string", description="Last name"
--gender: type="attribute", value_type="enum", description="Gender", value="male", value="female"
--email: type="attribute", value_type="string", description="email address"
--gid: type="attribute", value_type="string", description="Google ID"
--picture: type="attribute", value_type="string", description="Uri of a picture of the user"

# ==viewname: list of components from current context
#	create a view in the current context
==fullname: firstname, lastname