# Making Changes to Classes

**URL:** <https://community.stardog.com/t/making-changes-to-classes/2921>\
**Category:** Support\
**Created:** [March 5, 2021, 4:04am UTC](https://community.stardog.com/t/making-changes-to-classes/2921 "2021-03-05T04:04:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvemulap](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kvemulap](https://community.stardog.com/u/kvemulap)\
**Post date:** [March 5, 2021, 4:04am UTC](https://community.stardog.com/t/making-changes-to-classes/2921/1 "2021-03-05T04:04:15Z")

</div>

in Stardog, Once I have loaded classes and added their data properties, can i alter the definition of the class i.e add or remove data Properties? For example, if I create a "Person" class, I have added 2 data properties hasName, hasTitle. now i want to remove hasTitle and add hasDesignation.

how do i do this?

thank you

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [March 5, 2021, 4:22am UTC](https://community.stardog.com/t/making-changes-to-classes/2921/2 "2021-03-05T04:22:18Z")

</div>

The "shape" of data in RDF is not fixed. If you have some instances of Person with hasTitle property values, you can add hasDesignation property values in addition to that. You can use SPARQL update to DELETE+INSERT if you wish to replace hasTitle with hasDesignation. If you are modeling data with RDFS, bear in mind that this is only relevant for reasoning and constraints. If you want to share more about what you wish the end result to be with the change, we can provide further recommendation.

Jess

---

<div class="post-metadata">

**Author:** ![borgendorf](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/borgendorf/32/24_2.png) [@borgendorf](https://community.stardog.com/u/borgendorf)\
**Post date:** [March 5, 2021, 10:07pm UTC](https://community.stardog.com/t/making-changes-to-classes/2921/3 "2021-03-05T22:07:04Z")

</div>

In fact, this is one of the beautiful things about RDF graphs - you don't have to be so rigid in how you create your class instances compared to relational databases. I highly recommend this 11-minute video from the author of _Learning SPARQL_. It was a great help to me in wrapping my brain around triples and how they relate to tables.

[![](https://img.youtube.com/vi/FvGndkpa4K0/maxresdefault.jpg "SPARQL in 11 minutes") ](https://www.youtube.com/watch?v=FvGndkpa4K0)

---

<div class="post-metadata">

**Author:** ![kvemulap](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kvemulap](https://community.stardog.com/u/kvemulap)\
**Post date:** [March 6, 2021, 8:26pm UTC](https://community.stardog.com/t/making-changes-to-classes/2921/4 "2021-03-06T20:26:02Z")

</div>

Thank you Jess. I am new to stardog. I have worked in relational databases for many years. I want the ability to define classes, data attributes, relational attributes between classes etc., and be able to see what is the stardog database visually to get a picture of my schema. Just like if I can query data dictionary catalog tables in relational and see what tables, columns etc. are created. Just like alter statement in relational, I want to be able to change the data type of a property or drop a property ?  
what is the best modeling tool for RDF schema? is it Protegy or any other choice?

At this point, I am just trying to do a POC with Stardog, but i have work requirements to create a Stardog app.

Thank you

---

<div class="post-metadata">

**Author:** ![kvemulap](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kvemulap](https://community.stardog.com/u/kvemulap)\
**Post date:** [March 6, 2021, 8:30pm UTC](https://community.stardog.com/t/making-changes-to-classes/2921/5 "2021-03-06T20:30:22Z")

</div>

Thank you Ian. I watched the video, it is very informative.

---

<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 20, 2021, 8:31pm UTC](https://community.stardog.com/t/making-changes-to-classes/2921/6 "2021-03-20T20:31:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
