From 563817c5e614aca3a4cd5f0699dc71c34152442a Mon Sep 17 00:00:00 2001 From: Boris De Vloed Date: Thu, 1 Dec 2022 14:28:25 +0000 Subject: [PATCH] renamed method to transformTriples --- config/loket-consumer/leidinggevenden-dispatching/util.js | 6 +++--- config/loket-consumer/mandate-dispatching/util.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/loket-consumer/leidinggevenden-dispatching/util.js b/config/loket-consumer/leidinggevenden-dispatching/util.js index 496cda5..db93194 100644 --- a/config/loket-consumer/leidinggevenden-dispatching/util.js +++ b/config/loket-consumer/leidinggevenden-dispatching/util.js @@ -74,9 +74,9 @@ function partition(arr, fn) { * Send triples to reasoning service for conversion * */ -function transformGraph(fetch, triples) { +function transformTriples(fetch, triples) { return preProcess(fetch, triples) - .then(preprocessed => mainConversion(fetch, preprocessed)); + .then(preprocessed => mainConversion(fetch, preprocessed)); } @@ -121,7 +121,7 @@ function mainConversion(fetch, triples) { } function transformStatements(fetch, triples) { - return transformGraph(fetch, triples.join('\n')).then( + return transformTriples(fetch, triples.join('\n')).then( graph => { statements = graph.replace(/\n{2,}/g, '').split('\n') console.log(`CONVERSION: FROM ${triples.length} triples to ${statements.length}`) diff --git a/config/loket-consumer/mandate-dispatching/util.js b/config/loket-consumer/mandate-dispatching/util.js index 496cda5..db93194 100644 --- a/config/loket-consumer/mandate-dispatching/util.js +++ b/config/loket-consumer/mandate-dispatching/util.js @@ -74,9 +74,9 @@ function partition(arr, fn) { * Send triples to reasoning service for conversion * */ -function transformGraph(fetch, triples) { +function transformTriples(fetch, triples) { return preProcess(fetch, triples) - .then(preprocessed => mainConversion(fetch, preprocessed)); + .then(preprocessed => mainConversion(fetch, preprocessed)); } @@ -121,7 +121,7 @@ function mainConversion(fetch, triples) { } function transformStatements(fetch, triples) { - return transformGraph(fetch, triples.join('\n')).then( + return transformTriples(fetch, triples.join('\n')).then( graph => { statements = graph.replace(/\n{2,}/g, '').split('\n') console.log(`CONVERSION: FROM ${triples.length} triples to ${statements.length}`)