# Categorical variable not showing up as type

**URL:** https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760
**Category:** Support
**Created:** [December 11, 2023, 8:21pm UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760 "2023-12-11T20:21:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![susvej](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/susvej/32/1940_2.png) [@susvej](https://community.stardog.com/u/susvej)
#### Post date: [December 11, 2023, 8:21pm UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/1 "2023-12-11T20:21:46Z")

</div>

Hi!  
I'm working on a boardgame ontology.

My dataset has a variable weight\_categorical with 3 possible values (small, medium, large) - see screenshot [Screenshot by Lightshot](https://prnt.sc/ypplnJpRId5T)

My ontology has class:Game hasSize class:Size, which I have mapped like this: [Screenshot by Lightshot](https://prnt.sc/16zlJEwjWj7p) (This works - each Game instance has a size)

However, each individual size instance isn't connected to the type Size - see here [Screenshot by Lightshot](https://prnt.sc/P9iaBDb_egGm)

Do I really have to create another csv file with  
index sizeID sizelabel  
1 small small  
2 medium medium  
3 large large

...in order to make the connection between an instance of a Size and its class Size.

In the ontology, small, medium and large are all recognized as instances of class Size.

---

<div class="post-metadata">

### Author: ![Laura\_Firey](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/laura_firey/32/635_2.png) [@Laura\_Firey](https://community.stardog.com/u/Laura_Firey)
#### Post date: [December 11, 2023, 9:01pm UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/2 "2023-12-11T21:01:42Z")

</div>

Hi Susanne,

Yes, to create class instances of Size, you'll need to map directly from a CSV such as bg\_main.csv or a new CSV to the class Size.

I've created a project showing this,

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/8/8d12a2543376968c2ad4ee9d36d33428001ed115.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/9/95866cbdf8cbbd7e480e7d09a8666f8118dcb09b.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/7/7340c6bd982c4483c96c3bba9995d845f69bb478.png)

[Size\_type\_class.zip](https://community.stardog.com/uploads/short-url/dCZghMJQj3M8d76BFaAXY0VENQW.zip) (5.8 KB)

Thanks,  
Laura

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [February 2, 2024, 11:02pm UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/3 "2024-02-02T23:02:59Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [March 31, 2024, 3:24am UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/4 "2024-03-31T03:24:15Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [June 28, 2024, 10:44am UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/5 "2024-06-28T10:44:36Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [January 1, 2025, 8:21am UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/6 "2025-01-01T08:21:08Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [August 6, 2025, 11:26am UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/7 "2025-08-06T11:26:38Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [March 30, 2026, 2:20pm UTC](https://community.stardog.com/t/categorical-variable-not-showing-up-as-type/4760/8 "2026-03-30T14:20:56Z")

</div>


