🧑‍🔧Relations and Taxonomies (Part 2)

In this section we'll learn about the default relations, create another type Scientific Post, and a taxonomy for the StudyType.


Step 1: Inheritance

Let's start by Creating the Scientific Post type, but since this is a 'Post' type which shares all the elements that already existed in the Blog Post, we can simply 'Inherit' this type.

  1. Open the 'Create New Type' modal.

  2. Type in the type name Scientific Post, and choose the Blog Post in the SubClass Of dropdown.

  3. Now click on 'Create and Add Elements'

  4. Add the StudyType, which is a unique element to this type

You now have created a type and learnt about the inheritance relation or 'SubClass Of' as in the Schema.org terms.


Step 2: Create a new taxonomy

Let's create a new taxonomy to limit the options of the StudyType.

  1. From the feature tray, click on 'Taxonomies', then click on 'Taxonomies Grid'. (You'll notice that it'll open up a new grid in a new CoreModels tab for the Taxonmies)

  2. Click on the plus icon, and type in Study Type Taxonomies.

  3. Click on 'Create and Add Child'.

  4. Add the following Taxonomies as children for the Study Type Taxonomies:

    1. Experimental

    2. Observational

    3. Theoretical

You now have created a taxonomy with its children


Step 3: Link the taxonomy to the element using the 'Controlled list' relation.

  1. Open the Types Grid (or simply navigate back to it, by clicking on the CoreModels Tab 'Types Grid')

  2. Open the 'Configuration' Side panel (by clicking the vertical configuration button on the far right)

  3. Select 'Controlled List' from the 'Elements Columns' dropdown

  4. Expand or open the Elements grid at the Scientific Post row (by clicking either icons in the 'Elements' column next to the type)

  5. Double click on the 'Controlled List' cell (at the StudyType row under the 'Controlled List' column)

  6. Add the taxonomies Experimental, Observational, and Theoretical from the dropdown.

Now the element is linked to the taxonomies.

Optional: Click on the Scientific Post type to see the type card with all the relations and elements, you can click on the nodes in the graph or change the visualization 'Tree (Dendrogram)' to explore more options check out the 'Hierarchical (Dagre)' option.

Last updated