Work with Named Graphs?

Hi @Laura_Firey!

After solving the Links and attributes not displaying between classes and their instances, a question arose.

I understand that inserting the data directly in the model will have unexpected and undesired behaviors.

You mentioned 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:

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!

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

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

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

Hi @Laura_Firey!

I must be missing something. I can't seem to load the example model 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 I get an empty view.

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!

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).

We also offer Designer training, Loading.

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

Hi @Laura_Firey!

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

Thanks!

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.

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!

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 (things like GraphQL Queries | Stardog Documentation Latest)

Trainings: Loading

Thank you,
Laura

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!

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.

1 Like

Thank you so much Laura!

This sounds great.

Really looking forward on the thoughts of the product team.

Happy holidays!