Title: Implement a file-based ResourceStore · Issue #46 · CommunitySolidServer/CommunitySolidServer · GitHub
Open Graph Title: Implement a file-based ResourceStore · Issue #46 · CommunitySolidServer/CommunitySolidServer
X Title: Implement a file-based ResourceStore · Issue #46 · CommunitySolidServer/CommunitySolidServer
Description: We need a ResourceStore that makes use of the file system backend, similarly to how the current Solid server operates. There currently already is a basic in-memory store, but note that several shortcuts are taken there that should not be...
Open Graph Description: We need a ResourceStore that makes use of the file system backend, similarly to how the current Solid server operates. There currently already is a basic in-memory store, but note that several shor...
X Description: We need a ResourceStore that makes use of the file system backend, similarly to how the current Solid server operates. There currently already is a basic in-memory store, but note that several shor...
Opengraph URL: https://github.com/CommunitySolidServer/CommunitySolidServer/issues/46
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement a file-based ResourceStore","articleBody":"We need a [ResourceStore](https://github.com/solid/community-server/tree/master/src/storage/ResourceStore.ts) that makes use of the file system backend, similarly to how the current Solid server operates. There currently already is a basic in-memory [store](https://github.com/solid/community-server/tree/master/src/storage/SimpleResourceStore.ts), but note that several shortcuts are taken there that should not be copied.\r\n\r\nSome of the required features:\r\n * Read the [developer notes](https://github.com/solid/community-server/wiki/Notes-for-developers). Specifically the architecture document describes how ResourceStores should function.\r\n * The [interface](https://github.com/solid/community-server/tree/master/src/storage/ResourceStore.ts) lists each of the required functions.\r\n * Containers should be represented by folders, while resources as the files in those folders.\r\n * Metadata about a container can be stored in a `.metadata` file in that folder. Similarly, metadata about a (binary) file can be stored in `${filename}.metadata`.\r\n * The CRUD operations on the resources should mostly correspond to those on files. E.g., getting a resource should return a file stream, deleting a resource should delete the file, etc.\r\n \r\nThings to take into account:\r\n * Make sure the correct libraries are used for handling file paths and URLs, since the first are handled differently by Windows and Unix systems, while the second are handled the same.\r\n * The SimpleResourceStore does some data conversions between Quads and text/turtle. In general ResourceStores should not do this since the plan is to have specific stores to handle the data conversion (to prevent repetition), so simply supporting [BinaryRepresentation](https://github.com/solid/community-server/tree/master/src/ldp/representation/BinaryRepresentation.ts) for in- and output is sufficient.\r\n * [Conditions](https://github.com/solid/community-server/tree/master/src/storage/Conditions.ts) don't have to be supported in the first implementation, but take into account that this will need to be added at some point later.\r\n * The modifyResource function should simply throw an error so it can be handled by an external PatchingStore.\r\n * Make sure there are no unexpected errors being thrown due to e.g. files not existing.","author":{"url":"https://github.com/jvherweg","@type":"Person","name":"jvherweg"},"datePublished":"2020-07-28T12:24:46Z","url":"https://github.com/CommunitySolidServer/CommunitySolidServer/issues/46"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:71071abc-67ca-e994-db85-b0fd74be1b51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4DE:221BC4:23B2B:3120B:6B03FB91 |
| html-safe-nonce | f4817bfcc2de86982fb0bcb1880a513db9d6e42c47b547f00251eae04bac6a8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENERFOjIyMUJDNDoyM0IyQjozMTIwQjo2QjAzRkI5MSIsInZpc2l0b3JfaWQiOiI4NzU5NjA4NjgxMjc4MjA4OTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b9c575d7fa0328f4e25f41c6bdb3d2e286685afcc898414b31c681ac8389a3f4 |
| hovercard-subject-tag | issue:667031011 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CommunitySolidServer/CommunitySolidServer/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3018ebb6bcfaf61082267025d9befcf56486ee6181b1dd572fea9993ca6153e/CommunitySolidServer/CommunitySolidServer/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3018ebb6bcfaf61082267025d9befcf56486ee6181b1dd572fea9993ca6153e/CommunitySolidServer/CommunitySolidServer/issues/46 |
| og:image:alt | We need a ResourceStore that makes use of the file system backend, similarly to how the current Solid server operates. There currently already is a basic in-memory store, but note that several shor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jvherweg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/CommunitySolidServer/CommunitySolidServer git https://github.com/CommunitySolidServer/CommunitySolidServer.git |
| octolytics-dimension-user_id | 101397807 |
| octolytics-dimension-user_login | CommunitySolidServer |
| octolytics-dimension-repository_id | 265197208 |
| octolytics-dimension-repository_nwo | CommunitySolidServer/CommunitySolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 265197208 |
| octolytics-dimension-repository_network_root_nwo | CommunitySolidServer/CommunitySolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width