Files
CommunitySolidServer/config/storage/middleware/stores/patching.json
Joachim Van Herwegen ef9703e284 feat: Patch containers by recreating Representation from metadata
Also included is a change to the Patching architecture.
Patching is now done by RepresentationPatchers that take a Representation as input.
2021-09-16 13:39:11 +02:00

32 lines
1.1 KiB
JSON

{
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld",
"@graph": [
{
"comment": "Allows for PATCH operations on stores that don't have native support.",
"@id": "urn:solid-server:default:ResourceStore_Patching",
"@type": "PatchingStore",
"patchHandler": {
"@id": "urn:solid-server:default:PatchHandler",
"@type": "RepresentationPatchHandler",
"patcher": {
"@type": "WaterfallHandler",
"handlers": [
{
"comment": "Makes sure PATCH operations on containers target the metadata.",
"@type": "ContainerPatcher",
"patcher": { "@type": "SparqlUpdatePatcher" }
},
{
"@type": "ConvertingPatcher",
"patcher": { "@type": "SparqlUpdatePatcher" },
"converter": { "@id": "urn:solid-server:default:RepresentationConverter" },
"intermediateType": "internal/quads",
"defaultType": "text/turtle"
}
]
}
}
}
]
}