rdflib 2.3.1-59aebb32 → 2.3.1-69ed6049
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/dist/515.rdflib.min.js +1 -1
- package/dist/515.rdflib.min.js.LICENSE.txt +6 -2
- package/dist/515.rdflib.min.js.map +1 -1
- package/dist/rdflib.min.js +1 -1
- package/dist/rdflib.min.js.LICENSE.txt +0 -9
- package/dist/rdflib.min.js.map +1 -1
- package/esm/factories/rdflib-data-factory.js +1 -3
- package/esm/fetcher.js +9 -15
- package/esm/formula.js +2 -11
- package/esm/parse.js +1 -3
- package/esm/serializer.js +3 -2
- package/esm/store.js +1 -2
- package/esm/update-manager.js +5 -10
- package/esm/utils.js +1 -2
- package/esm/variable.js +1 -2
- package/esm/xsd.js +1 -2
- package/lib/collection.d.ts +1 -1
- package/lib/factories/rdflib-data-factory.js +1 -3
- package/lib/fetcher.js +9 -15
- package/lib/formula.js +2 -11
- package/lib/index.d.ts +1 -1
- package/lib/parse.js +1 -3
- package/lib/rdfaparser.d.ts +9 -9
- package/lib/rdfxmlparser.d.ts +1 -1
- package/lib/serializer.d.ts +3 -3
- package/lib/serializer.js +3 -2
- package/lib/store.js +1 -2
- package/lib/update-manager.js +5 -10
- package/lib/utils.js +1 -2
- package/lib/variable.js +1 -2
- package/lib/xsd-internal.d.ts +7 -7
- package/lib/xsd.d.ts +7 -7
- package/lib/xsd.js +1 -2
- package/package.json +36 -33
- package/src/jsonldparser.js +2 -2
- package/src/n3parser.js +669 -669
- package/src/serializer.js +7 -7
- package/src/xsd-internal.js +1 -1
- package/src/xsd.js +4 -4
- package/dist/789.rdflib.min.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rdflib",
|
|
3
3
|
"description": "an RDF library for node.js. Suitable for client and server side.",
|
|
4
|
-
"version": "2.3.1-
|
|
4
|
+
"version": "2.3.1-69ed6049",
|
|
5
5
|
"private": false,
|
|
6
6
|
"browserslist": [
|
|
7
7
|
"> 0.5%"
|
|
@@ -44,49 +44,50 @@
|
|
|
44
44
|
"homepage": "http://github.com/linkeddata/rdflib.js",
|
|
45
45
|
"bugs": "http://github.com/linkeddata/rdflib.js/issues",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@babel/runtime": "^7.
|
|
47
|
+
"@babel/runtime": "^7.28.4",
|
|
48
48
|
"@frogcat/ttl2jsonld": "^0.0.10",
|
|
49
49
|
"@rdfjs/types": "^2.0.1",
|
|
50
|
-
"@xmldom/xmldom": "^0.8.
|
|
51
|
-
"cross-fetch": "^
|
|
52
|
-
"jsonld": "^
|
|
53
|
-
"n3": "^1.
|
|
50
|
+
"@xmldom/xmldom": "^0.8.11",
|
|
51
|
+
"cross-fetch": "^4.1.0",
|
|
52
|
+
"jsonld": "^9.0.0",
|
|
53
|
+
"n3": "^1.26.0",
|
|
54
54
|
"solid-namespace": "^0.5.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/cli": "^7.
|
|
58
|
-
"@babel/core": "^7.
|
|
57
|
+
"@babel/cli": "^7.28.3",
|
|
58
|
+
"@babel/core": "^7.28.5",
|
|
59
59
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
60
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
61
|
-
"@babel/preset-env": "^7.
|
|
62
|
-
"@babel/preset-typescript": "^7.
|
|
63
|
-
"@babel/register": "^7.
|
|
64
|
-
"@types/chai": "^
|
|
60
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
61
|
+
"@babel/preset-env": "^7.28.5",
|
|
62
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
63
|
+
"@babel/register": "^7.28.3",
|
|
64
|
+
"@types/chai": "^5.2.3",
|
|
65
65
|
"@types/dirty-chai": "^2.0.5",
|
|
66
|
-
"@types/express": "^
|
|
66
|
+
"@types/express": "^5.0.6",
|
|
67
67
|
"@types/jsonld": "^1.5.15",
|
|
68
68
|
"@types/mocha": "^10.0.10",
|
|
69
|
-
"@types/
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
69
|
+
"@types/node": "^25.0.1",
|
|
70
|
+
"@types/sinon-chai": "^4.0.0",
|
|
71
|
+
"babel-loader": "^10.0.0",
|
|
72
|
+
"chai": "^6.2.1",
|
|
73
|
+
"colors": "^1.4.0",
|
|
74
|
+
"diff": "^8.0.2",
|
|
75
|
+
"eslint": "^9.39.2",
|
|
76
|
+
"globals": "^16.5.0",
|
|
77
|
+
"locate-path": "^8.0.0",
|
|
78
|
+
"mocha": "^11.7.5",
|
|
79
|
+
"nock": "^14.0.10",
|
|
79
80
|
"node-fetch": "^3.3.2",
|
|
80
|
-
"node-polyfill-webpack-plugin": "^
|
|
81
|
+
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
81
82
|
"rimraf": "^6.1.2",
|
|
82
|
-
"sinon": "^
|
|
83
|
-
"sinon-chai": "^
|
|
84
|
-
"source-map-loader": "^
|
|
83
|
+
"sinon": "^21.0.0",
|
|
84
|
+
"sinon-chai": "^4.0.1",
|
|
85
|
+
"source-map-loader": "^5.0.0",
|
|
85
86
|
"ts-node": "^10.9.2",
|
|
86
|
-
"typedoc": "^0.
|
|
87
|
-
"typescript": "^5.
|
|
88
|
-
"webpack": "^5.
|
|
89
|
-
"webpack-cli": "^
|
|
87
|
+
"typedoc": "^0.28.15",
|
|
88
|
+
"typescript": "^5.9.3",
|
|
89
|
+
"webpack": "^5.103.0",
|
|
90
|
+
"webpack-cli": "^6.0.1",
|
|
90
91
|
"webpack-dev-server": "^5.2.2"
|
|
91
92
|
},
|
|
92
93
|
"scripts": {
|
|
@@ -96,6 +97,8 @@
|
|
|
96
97
|
"build:types": "tsc --emitDeclarationOnly -d --moduleResolution node --declarationDir lib",
|
|
97
98
|
"build:all": "npm run build && npm run build:types && npm run build:browser && npm run build:esm",
|
|
98
99
|
"doc": "typedoc --out ./doc ./src/index.ts --excludePrivate --excludeInternal --tsconfig ./tsconfig.json",
|
|
100
|
+
"lint": "eslint src tests",
|
|
101
|
+
"lint:fix": "eslint src tests --fix",
|
|
99
102
|
"ignore:prepublishOnly": "npm ci && npm run build:all && npm run doc && npm run test",
|
|
100
103
|
"postversion": "git push --follow-tags",
|
|
101
104
|
"start": "webpack serve --port 4800",
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
"test:clean": "rimraf tests/serialize/,*",
|
|
104
107
|
"test:serialize": "npm run build && npm run test:serialize:all && npm run test:clean",
|
|
105
108
|
"test:serialize:all": "npm run test:serialize:1 && npm run test:serialize:2 && npm run test:serialize:3 && npm run test:serialize:4 && npm run test:serialize:5 && npm run test:serialize:6 && npm run test:serialize:7 && npm run test:serialize:8 && npm run test:serialize:10 && npm run test:serialize:11 && npm run test:serialize:12 && npm run test:serialize:13 && npm run test:serialize:14 && npm run test:serialize:15 && npm run test:serialize:16 && npm run test:serialize:17 && npm run test:serialize:18",
|
|
106
|
-
"test:serialize:1": "cd ./tests/serialize && node ./data.js -in=t1.ttl -format=application/rdf+xml -out=,t1.xml &&
|
|
109
|
+
"test:serialize:1": "cd ./tests/serialize && node ./data.js -in=t1.ttl -format=application/rdf+xml -out=,t1.xml && node diff ,t1.xml t1-ref.xml",
|
|
107
110
|
"test:serialize:2": "cd ./tests/serialize && node ./data.js -in=t2.ttl -format=application/rdf+xml -out=,t2.xml && node diff ,t2.xml t2-ref.xml",
|
|
108
111
|
"test:serialize:3": "cd ./tests/serialize && node ./data.js -in=t3.ttl -format=application/rdf+xml -out=,t3.xml && node diff ,t3.xml t3-ref.xml",
|
|
109
112
|
"test:serialize:4": "cd ./tests/serialize && node ./data.js -in=t3.ttl -out=,t4.ttl && node diff ,t4.ttl t4-ref.ttl",
|
package/src/jsonldparser.js
CHANGED
|
@@ -78,10 +78,10 @@ export default async function jsonldParser(str, kb, base) {
|
|
|
78
78
|
function nodeType(kb, obj) {
|
|
79
79
|
if (obj['@id'].startsWith('_:')) {
|
|
80
80
|
// This object is a Blank Node. Pass the id without the `_:` prefix
|
|
81
|
-
return kb.rdfFactory.blankNode(obj['@id'].substring(2))
|
|
81
|
+
return kb.rdfFactory.blankNode(obj['@id'].substring(2))
|
|
82
82
|
} else {
|
|
83
83
|
// This object is a Named Node
|
|
84
|
-
return kb.rdfFactory.namedNode(obj['@id'])
|
|
84
|
+
return kb.rdfFactory.namedNode(obj['@id'])
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|