Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Solid recommended metadata for uploads #1192

Open
srosset81 opened this issue Nov 2, 2023 · 7 comments
Open

Use Solid recommended metadata for uploads #1192

srosset81 opened this issue Nov 2, 2023 · 7 comments

Comments

@srosset81
Copy link
Contributor

srosset81 commented Nov 2, 2023

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

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

@srosset81 srosset81 changed the title Use Solid metadata for uploads Use Solid recommended metadata for uploads Nov 2, 2023
@srosset81
Copy link
Contributor Author

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

@simonLouvet
Copy link
Contributor

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.

@srosset81
Copy link
Contributor Author

srosset81 commented Dec 19, 2023

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

@simonLouvet
Copy link
Contributor

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?

@srosset81
Copy link
Contributor Author

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.

@csarven
Copy link

csarven commented Apr 23, 2024

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

@srosset81
Copy link
Contributor Author

srosset81 commented May 6, 2024

Another issue to consider: solid/solid-spec#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants