eyeling 1.10.3 → 1.10.5

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.
@@ -1,15 +1,15 @@
1
- @prefix rt: <urn:return#> .
1
+ @prefix rdfg: <http://www.w3.org/2009/rdfg#> .
2
2
  @prefix : <http://example.org/#> .
3
3
  @prefix foaf: <http://xmlns.com/foaf/0.1/> .
4
4
  @prefix sec: <https://w3id.org/security#> .
5
5
  @prefix skolem: <https://eyereasoner.github.io/.well-known/genid/5649fff4-464d-5969-88ed-956a6b5f0d90#> .
6
6
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
7
7
 
8
- skolem:g0 rt:graph {
8
+ skolem:g0 rdfg:isGraph {
9
9
  :Bob foaf:name "Bob" .
10
10
  } .
11
11
 
12
- skolem:g1 rt:graph {
12
+ skolem:g1 rdfg:isGraph {
13
13
  skolem:g0 sec:proof _:dataSignature .
14
14
  _:signature1 a sec:DataIntegrityProof .
15
15
  _:signature1 sec:cryptosuite "ecdsa-rdfc-2019" .
@@ -22,7 +22,7 @@ skolem:g1 rt:graph {
22
22
  _:signature1 sec:validUntil "2025-04-03T00:00:00.000Z"^^xsd:dateTime .
23
23
  } .
24
24
 
25
- _:g3 rt:graph {
25
+ _:g3 rdfg:isGraph {
26
26
  skolem:g1 sec:proof _:signature2 .
27
27
  _:signature2 a sec:DataIntegrityProof .
28
28
  _:signature2 sec:cryptosuite "ecdsa-rdfc-2019" .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyeling",
3
- "version": "1.10.3",
3
+ "version": "1.10.5",
4
4
  "description": "A minimal Notation3 (N3) reasoner in JavaScript.",
5
5
  "main": "./index.js",
6
6
  "keywords": [
@@ -34,14 +34,14 @@
34
34
  "node": ">=18"
35
35
  },
36
36
  "scripts": {
37
+ "build": "node tools/bundle.js",
37
38
  "test:packlist": "node test/packlist.test.js",
38
39
  "test:api": "node test/api.test.js",
39
- "test:maken3": "node test/maken3.test.js",
40
+ "test:n3gen": "node test/n3gen.test.js",
40
41
  "test:examples": "node test/examples.test.js",
41
42
  "test:package": "node test/package.test.js",
42
- "test": "npm run test:packlist && npm run test:api && npm run test:maken3 && npm run test:examples",
43
+ "test": "npm run build && npm run test:packlist && npm run test:api && npm run test:n3gen && npm run test:examples",
43
44
  "preversion": "npm test",
44
- "postversion": "git push --follow-tags",
45
- "build": "node tools/bundle.js"
45
+ "postversion": "git push --follow-tags"
46
46
  }
47
47
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- // Convert examples/input/*.{ttl,trig,srl} -> examples/*.n3 using maken3.js
4
+ // Convert examples/input/*.{ttl,trig,srl} -> 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:
@@ -86,11 +86,11 @@ function showDiff({ IN_GIT, examplesDir, expectedPath, generatedPath, relExpecte
86
86
  function main() {
87
87
  const suiteStart = Date.now();
88
88
 
89
- // test/maken3.test.js -> repo root is one level up
89
+ // test/n3gen.test.js -> repo root is one level up
90
90
  const root = path.resolve(__dirname, '..');
91
91
  const examplesDir = path.join(root, 'examples');
92
92
  const inputDir = path.join(examplesDir, 'input');
93
- const makeN3JsPath = path.join(root, 'maken3.js');
93
+ const n3GenJsPath = path.join(root, 'tools/n3gen.js');
94
94
  const nodePath = process.execPath;
95
95
 
96
96
  if (!fs.existsSync(examplesDir)) {
@@ -101,8 +101,8 @@ function main() {
101
101
  fail(`Cannot find examples/input directory: ${inputDir}`);
102
102
  process.exit(1);
103
103
  }
104
- if (!fs.existsSync(makeN3JsPath)) {
105
- fail(`Cannot find maken3.js: ${makeN3JsPath}`);
104
+ if (!fs.existsSync(n3GenJsPath)) {
105
+ fail(`Cannot find n3gen.js: ${n3GenJsPath}`);
106
106
  process.exit(1);
107
107
  }
108
108
 
@@ -152,7 +152,7 @@ function main() {
152
152
 
153
153
  // Run converter (stdout -> file; stderr captured)
154
154
  const outFd = fs.openSync(generatedPath, 'w');
155
- const r = cp.spawnSync(nodePath, [makeN3JsPath, inPath], {
155
+ const r = cp.spawnSync(nodePath, [n3GenJsPath, inPath], {
156
156
  cwd: root,
157
157
  stdio: ['ignore', outFd, 'pipe'],
158
158
  encoding: 'utf8',