From d46016eeb239a9ed4df311835a1a4c56feeed62a Mon Sep 17 00:00:00 2001 From: "Bruce W. Herr II" Date: Fri, 27 Oct 2023 21:53:48 -0400 Subject: [PATCH] Update catalog graph name --- src/finalizing/build-blazegraph.js | 3 ++- src/finalizing/merge-catalogs.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/finalizing/build-blazegraph.js b/src/finalizing/build-blazegraph.js index 3eb8b7b..dc55c45 100644 --- a/src/finalizing/build-blazegraph.js +++ b/src/finalizing/build-blazegraph.js @@ -32,7 +32,8 @@ export function buildBlazegraphJournal(context) { } const catalog = resolve(context.deploymentHome, 'catalog.ttl'); - sparqlUpdate += `LOAD INTO GRAPH <${context.lodIri}>;\n`; + const catalogGraph = context.lodIri.replace(/\/$/, ''); + sparqlUpdate += `LOAD INTO GRAPH <${catalogGraph}>;\n`; const loadScript = resolve(context.deploymentHome, 'blazegraph.load.rq'); writeFileSync(loadScript, sparqlUpdate); diff --git a/src/finalizing/merge-catalogs.js b/src/finalizing/merge-catalogs.js index 15f30ca..d64bc7a 100644 --- a/src/finalizing/merge-catalogs.js +++ b/src/finalizing/merge-catalogs.js @@ -6,8 +6,9 @@ import { reifyTurtle } from '../utils/reify.js'; export function mergeCatalogs(context) { const graphs = listMetadataGraphs(context); const catalogPath = resolve(context.deploymentHome, 'catalog.ttl'); + const graphName = context.lodIri.replace(/\/$/, ''); mergeTurtles(catalogPath, undefined, graphs); - reifyTurtle(catalogPath, context.lodIri); + reifyTurtle(catalogPath, graphName); } function listMetadataGraphs(context) {