# Mapping (CSV input)

**URL:** <https://community.stardog.com/t/mapping-csv-input/3735>\
**Category:** Stardog Designer\
**Created:** [May 12, 2022, 5:18am UTC](https://community.stardog.com/t/mapping-csv-input/3735 "2022-05-12T05:18:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![riannella](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@riannella](https://community.stardog.com/u/riannella)\
**Post date:** [May 12, 2022, 5:18am UTC](https://community.stardog.com/t/mapping-csv-input/3735/1 "2022-05-12T05:18:14Z")

</div>

Hi, I am having difficulties understanding how the mappings feature works in Designer.  
I have a very simple model:

 ![Screen Shot 2022-05-12 at 15.16.48](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/8/87d1a8ec968e1c944c859de98a08ad6e6c349748.jpeg)

The Mapping screen in Designer looks like this;

 ![Screen Shot 2022-05-12 at 15.17.44](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/2/251ddaa102935cf7182b366a832f69bce2e139eb.jpeg)

When I view one of the (top) Categories:

 ![Screen Shot 2022-05-12 at 15.11.30](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/0/0097d5a9a913a4dc3e91dcc8d9bf60bc239d9817.png)

You can see the subcategories include the "Cosmetic\_Category" string.  
It seems like I also need to specify that the column called "Subcategory" are also of type "Cosmetic Category" ?

Any help welcome 🙂

Cheers - Renato

---

<div class="post-metadata">

**Author:** ![Alex\_Bigelow](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/alex_bigelow/32/1212_2.png) [@Alex\_Bigelow](https://community.stardog.com/u/Alex_Bigelow)\
**Post date:** [May 12, 2022, 2:40pm UTC](https://community.stardog.com/t/mapping-csv-input/3735/2 "2022-05-12T14:40:34Z")

</div>

Hi Renato,  
Yes, that's correct that you'd need an additional mapping from your table to the Cosmetic Category node class, to indicate that SubCategory is also a Primary Identifier. We don't yet support parallel mappings between a data source and the same node class.

You should be able to achieve this by uploading the category CSV **twice** , and map the copy to Cosmetic Category with SubCategory as the primary identifier and SubCategoryLabel as the label. Alternatively, you could modify your CSV to look more like:

```auto
| Category | CategoryLabel | SubCategory |
|----------|---------------|-------------|
| skin | Skin | cream |
| skin | Skin | oil |
| ... | | |
| cream | Cream | |
| oil | Oil | |

```

---

<div class="post-metadata">

**Author:** ![riannella](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@riannella](https://community.stardog.com/u/riannella)\
**Post date:** [May 13, 2022, 5:21am UTC](https://community.stardog.com/t/mapping-csv-input/3735/3 "2022-05-13T05:21:33Z")

</div>

Great...many Thanks  
(some chars to bypass 20 🙂
