Skip to content

Commit edf1f54

Browse files
committed
feat: add describedby header in componentsjs config
1 parent c02aeb6 commit edf1f54

File tree

7 files changed

+95
-1
lines changed

7 files changed

+95
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## TODOs
44

55
- [ ] make https://github.com/woutslabbinck/community-server/tree/feat/shape-support work in this directory
6+
- [ ] override link header attempt 1
67
- [ ] make the tests work
78
- [ ] check everything at https://trello.com/c/JzMVInXw/81-shape-support-pr-after-metadata-editing
89
- [ ] ask feedback Joachim (zal pas na Januari zijn)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"@context":[
3+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5.0.0/components/context.jsonld",
4+
"https://linkedsoftwaredependencies.org/bundles/npm/shape-validation-component/^5.0.0/components/context.jsonld"
5+
],
6+
"import": [
7+
"shape-validation:config/ldp/metadata-writer/link-rel.json"
8+
],
9+
"@graph": [
10+
{
11+
"comment": "Adds metadata to the response based on the RDF metadata.",
12+
"@id": "urn:solid-server:default:MetadataWriter",
13+
"@type": "ParallelHandler",
14+
"handlers": [
15+
{ "@id": "urn:shape-validation:default:MetadataWriter_LinkRel" }
16+
]
17+
}
18+
]
19+
}
20+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"@context":[
3+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5.0.0/components/context.jsonld",
4+
"https://linkedsoftwaredependencies.org/bundles/npm/shape-validation-component/^5.0.0/components/context.jsonld"
5+
],
6+
"@graph": [
7+
{
8+
"comment": "Converts all triples with the given predicates to Link headers.",
9+
"@id": "urn:shape-validation:default:MetadataWriter_LinkRel",
10+
"@type": "LinkRelMetadataWriter",
11+
"linkRelMap": [
12+
{
13+
"LinkRelMetadataWriter:_linkRelMap_key": "http://www.w3.org/ns/ldp#constrainedBy",
14+
"LinkRelMetadataWriter:_linkRelMap_value": "http://www.w3.org/ns/ldp#constrainedBy"
15+
}
16+
]
17+
}
18+
]
19+
}
20+

config/shape-validation.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/shape-validation-component/^5.0.0/components/context.jsonld",
3+
"import": [
4+
"shape-validation:config/ldp/metadata-writer/default.json"
5+
]
6+
}
7+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"https://linkedsoftwaredependencies.org/bundles/npm/shape-validation-component/^5.0.0/dist/": "dist/"
1717
},
1818
"scripts": {
19-
"start": "community-solid-server -c hello-world-file.json -f .data -m .",
19+
"start": "community-solid-server -c shape-default.json -p 3456 -m .",
2020
"build": "npm run build:ts && npm run build:components",
2121
"build:components": "componentsjs-generator -s src -c dist/components -i .componentsignore -r shape-validation",
2222
"build:ts": "tsc",

shape-default.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"@context":[
3+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5.0.0/components/context.jsonld",
4+
"https://linkedsoftwaredependencies.org/bundles/npm/shape-validation-component/^5.0.0/components/context.jsonld"
5+
],
6+
"import": [
7+
"css:config/app/main/default.json",
8+
"css:config/app/init/initialize-root.json",
9+
"css:config/app/setup/disabled.json",
10+
"css:config/app/variables/default.json",
11+
"css:config/http/handler/default.json",
12+
"css:config/http/middleware/websockets.json",
13+
"css:config/http/server-factory/websockets.json",
14+
"css:config/http/static/default.json",
15+
"css:config/identity/access/public.json",
16+
"css:config/identity/email/default.json",
17+
"css:config/identity/handler/default.json",
18+
"css:config/identity/ownership/token.json",
19+
"css:config/identity/pod/static.json",
20+
"css:config/identity/registration/enabled.json",
21+
"css:config/ldp/authentication/dpop-bearer.json",
22+
"css:config/ldp/authorization/webacl.json",
23+
"css:config/ldp/handler/default.json",
24+
"css:config/ldp/metadata-parser/default.json",
25+
"css:config/ldp/metadata-writer/default.json",
26+
"css:config/ldp/modes/default.json",
27+
"css:config/storage/backend/memory.json",
28+
"css:config/storage/key-value/resource-store.json",
29+
"css:config/storage/middleware/default.json",
30+
"css:config/util/auxiliary/acl.json",
31+
"css:config/util/identifiers/suffix.json",
32+
"css:config/util/index/default.json",
33+
"css:config/util/logging/winston.json",
34+
"css:config/util/representation-conversion/default.json",
35+
"css:config/util/resource-locker/memory.json",
36+
"css:config/util/variables/default.json",
37+
38+
"shape-validation:config/shape-validation.json"
39+
],
40+
"@graph": [
41+
{
42+
"comment": "A single-pod server that stores its resources on disk."
43+
}
44+
]
45+
}
46+

src/index.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)