How to manipulate private data using Shighl

As a project for school, I am creating a web app using Solid/Shighl. I have no experience using either, but Shighl looks like the easier to use JS solution.

I understand most examples of Shighl, but I have no clue how I could read, edit, create or delete private data.

Any help is welcome!

I think Shighl is by @Smag0, so they might be able to help you :slight_smile:

Hi @KyoSch Shighl has been merely build to simplify Solid Chat functionalities for Solidarity.
And I think it could be easily extended to deal with other data following some examples in the src shighl/src at master · scenaristeur/shighl · GitHub
For example the shighl-chat does all you need to deal with chat.
It is useful to deal with data with patterns that need to combine multiples operation in one to write or retrieve data ( get pod root, get public index, get instance chat, read instance message/ write message, update log)
And not really adapted to deal with ‘free structure’ data…

Does the data you want to store follow that kind of pattern ?

Thanks for the answer @Smag0!

We are planning to use Solid as a small “database” for a trading website. We want to store the item they want to trade (name, description, image location, …) and also store what items they are following.

So the chat function is not really used for either of these I guess?

@KyoSch I don’t think chat could be use as it is but we could use a shighl-trade adapted to the operation you need.
Do you have an exemple of data you want to store ?

Ok so I just discussed with my co creator.

We want to add/edit/read public data like location and e-mail.
And we want to store a private string: the username for our platform.


Adress: Brusselsesteenweg 50, 1560 Hoeilaart. (All Belgium adresses)

Username: KyoSch

Thanks in advance!

Are you sure that you want address and email public and can be read by everyone ? Or only by your app?

Good shout actually. I was assuming this because it is an option in solid, but we might be better off making it private as well.

Hi @Smag0, where you have Session, Profile, Inbox, Chat… in Shighla, why not have a new type called “Collections” inside “Storage” so you can define custom name / value data. You could even create linked data preset types to add RDF for common patterns; for example an “address”

I think this would be a really nice way for coders to create custom datasets in the RDF format without having to care or understand much about RDF because you use abstracted RDF TYPES which belong to common patterns, and which ultimately translates “to” and “from” an RDF file.