docs: Add comments referencing the Solid spec where relevant

Also some minor changes to completely match the spec there.
This commit is contained in:
Joachim Van Herwegen
2021-01-14 10:01:56 +01:00
parent 50e3cf5036
commit ee50f40062
9 changed files with 39 additions and 5 deletions

View File

@@ -92,7 +92,8 @@ export class SparqlUpdatePatchHandler extends PatchHandler {
});
this.logger.debug(`${store.size} quads in ${identifier.path}.`);
} catch (error: unknown) {
// In case the resource does not exist yet we want to create it
// Solid, §5.1: "Clients who want to assign a URI to a resource, MUST use PUT and PATCH requests."
// https://solid.github.io/specification/protocol#resource-type-heuristics
if (!(error instanceof NotFoundHttpError)) {
throw error;
}