@frogcat/ttl2jsonld 0.0.8 → 0.0.10

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.
Files changed (3) hide show
  1. package/README.md +3 -5
  2. package/package.json +5 -6
  3. package/ttl2jsonld.js +642 -614
package/README.md CHANGED
@@ -8,7 +8,6 @@ Online demo is available [here](https://frogcat.github.io/ttl2jsonld/demo/).
8
8
 
9
9
  With this converter, you can obtain `Output JSON-LD` from `Input Turtle`, as shown in [JSON-LD 1.0 Specification](https://www.w3.org/TR/json-ld/#turtle) .
10
10
 
11
-
12
11
  ### Input Turtle
13
12
 
14
13
  ```example66.ttl
@@ -114,11 +113,10 @@ When you want to pass baseIRI, give second argument like this.
114
113
 
115
114
  ```a.js
116
115
  var json_object = ttl2jsonld.parse(turtle_string, {
117
- baseIRI : "http://example.org/"
116
+ baseIRI : "http://example.org/"
118
117
  });
119
118
  ```
120
119
 
121
-
122
120
  ## For developers
123
121
 
124
122
  ### building
@@ -129,7 +127,7 @@ var json_object = ttl2jsonld.parse(turtle_string, {
129
127
 
130
128
  ### testing
131
129
 
132
- - Tested with [rdf-test-suite](https://www.npmjs.com/package/rdf-test-suite).
133
- - Currently 294 / 298 tests succeeded.
130
+ - Tested with [rdf-test-suite](https://www.npmjs.com/package/rdf-test-suite) and <https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-turtle/manifest.ttl> .
131
+ - Currently 298 / 301 tests succeeded.
134
132
  - Run `npm run spec-turtle` to start rdr-test-suite.
135
133
  - Other miscellaneous tests are located in `test/test.js`, `npm run test` to run.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogcat/ttl2jsonld",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Turtle to JSON-LD converter for node.js and browser, no library dependencies",
5
5
  "main": "ttl2jsonld.js",
6
6
  "files": [
@@ -11,9 +11,9 @@
11
11
  "ttl2jsonld": "./bin/cli.js"
12
12
  },
13
13
  "scripts": {
14
- "test": "mocha",
14
+ "test": "tape test/*.js",
15
15
  "build": "pegjs -o ttl2jsonld.js --format umd --export-var ttl2jsonld spec/ttl2jsonld.pegjs",
16
- "spec-turtle": "rdf-test-suite spec/parser.js https://w3c.github.io/rdf-tests/turtle/manifest.ttl -c .rdf-test-suite-cache/"
16
+ "spec-turtle": "rdf-test-suite spec/parser.js https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-turtle/manifest.ttl -c .rdf-test-suite-cache/"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -32,10 +32,9 @@
32
32
  },
33
33
  "homepage": "https://github.com/frogcat/ttl2jsonld#readme",
34
34
  "devDependencies": {
35
- "chai": "^4.3.6",
36
35
  "jsonld-streaming-parser": "^2.4.3",
37
- "mocha": "^9.2.2",
38
36
  "pegjs": "^0.10.0",
39
- "rdf-test-suite": "^1.18.0"
37
+ "rdf-test-suite": "^2.0.0",
38
+ "tape": "^5.6.3"
40
39
  }
41
40
  }