Skip to content

Commit 328f729

Browse files
committed
Skip FMA closure computation
1 parent 5f28bda commit 328f729

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/enrichment/enrich-graph.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import {
1414
runCompleteClosure,
1515
} from './utils.js';
1616

17+
const SKIP_CLOSURE = new Set(['fma']);
18+
1719
export function enrichGraphMetadata(context) {
1820
const { selectedDigitalObject: obj } = context;
1921
const normalizedPath = resolve(obj.path, 'normalized/normalized-metadata.yaml');
@@ -66,10 +68,12 @@ export function enrichGraphData(context) {
6668
info(`Creating graph: ${enrichedPath}`);
6769
rdfConvert(enrichedMergePath, enrichedPath, 'ttl');
6870

69-
info('Optimizing graph...');
70-
const redundantPath = resolve(obj.path, 'enriched/redundant.ttl');
71-
runCompleteClosure(enrichedPath, redundantPath);
72-
logOutput(redundantPath);
71+
if (!SKIP_CLOSURE.has(obj.name)) {
72+
info('Optimizing graph...');
73+
const redundantPath = resolve(obj.path, 'enriched/redundant.ttl');
74+
runCompleteClosure(enrichedPath, redundantPath);
75+
logOutput(redundantPath);
76+
}
7377

7478
const enrichedJsonPath = resolve(obj.path, 'enriched/enriched.json');
7579
convertNormalizedDataToJson(context, normalizedPath, enrichedJsonPath, 'graph');

0 commit comments

Comments
 (0)