Multiple schemas per entity

I wonder how to apply multiple schemas to the same entity. Just to give an example: Let's say we have a typical shoebox application for note taking. Notes can be organized in hierarchical folders.

  • For notes the note entity schema makes obviously sense.
  • And for folders we need to apply the schema notes.folder, so this entity type can be used with the createNode and updateNote intent schemas.
  • But, it would also make sense to use the file schema for folder entities, as it allows me to use the createFolder intent schema or deleteFile.

Unfortunately, I can only apply one schema to one entity. So I can't declare a folder as note.folder and file.file simultaneously.

I thought about using multiple entity types for the same entity to have somewhat multiple representations, but I can only assign a single app entity identifier to a view.

Multiple schemas per entity
 
 
Q