Skip to content

Commit

Permalink
When updating db, load draft into a type/name/draft graph name.
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Dec 4, 2023
1 parent e827edf commit c486330
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deployment/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { load } from '../utils/blazegraph.js';

export function loadDoIntoTripleStore(context, journalPath) {
const obj = context.selectedDigitalObject;
const graph = obj.iri;
const graph = obj.iri + (obj.version === 'draft' ? '/draft' : '');
const data = resolve(obj.path, 'enriched/enriched.ttl');
load(graph, data, journalPath);
}
Expand All @@ -17,7 +17,7 @@ export function loadMetadataIntoTripleStore(context, journalPath) {

export function loadRedundantIntoTripleStore(context, journalPath) {
const obj = context.selectedDigitalObject;
const graph = `${obj.iri}/redundant`;
const graph = `${obj.iri}${obj.version === 'draft' ? '/draft' : ''}/redundant`;
const data = resolve(obj.path, 'enriched/redundant.ttl');
load(graph, data, journalPath);
}
}

0 comments on commit c486330

Please sign in to comment.