Adding a new entity type to a knowledge graph usually means changing the schema.
Snowflake Data Superhero Satish Tirumalasetti shows a metadata-driven approach on Snowflake: KG_NODES + KG_EDGES store the graph, while a stored procedure generates typed views.
See the implementation: