renamed method to transformTriples

This commit is contained in:
Boris De Vloed
2022-12-01 14:28:25 +00:00
parent e37df13876
commit 563817c5e6
2 changed files with 6 additions and 6 deletions

View File

@@ -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}`)

View File

@@ -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}`)