@@ -14,6 +14,8 @@ import {
1414 runCompleteClosure ,
1515} from './utils.js' ;
1616
17+ const SKIP_CLOSURE = new Set ( [ 'fma' ] ) ;
18+
1719export 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