# Work with Named Graphs?

**URL:** <https://community.stardog.com/t/work-with-named-graphs/5123>\
**Category:** Stardog Studio\
**Created:** [October 29, 2024, 7:50pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123 "2024-10-29T19:50:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [October 29, 2024, 7:50pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/1 "2024-10-29T19:50:58Z")

</div>

Hi @Laura_Firey!

After solving the [Links and attributes not displaying between classes and their instances](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/7), a question arose.

I understand that inserting the data directly in the model will have [unexpected and undesired behaviors](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/5).

[You mentioned](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/6) one can insert data to a named graph using the SPARQL Queries view, however, users like myself might need to use the Turtle Text Editor to work with our Named Graphs.

I tried adding a named graph to the Turtle file, like one can do in a TriG file, but that didn't work. I get this error:

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/7/77eecf5b0daa034a5ed6a3377b6cce46ce5f7597.jpeg)

**1. How can one work with Named Graphs in #Stardog Studio using the Text Editor?**

Also, data from Named Graphs doesn't seem to be stored in the model file (text editor), and it seems to persist after removing models.

**2. Where is the data from Named Graphs stored altogether?**

Thanks in advance!

---

<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:** [October 29, 2024, 8:13pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/2 "2024-10-29T20:13:48Z")

</div>

Hi Daniel,

The text editor view in the models hub is specific to your data model and is not meant for managing instance data.

For managing instance data and data models we suggest using Stardog Designer -- a no code visual data modeling and mapping tool. [Stardog Designer | Stardog Documentation Latest](https://docs.stardog.com/stardog-applications/designer/)

Two alternatives to Designer for inserting data:  
If you have a TriG file, it can be uploaded from the database hub -\> `Load RDF`.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/3/3aecb8e95ca65dff7af00cc5d57f3100f105ad9d.png)

Data can also be inserted using the workspace hub by running SPARQL update queries:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/0/08683abac5bace49237e2f9719971fa722e1249d.png)

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [October 29, 2024, 8:18pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/3 "2024-10-29T20:18:06Z")

</div>

Hi @Laura_Firey!

I must be missing something. I can't seem to load the [example model](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/7#p-18270-h-3-i-copied-and-pasted-this-code-4) to Designer.

And I don't seem to find a way to create an instance in Designer. When I create a new project and I load the [example model](https://community.stardog.com/t/links-and-attributes-not-displaying-between-classes-and-their-instances/3853/7#p-18270-h-3-i-copied-and-pasted-this-code-4) I get an empty view.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/7/7403d34e012ff70893b8b481db28898c09eae86c.jpeg)

Are you sure Designer is the tool for this?

Also, I understand I can load data to a Named Graph, or I can insert it using SPARQL, but the main question is, how can one manage existing data visually or through the editor using Designer or Studio, respectively?

Thanks!

---

<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:** [October 29, 2024, 8:28pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/4 "2024-10-29T20:28:14Z")

</div>

Designer is a no-code mapping and modeling tool. You can import your model from a Stardog endpoint or create one in the UI. For your instance data, you can upload CSVs or connect to JDBC supported sources for Free Stardog Cloud accounts ([Supported Data Sources | Stardog Documentation Latest](https://docs.stardog.com/stardog-cloud/supported-data-sources)).

We also offer Designer training, [Loading](https://academy.stardog.com/learn/learning-plans/1/designer-e-learning).

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [October 29, 2024, 8:31pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/5 "2024-10-29T20:31:40Z")

</div>

Right @Laura_Firey, but what about for managing or working with existing data, loaded directly to Studio or previously published from Designer?

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [November 12, 2024, 7:49pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/6 "2024-11-12T19:49:22Z")

</div>

Hi @Laura_Firey!

Just wondering if you've had a chance to look into this one.

Thanks!

---

<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:** [November 12, 2024, 8:17pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/7 "2024-11-12T20:17:03Z")

</div>

Managing and working with existing data can be done in Designer or Studio. It will depend on what you are trying to accomplish -- loading new data, modifying how data is mapped, removing data, etc.

Starting with our trainings tied to RDF and SPARQL will help cover named graph management, [Loading](https://academy.stardog.com/learn/courses/5/getting-started-with-rdf-sparql).

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [December 22, 2024, 10:04am UTC](https://community.stardog.com/t/work-with-named-graphs/5123/8 "2024-12-22T10:04:01Z")

</div>

Hi @Laura_Firey!

I loaded over 100k triples into a Studio instance. I created a database, and I added a model with the schema.

I understand one can modify the schema in the text editor of Studio, or using Designer. I understand I can also visualize this data in Explorer.

But how can I manage the data I loaded?

Is the SPARQL tool in Studio the only way to manage loaded data?

Thanks!

---

<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 23, 2024, 3:12pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/9 "2024-12-23T15:12:39Z")

</div>

Hi Daniel,

As this is a very broad question, I would recommend reviewing the documentation or taking some of the trainings we offer. Being more specific about your use case or what you are trying to manage would also be helpful.

Documentations: [Query Stardog | Stardog Documentation Latest](https://docs.stardog.com/query-stardog/) (things like [GraphQL Queries | Stardog Documentation Latest](https://docs.stardog.com/query-stardog/graphql))

Trainings: [Loading](https://academy.stardog.com/learn)

Thank you,  
Laura

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [December 23, 2024, 6:49pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/10 "2024-12-23T18:49:20Z")

</div>

Hi @Laura_Firey!

I reviewed the documentation and couldn’t find the answer to my question.

Allow me to clarify.

When I load a turtle file into a Studio database I can then visualize that data in Explorer. This means that out of all the letters of the CRUD (Create, Read, Update, Delete) I can only Read using Explorer.

I can also use the SPARQL tool in Studio for all letters of the CRUD, but SPARQL is a dev tool. End users usually cannot work with SPARQL.

On the other hand, I can create a model in Studio, for the schema/ontology. This allows me to see my classes and properties, and even use a Text Editor to manage this model. This is great! But it’s only available for a schema/model. Not for the loaded data in turtle.

Also, I can CRUD my model using Designer, but only the schema/ontology. Not the data.

What I ask is, where can I CRUD my data intuitively like I do for my model in Designer, or I read it in Explorer, that is not SPARQL and allows me to not only read, but also update, create and delete instances in my data?

The data modeling aspects of Stardog are great, clear and well documented.

What we are interested in is also the data management, like one can do in Designer, but not only for the schema/model but also for the instances. To create a new instance. Assign a type. Add a relationship or attribute, etc. all of this intuitively and through a visual or graphical experience, like Explorer (to read but not create, update or delete data) or Designer (to CRUD the model but not the data).

Hope I was able to clarify.

Thanks @Laura_Firey!

---

<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 24, 2024, 3:38pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/11 "2024-12-24T15:38:00Z")

</div>

Thanks Daniel. There is not a GUI for instance data management at this time. Users would need to modify CSV mappings, SPARQL statements, etc. to create, update, and delete data today.

Your examples help us to understand better what you are looking for. I've captured your suggestion for our product team.

---

<div class="post-metadata">

**Author:** ![danielbakas](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/danielbakas/32/2180_2.png) [@danielbakas](https://community.stardog.com/u/danielbakas)\
**Post date:** [December 24, 2024, 4:59pm UTC](https://community.stardog.com/t/work-with-named-graphs/5123/12 "2024-12-24T16:59:06Z")

</div>

Thank you so much Laura!

This sounds great.

Really looking forward on the thoughts of the product team.

Happy holidays!
