Skip to content

Commit

Permalink
Update catalog graph name
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Oct 28, 2023
1 parent 77d3327 commit d46016e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/finalizing/build-blazegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export function buildBlazegraphJournal(context) {
}

const catalog = resolve(context.deploymentHome, 'catalog.ttl');
sparqlUpdate += `LOAD <file://${catalog}> INTO GRAPH <${context.lodIri}>;\n`;
const catalogGraph = context.lodIri.replace(/\/$/, '');
sparqlUpdate += `LOAD <file://${catalog}> INTO GRAPH <${catalogGraph}>;\n`;

const loadScript = resolve(context.deploymentHome, 'blazegraph.load.rq');
writeFileSync(loadScript, sparqlUpdate);
Expand Down
3 changes: 2 additions & 1 deletion src/finalizing/merge-catalogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d46016e

Please sign in to comment.