-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create routing configs and partially clean up config structure
- Loading branch information
Showing
12 changed files
with
184 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"import": [ | ||
"files-scs:config/presets/acl.json", | ||
"files-scs:config/presets/http.json", | ||
"files-scs:config/presets/ldp.json", | ||
"files-scs:config/presets/ldp/credentials-extractor.json", | ||
"files-scs:config/presets/ldp/metadata-handler.json", | ||
"files-scs:config/presets/ldp/operation-handler.json", | ||
"files-scs:config/presets/ldp/permissions-extractor.json", | ||
"files-scs:config/presets/ldp/request-parser.json", | ||
"files-scs:config/presets/logging.json", | ||
"files-scs:config/presets/representation-conversion.json", | ||
"files-scs:config/presets/setup.json", | ||
"files-scs:config/presets/storage/backend/storage-filesystem.json", | ||
"files-scs:config/presets/storage/backend/storage-memory.json", | ||
"files-scs:config/presets/storage/backend/storage-sparql-endpoint.json", | ||
"files-scs:config/presets/storage/routing/regex-routing.json", | ||
"files-scs:config/presets/storage-wrapper.json", | ||
"files-scs:config/presets/cli-params.json" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": [ | ||
"Configure routing to send all requests containing /file/ to the file store, containing /memory/ to the memory store and /sparql/ to the sparql endpoint store.", | ||
"The root .acl file will be stored in the sparql endpoint store." | ||
], | ||
"@id": "urn:solid-server:default:RegexRouterRule", | ||
"RegexRouterRule:_storeMap": [ | ||
{ | ||
"RegexRouterRule:_storeMap_key": "^/\\.acl$", | ||
"RegexRouterRule:_storeMap_value": { "@id": "urn:solid-server:default:SparqlResourceStore" } | ||
}, | ||
{ | ||
"RegexRouterRule:_storeMap_key": "/file/", | ||
"RegexRouterRule:_storeMap_value": { "@id": "urn:solid-server:default:FileResourceStore" } | ||
}, | ||
{ | ||
"RegexRouterRule:_storeMap_key": "/memory/", | ||
"RegexRouterRule:_storeMap_value": { "@id": "urn:solid-server:default:MemoryResourceStore" } | ||
}, | ||
{ | ||
"RegexRouterRule:_storeMap_key": "/sparql/", | ||
"RegexRouterRule:_storeMap_value": { "@id": "urn:solid-server:default:SparqlResourceStore" } | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"import": [ | ||
"files-scs:config/presets/acl.json", | ||
"files-scs:config/presets/http.json", | ||
"files-scs:config/presets/ldp.json", | ||
"files-scs:config/presets/ldp/credentials-extractor.json", | ||
"files-scs:config/presets/ldp/metadata-handler.json", | ||
"files-scs:config/presets/ldp/operation-handler.json", | ||
"files-scs:config/presets/ldp/permissions-extractor.json", | ||
"files-scs:config/presets/ldp/request-parser.json", | ||
"files-scs:config/presets/logging.json", | ||
"files-scs:config/presets/representation-conversion.json", | ||
"files-scs:config/presets/setup.json", | ||
"files-scs:config/presets/storage/backend/storage-filesystem.json", | ||
"files-scs:config/presets/storage/backend/storage-sparql-endpoint.json", | ||
"files-scs:config/presets/storage/routing/quad-type-routing.json", | ||
"files-scs:config/presets/storage-wrapper.json", | ||
"files-scs:config/presets/cli-params.json" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": "Sends all data that can be interpreted as RDF to the sparql endpoint store and all other data to the default store (file in this case).", | ||
"@id": "urn:solid-server:default:ConvertingRouterRule", | ||
"ConvertingRouterRule:_defaultStore": { | ||
"@id": "urn:solid-server:default:FileResourceStore" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:default:RoutingResourceStore", | ||
"@type": "PassthroughStore", | ||
"PassthroughStore:_source": { | ||
"@id": "urn:solid-server:default:BackendResourceStore" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:default:PreferenceSupport", | ||
"@type": "PreferenceSupport", | ||
"PreferenceSupport:_type": "internal/quads", | ||
"PreferenceSupport:_converter": { | ||
"@id": "urn:solid-server:default:RepresentationConverter" | ||
} | ||
}, | ||
{ | ||
"@id": "urn:solid-server:default:ConvertingRouterRule", | ||
"@type": "ConvertingRouterRule", | ||
"ConvertingRouterRule:_store": { | ||
"@id": "urn:solid-server:default:SparqlResourceStore" | ||
}, | ||
"ConvertingRouterRule:_supportChecker": { | ||
"@id": "urn:solid-server:default:PreferenceSupport" | ||
} | ||
}, | ||
{ | ||
"@id": "urn:solid-server:default:RoutingResourceStore", | ||
"@type": "RoutingResourceStore", | ||
"RoutingResourceStore:_rule": { | ||
"@id": "urn:solid-server:default:ConvertingRouterRule" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld", | ||
"@graph": [ | ||
{ | ||
"@id": "urn:solid-server:default:RegexRouterRule", | ||
"@type": "RegexRouterRule", | ||
"RegexRouterRule:_base": { | ||
"@id": "urn:solid-server:default:variable:base" | ||
} | ||
}, | ||
{ | ||
"@id": "urn:solid-server:default:RoutingResourceStore", | ||
"@type": "RoutingResourceStore", | ||
"RoutingResourceStore:_rule": { | ||
"@id": "urn:solid-server:default:RegexRouterRule" | ||
} | ||
} | ||
] | ||
} |