From 7b0ee41ddfe19fad9a2494a4f2b21c2e24b9ef6d Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sat, 5 Sep 2026 22:47:57 +0200 Subject: [PATCH] Allow configuring IdentifierIssuer in toRdf --- lib/toRdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/toRdf.js b/lib/toRdf.js index e8a54844..87972fcf 100644 --- a/lib/toRdf.js +++ b/lib/toRdf.js @@ -52,7 +52,7 @@ module.exports = api; */ api.toRDF = (input, options) => { // create node map for default graph (and any named graphs) - const issuer = new util.IdentifierIssuer('_:b'); + const issuer = options.issuer || new util.IdentifierIssuer('_:b'); const nodeMap = {'@default': {}}; createNodeMap(input, nodeMap, '@default', issuer);