From 38a84b0a14b45d1718015d799023c9a623e0486d Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Tue, 26 Nov 2024 13:22:20 +0100 Subject: [PATCH] Avoid BlankNodes inside PATCHes The spec https://solidproject.org/TR/protocol#server-patch-n3-blank-nodes BlankNodes inside N3 PATCH entries, so let's use a NamedNode here? Hopefully this can fix https://github.com/solid-contrib/pivot/issues/31 --- src/trustedApplications/trustedApplications.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trustedApplications/trustedApplications.utils.ts b/src/trustedApplications/trustedApplications.utils.ts index 3ce65d0..0aa4874 100644 --- a/src/trustedApplications/trustedApplications.utils.ts +++ b/src/trustedApplications/trustedApplications.utils.ts @@ -36,7 +36,7 @@ export function getStatementsToAdd ( person: NamedNode, ns: Namespaces ): any { - const application = new BlankNode(`bn_${nodeName}`) + const application = new NamedNode(nodeName) return [ st(person, ns.acl('trustedApp'), application, person.doc()), st(application, ns.acl('origin'), origin, person.doc()),