Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Sep 7, 2024
1 parent be926f3 commit f98a685
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions perf/data/trigGen.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const N3 = require('../../lib');
const fs = require('fs');
const path = require('path');
const N3 = require('../../lib');

const { quad, namedNode, literal } = N3.DataFactory;
const dim = 30;

const writer = new N3.StreamWriter();

// eslint-disable-next-line
fs.rmSync(path.join(__dirname, 'data.trig'), { force: true });
const outputStream = fs.createWriteStream(path.join(__dirname, 'data.trig'));
writer.pipe(outputStream);
Expand All @@ -16,11 +18,11 @@ for (let i = 0; i < dim; i++) {
for (let k = 0; k < dim; k++) {
for (let l = 0; l < dim; l++) {
writer.write(quad(
namedNode(prefix + i), namedNode(prefix + j), (k % 2 === 0 ? namedNode : literal)(prefix + k), namedNode(prefix + l)
namedNode(prefix + i), namedNode(prefix + j), (k % 2 === 0 ? namedNode : literal)(prefix + k), namedNode(prefix + l),
));
}
}
}
}

writer.end();
writer.end();

0 comments on commit f98a685

Please sign in to comment.