Number of metatypes


#1

Hello,

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.

Thanks,
Carl


#2

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.


#3

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