1 L0 = <http://www.simantics.org/Layer0-1.1>
3 USERS = <http://Users> : L0.Library
6 USER = <http://www.simantics.org/User-1.1> : L0.Ontology
8 L0.HasResourceClass "org.simantics.user.UserResource"
10 USERS.DefaultUser : USER.User
11 //@L0.tag L0.ModelUser
12 L0.HasLabel "Default User"
13 USER.HasPasswordHash "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg=="
14 L0.HasDescription "Anonymous account."
15 USER.HasEmail "anonymous@simantics.org"
17 USERS.AdminUser : USER.User
19 USER.HasPasswordHash "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg=="
20 L0.HasDescription "Anonymous account."
21 USER.HasEmail "anonymous@simantics.org"
23 USER.Group <T L0.Entity
24 USER.Group.Contains <R L0.IsRelatedTo
26 USER.AdminUserAdminRoleAssignment : USER.RoleAssignment
27 USER.RoleAssignment.HasGroup USERS.AdminUser
28 USER.RoleAssignment.HasRole USER.Admin
30 USER.AdminUserModelUserRoleAssignment : USER.RoleAssignment
31 USER.RoleAssignment.HasGroup USERS.AdminUser
32 USER.RoleAssignment.HasRole USER.ModelUser
34 USER.User <T USER.Group
35 @L0.singleProperty L0.HasName
36 @L0.singleProperty L0.HasDescription
37 @L0.singleProperty USER.HasPasswordHash
38 @L0.singleProperty USER.HasEmail
40 USER.HasPasswordHash <R L0.HasProperty
42 USER.HasEmail <R L0.HasProperty
45 USER.Admin : USER.Role
46 USER.KernelDeveloper : USER.Role
47 USER.LibraryDeveloper : USER.Role
48 USER.ModelConfigurator : USER.Role
49 USER.ModelUser : USER.Role
50 USER.DefaultRole : USER.Role
52 USER.Role <T L0.Entity
53 USER.Role.Inherits <R L0.IsRelatedTo
55 USER.RoleAssignment <T L0.Entity
56 USER.RoleAssignment.HasRole <R L0.IsRelatedTo
57 USER.RoleAssignment.HasGroup <R L0.IsRelatedTo
59 USER.RoleSelection <T L0.Entity
60 USER.RoleSelection.HasModel <R L0.IsRelatedTo
61 USER.RoleSelection.HasRole <R L0.IsRelatedTo