eyeling 1.10.17 → 1.10.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/test/n3gen.test.js +4 -4
- package/test/package.test.js +1 -1
- package/tools/n3gen.js +6 -1673
- package/examples/bind-builtins.n3 +0 -11
- package/examples/bind.n3 +0 -7
- package/examples/family.n3 +0 -10
- package/examples/filter-demorgan.n3 +0 -9
- package/examples/filter-in-notin.n3 +0 -10
- package/examples/filter-nested-or.n3 +0 -10
- package/examples/filter.n3 +0 -8
- package/examples/input/bind-builtins.srl +0 -30
- package/examples/input/bind.srl +0 -12
- package/examples/input/family.srl +0 -12
- package/examples/input/filter-demorgan.srl +0 -15
- package/examples/input/filter-in-notin.srl +0 -15
- package/examples/input/filter-nested-or.srl +0 -15
- package/examples/input/filter.srl +0 -9
- package/examples/input/snaf.srl +0 -6
- package/examples/output/bind-builtins.n3 +0 -9
- package/examples/output/bind.n3 +0 -3
- package/examples/output/family.n3 +0 -13
- package/examples/output/filter-demorgan.n3 +0 -3
- package/examples/output/filter-in-notin.n3 +0 -4
- package/examples/output/filter-nested-or.n3 +0 -4
- package/examples/output/filter.n3 +0 -3
- package/examples/output/snaf.n3 +0 -3
- package/examples/snaf.n3 +0 -6
package/package.json
CHANGED
package/test/n3gen.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
// Convert examples/input/*.{ttl,trig
|
|
4
|
+
// Convert examples/input/*.{ttl,trig} -> examples/*.n3 using n3gen.js
|
|
5
5
|
// Designed to work both in a git checkout (maintainer mode) and in an npm-installed package.
|
|
6
6
|
//
|
|
7
7
|
// In git mode:
|
|
@@ -109,14 +109,14 @@ function main() {
|
|
|
109
109
|
const IN_GIT = inGitWorktree(root);
|
|
110
110
|
|
|
111
111
|
const inputs = fs.readdirSync(inputDir)
|
|
112
|
-
.filter(f => /\.(ttl|trig
|
|
112
|
+
.filter(f => /\.(ttl|trig)$/i.test(f))
|
|
113
113
|
.sort((a, b) => a.localeCompare(b));
|
|
114
114
|
|
|
115
115
|
info(`Running n3 conversions for ${inputs.length} inputs (${IN_GIT ? 'git worktree mode' : 'npm-installed mode'})`);
|
|
116
116
|
console.log(`${C.dim}node ${process.version}${C.n}`);
|
|
117
117
|
|
|
118
118
|
if (inputs.length === 0) {
|
|
119
|
-
ok('No .ttl/.trig
|
|
119
|
+
ok('No .ttl/.trig files found in examples/input/');
|
|
120
120
|
process.exit(0);
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -129,7 +129,7 @@ function main() {
|
|
|
129
129
|
const start = Date.now();
|
|
130
130
|
|
|
131
131
|
const inPath = path.join(inputDir, inFile);
|
|
132
|
-
const base = inFile.replace(/\.(ttl|trig
|
|
132
|
+
const base = inFile.replace(/\.(ttl|trig)$/i, '');
|
|
133
133
|
const outFile = `${base}.n3`;
|
|
134
134
|
|
|
135
135
|
const expectedPath = path.join(examplesDir, outFile);
|