Number of metatypes



How many metatypes are there in a Mindmaps graph? I want to use this number to check if a schema has already been loaded. I’m also worried that my code will break if this number changes.



Hi Carl, there are 8 meta-types in a Mindmaps Graph. They are:

  • type
  • entity-type
  • role-type
  • resource-type
  • relation-type
  • rule-type
  • inference-rule
  • constraint-rule

The last two are not strictly meta-types, as they are instances of rule-type.


To Add to Felix’s answer you can easily get the number of meta type with the Java API using Schema.MetaType.values().size .