Repository navigation
Feat/shape support - #1000
Feat/shape support#1000woutslabbinck wants to merge 105 commits into
Conversation
|
1000 🥳 |
Allows advertising the shapes to which resources should conform in a given container
…w metadata files to be edited when a resource is available
…h PUT to container
… operationhandlers
…ible to edit (read reset) metadata
…eck to new patchhandler which is more generic
…handler down to DABS
… to DataAccessors (part 1)
|
@woutslabbinck can you link to the specifications/documents/whatevers that are relevant for this PR? |
|
|
[After an offline discussion with @joachimvh] Great work! I think this code is a good candidate for an external module, given that server-side validation is not part of the spec yet, and that this code only adds things but does not need to make any changes. However, then I'd want a good CI setup for such an external module, ensuring that integrations are tested with every CSS commit (or at least daily on the latest main and version branches). Another good candidate for an external module is the quota system. |
That is a nice idea actually for all external modules we host ourselves here (which currently only is the example module), although I'm not sure if you can track commits from a different repository? |
Maybe not, but this repository can ping other repositories on commit! Or we could run an external modules test suite on our CI. |
|
@RubenVerborgh probably a good time to decide on npm naming convention for other packages we release from the CommunitySolidServer organization. CSS is in
Talking about npm releases, this also makes this a bit more difficult. The external module is simply going to depend on the npm package of CSS, which is currently Additionally, in the case of version branches the tests might fail if we change the config structure, but there is nothing the external module can do about that, since it can only make the necessary changes once there is an npm release of that version. Unless it also has a different branch for the next release already to track those changes. |
peerDependency
That's quite feasible. |
|
@woutslabbinck - Would it be much work to add support for |
|
@jeswr I retrieve the SHACL shape files by calling CommunitySolidServer/src/util/FetchUtil.ts Lines 20 to 31 in 17d0413 This utility function uses the library rdf-dereference to parse the quads and return them in a streaming way. Which means that if can put your package as a part of rdf-dereference, it would work without a problem without touching the code. |
|
Implemented as external component at https://github.com/CommunitySolidServer/shape-validator-component/ |
No description provided.