semapps icon indicating copy to clipboard operation
semapps copied to clipboard

Use Solid recommended metadata for uploads

Open srosset81 opened this issue 2 years ago • 7 comments

Instead of the non-standard predicates of semapps:File, use the ones recommended by Solid:

https://solidproject.org/ED/protocol#contained-resource-metadata

srosset81 avatar Nov 02 '23 17:11 srosset81

What may be difficult to handle is that the URI of the class will depend on the IANA Media Type.

http://www.w3.org/ns/iana/media-types/{+iana-media-type}#Resource

So basically we can have thousands of different classes...

srosset81 avatar Dec 18 '23 16:12 srosset81

i am ok for main issue but I don't see an equivalent to the semapps:file class . Only predicat and not class...What's more, I have the impression that this chapter applies to the container and not to a subject contained in the container, but it's OK to use the same predicates.

simonLouvet avatar Dec 19 '23 13:12 simonLouvet

i am ok for main issue but I don't see an equivalent to the semapps:file class . Only predicat and not class...

The rdf:type is the class. It is equivalent to @type in JSON-LD and a in Turtle.

Capture d’écran du 2023-12-19 16-04-46

srosset81 avatar Dec 19 '23 15:12 srosset81

i am ok for main issue but I don't see an equivalent to the semapps:file class . Only predicat and not class...

The rdf:type is the class. It is equivalent to @type in JSON-LD and a in Turtle.

Capture d’écran du 2023-12-19 16-04-46

ok, my bad. Indeed, if you need a specific class for each media type, I find that unnecessarily complex. Aren't these classes inherited from a common class to generalise?

simonLouvet avatar Dec 20 '23 09:12 simonLouvet

There are more informations about URI Templates in this RFC.

You can find a description of this particular URI Template in the namespace: https://www.w3.org/ns/iana/media-types/

Example for image/png: https://www.w3.org/ns/iana/media-types/image/png#Resource

I don't really understand the Turtle description, but it doesn't seem there is a parent class. We could use the semapps:File in addition to these classes in order to more easily identify binaries.

srosset81 avatar Dec 20 '23 13:12 srosset81

Are you perhaps looking or something like: application/octet-stream ?

  • https://www.w3.org/ns/iana/media-types/application/octet-stream#Resource
  • https://www.iana.org/assignments/media-types/application/octet-stream

csarven avatar Apr 23 '24 11:04 csarven

Another issue to consider: https://github.com/solid/solid-spec/issues/197

srosset81 avatar May 06 '24 10:05 srosset81