« Back to CIDOC-CRM Project

Displaying subsets of classes

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Displaying subsets of classes
community modeltype documentation
Answer
3/27/14 11:29 AM
I have many classes in a model type and am looking for a way to display them so the user can easier choose the classes needed for modelling.

RE: Displaying subsets of classes
mode modus from incl excl modeltype
Answer
6/24/13 7:27 AM as a reply to Anonymous.
For every mode type you can define modes that contain only some of the classes of the current model type.
A model type determines a subset of all instanciable classes and relations. Each model has a specific model type which is assigned when the model is created can not be changed afterwards.
A modus is a further restriction of a model type. It defines a subset of the assigned classes/relations and simplifies modeling by hiding not needed classes. Unlike the model type, the modus of a model can be changed any time, depending on the classes needed for modelling. The moduses can be defined using the "MODE" statement in the definition of the model type.

When defining a moduls, the parameter "from:" allows to use in the new modus some or all of the classes used in a previously defined modus. Please see the following example:

 1MODELTYPE "Sample" from:none
 2INCL "A"
 3INCL "B"
 4INCL "E"
 5INCL "X"
 6INCL "Y"
 7INCL "any2any"
 8
 9MODE "All classes" from:all
10
11MODE "A-E" from:all
12EXCL "B"
13EXCL "Y"
14
15MODE "B-E" from:all
16EXCL "A"
17EXCL "X"
18
19MODE "E-X-Y" from: "A-E"
20EXCL "A"
21INCL "Y"


The modus "All classes" uses the classes A, B, E, X, Y and the relation class "any2any".
The modus "A-E" uses the classes A, E, X and the relation class "any2any" (all classes, except for B and Y)
The modus "B-E" uses the classes B, E, Y and the relation class "any2any" (all classes, except for A and X).
The modus "E-X-Y" uses the classes E, X, Y and the relation class "any2any" (all classes used in the modus "A-E", except for class A, plus the class Y).