Skip to content

Commit

Permalink
Refactor structure and add Redis support (#29)
Browse files Browse the repository at this point in the history
* refactor: Move MongoDB specific code to its dedicated repository class

* feat: Add Redis support

* 0.1.0-alpha.4

* fix: No mGet for zero members and escape more chars

* 0.1.0-alpha.9
  • Loading branch information
smessie authored Oct 14, 2024
1 parent 47fe307 commit 5c01a7e
Show file tree
Hide file tree
Showing 23 changed files with 585 additions and 893 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ You will probably want to configure a `urn:solid-server:default:LDESConfig` and
- `value` of the relation
- `bucket` is the target fragment id
- `path` of the relation
- optional `timeStamp` specifies the starting timestamp of this fragment.
- `metaCollection` specifies the metadata collection, this collection contains information about each ingested stream. JSON objects with following fields:
- `id` the id of the ingested stream.
- `type` specifies the metadata type. Often "https://w3id.org/sds#Stream".
Expand Down
87 changes: 83 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldes-solid-server",
"version": "0.1.0-alpha.2",
"version": "0.1.0-alpha.9",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"files": [
Expand Down Expand Up @@ -33,7 +33,8 @@
"@rdfjs/types": "^1.1.0",
"@treecg/types": "^0.4.6",
"mongodb": "^6.8.0",
"n3": "^1.21.0"
"n3": "^1.21.0",
"redis": "^4.7.0"
},
"devDependencies": {
"@solid/community-server": "^7.1.2",
Expand Down
4 changes: 2 additions & 2 deletions server/examples/config-ldes-acl.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@type": "PrefixView",
"prefix": "example",
"view": {
"@type": "MongoTSView",
"@type": "SDSView",
"streamId": "http://example.org/myStream#eventStream",
"descriptionId": "http://example.org/myStream#viewDescription",
"db": {
Expand All @@ -92,7 +92,7 @@
"@type": "PrefixView",
"prefix": "ais",
"view": {
"@type": "MongoTSView",
"@type": "SDSView",
"streamId": "http://example.org/aisStream#eventStream",
"descriptionId": "http://example.org/aisStream#description",
"db": {
Expand Down
173 changes: 0 additions & 173 deletions server/examples/config-ldes-all.json

This file was deleted.

2 changes: 1 addition & 1 deletion server/examples/config-ldes-bluebike.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@type": "PrefixView",
"prefix": "default",
"view": {
"@type": "MongoSDSView",
"@type": "SDSView",
"descriptionId": "http://localhost:3000/ldes/#timestampFragmentation",
"streamId": "https://w3id.org/sds#Stream",
"db": {
Expand Down
4 changes: 2 additions & 2 deletions server/examples/config-ldes-file_locks.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@type": "PrefixView",
"prefix": "default",
"view": {
"@type": "MongoSDSView",
"@type": "SDSView",
"descriptionId": "http://localhost:3000/ldes/#timestampFragmentation",
"streamId": "http://me#csvStream",
"db": {
Expand All @@ -93,7 +93,7 @@
"@type": "PrefixView",
"prefix": "mine",
"view": {
"@type": "MongoSDSView",
"@type": "SDSView",
"streamId": "http://mine.org/rdfstream",
"db": {
"@id": "urn:solid-server:default:DBConfig"
Expand Down
2 changes: 1 addition & 1 deletion server/examples/config-ldes-rinf.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@type": "PrefixView",
"prefix": "ldes",
"view": {
"@type": "MongoSDSView",
"@type": "SDSView",
"descriptionId": "http://localhost:3000/rinf/ldes/#timestampFragmentation",
"streamId": "https://era.ilabt.imec.be/ldes/metadata#generation-stream",
"db": {
Expand Down
Loading

0 comments on commit 5c01a7e

Please sign in to comment.