rdflib 2.3.0-d60f1a34 → 2.3.1-233cf569
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/README.md +2 -2
- package/dist/rdflib.min.js +1 -1
- package/dist/rdflib.min.js.map +1 -1
- package/esm/serializer.js +1 -1
- package/lib/serializer.js +1 -1
- package/package.json +2 -1
- package/src/serializer.js +1 -1
package/esm/serializer.js
CHANGED
|
@@ -20,7 +20,7 @@ export default function createSerializer(store) {
|
|
|
20
20
|
;
|
|
21
21
|
export class Serializer {
|
|
22
22
|
constructor(store) {
|
|
23
|
-
_defineProperty(this, "_notQNameChars", '\t\r\n !"#$%&\'()
|
|
23
|
+
_defineProperty(this, "_notQNameChars", '\t\r\n !"#$%&\'()*,+/;<=>?@[\\]^`{|}~');
|
|
24
24
|
// issue#228
|
|
25
25
|
_defineProperty(this, "_notNameChars", this._notQNameChars + ':');
|
|
26
26
|
// stringToN3: String escaping for N3
|
package/lib/serializer.js
CHANGED
|
@@ -30,7 +30,7 @@ function createSerializer(store) {
|
|
|
30
30
|
;
|
|
31
31
|
class Serializer {
|
|
32
32
|
constructor(store) {
|
|
33
|
-
(0, _defineProperty2.default)(this, "_notQNameChars", '\t\r\n !"#$%&\'()
|
|
33
|
+
(0, _defineProperty2.default)(this, "_notQNameChars", '\t\r\n !"#$%&\'()*,+/;<=>?@[\\]^`{|}~');
|
|
34
34
|
// issue#228
|
|
35
35
|
(0, _defineProperty2.default)(this, "_notNameChars", this._notQNameChars + ':');
|
|
36
36
|
// stringToN3: String escaping for N3
|
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.
|
|
4
|
+
"version": "2.3.1-233cf569",
|
|
5
5
|
"private": false,
|
|
6
6
|
"browserslist": [
|
|
7
7
|
"> 0.5%"
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"test:serialize:14": "cd ./tests/serialize && node ./data.js -in=t14.html -format=text/turtle -out=,t14.ttl && node diff ,t14.ttl t14-ref.ttl",
|
|
118
118
|
"test:serialize:15": "cd ./tests/serialize && node ./data.js -in=t15.html -format=text/turtle -out=,t15.ttl && node diff ,t15.ttl t15-ref.ttl",
|
|
119
119
|
"test:serialize:16": "cd ./tests/serialize && node ./data.js -in=t1.ttl -format=application/ld+json -out=,t1.jsonld && node diff ,t1.jsonld t16-ref.jsonld",
|
|
120
|
+
"test:serialize:17": "cd ./tests/serialize && node ./data.js -in=t17.ttl -format=application/rdf+xml -out=,t17.xml && node diff ,t17.xml t17-ref.xml",
|
|
120
121
|
"test:types": "tsc --noEmit --target es2019 --moduleResolution node tests/types/*.ts",
|
|
121
122
|
"test:unit": "mocha --growl --require ./tests/babel-register.js tests/unit/**-test.*",
|
|
122
123
|
"test:unit:egp": "mocha --require ./tests/babel-register.js tests/unit/fetcher-egp-test.js",
|
package/src/serializer.js
CHANGED
|
@@ -257,7 +257,7 @@ export class Serializer {
|
|
|
257
257
|
return this.statementsToN3(f.statements)
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
_notQNameChars = '\t\r\n !"#$%&\'()
|
|
260
|
+
_notQNameChars = '\t\r\n !"#$%&\'()*,+/;<=>?@[\\]^`{|}~' // issue#228
|
|
261
261
|
_notNameChars =
|
|
262
262
|
(this._notQNameChars + ':')
|
|
263
263
|
|