rdflib 2.2.19-cd56ba2b → 2.2.19-d0f324ca
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/rdflib.min.js.map +1 -1
- package/esm/serializer.js +3 -3
- package/lib/serializer.d.ts +1 -1
- package/lib/serializer.js +3 -3
- package/package.json +1 -1
- package/src/serializer.js +4 -4
package/esm/serializer.js
CHANGED
|
@@ -60,7 +60,7 @@ export var Serializer = /*#__PURE__*/function () {
|
|
|
60
60
|
this.prefixchars = 'abcdefghijklmnopqustuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
61
61
|
this.incoming = null; // Array not calculated yet
|
|
62
62
|
|
|
63
|
-
this.formulas = []; //
|
|
63
|
+
this.formulas = []; // remembering original formulae from hashes
|
|
64
64
|
|
|
65
65
|
this.store = store;
|
|
66
66
|
this.rdfFactory = store.rdfFactory || CanonicalDataFactory;
|
|
@@ -102,7 +102,7 @@ export var Serializer = /*#__PURE__*/function () {
|
|
|
102
102
|
return this.store.fromNT(s);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
* Defines a set of [prefix, namespace] pairs to be
|
|
105
|
+
* Defines a set of [prefix, namespace] pairs to be used by this Serializer instance.
|
|
106
106
|
* Overrides previous prefixes if any
|
|
107
107
|
* @param namespaces
|
|
108
108
|
* @return {Serializer}
|
|
@@ -665,7 +665,7 @@ export var Serializer = /*#__PURE__*/function () {
|
|
|
665
665
|
return val;
|
|
666
666
|
|
|
667
667
|
case 'http://www.w3.org/2001/XMLSchema#decimal':
|
|
668
|
-
// In
|
|
668
|
+
// In Turtle, must have dot
|
|
669
669
|
if (val.indexOf('.') < 0) val += '.0';
|
|
670
670
|
return val;
|
|
671
671
|
|
package/lib/serializer.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export class Serializer {
|
|
|
26
26
|
toStr(x: any): any;
|
|
27
27
|
fromStr(s: any): any;
|
|
28
28
|
/**
|
|
29
|
-
* Defines a set of [prefix, namespace] pairs to be
|
|
29
|
+
* Defines a set of [prefix, namespace] pairs to be used by this Serializer instance.
|
|
30
30
|
* Overrides previous prefixes if any
|
|
31
31
|
* @param namespaces
|
|
32
32
|
* @return {Serializer}
|
package/lib/serializer.js
CHANGED
|
@@ -81,7 +81,7 @@ var Serializer = /*#__PURE__*/function () {
|
|
|
81
81
|
this.prefixchars = 'abcdefghijklmnopqustuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
82
82
|
this.incoming = null; // Array not calculated yet
|
|
83
83
|
|
|
84
|
-
this.formulas = []; //
|
|
84
|
+
this.formulas = []; // remembering original formulae from hashes
|
|
85
85
|
|
|
86
86
|
this.store = store;
|
|
87
87
|
this.rdfFactory = store.rdfFactory || _canonicalDataFactory.default;
|
|
@@ -123,7 +123,7 @@ var Serializer = /*#__PURE__*/function () {
|
|
|
123
123
|
return this.store.fromNT(s);
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* Defines a set of [prefix, namespace] pairs to be
|
|
126
|
+
* Defines a set of [prefix, namespace] pairs to be used by this Serializer instance.
|
|
127
127
|
* Overrides previous prefixes if any
|
|
128
128
|
* @param namespaces
|
|
129
129
|
* @return {Serializer}
|
|
@@ -686,7 +686,7 @@ var Serializer = /*#__PURE__*/function () {
|
|
|
686
686
|
return val;
|
|
687
687
|
|
|
688
688
|
case 'http://www.w3.org/2001/XMLSchema#decimal':
|
|
689
|
-
// In
|
|
689
|
+
// In Turtle, must have dot
|
|
690
690
|
if (val.indexOf('.') < 0) val += '.0';
|
|
691
691
|
return val;
|
|
692
692
|
|
package/package.json
CHANGED
package/src/serializer.js
CHANGED
|
@@ -40,7 +40,7 @@ export class Serializer {
|
|
|
40
40
|
this.keywords = ['a'] // The only one we generate at the moment
|
|
41
41
|
this.prefixchars = 'abcdefghijklmnopqustuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
42
42
|
this.incoming = null // Array not calculated yet
|
|
43
|
-
this.formulas = [] //
|
|
43
|
+
this.formulas = [] // remembering original formulae from hashes
|
|
44
44
|
this.store = store
|
|
45
45
|
this.rdfFactory = store.rdfFactory || CanonicalDataFactory
|
|
46
46
|
this.xsd = createXSD(this.rdfFactory)
|
|
@@ -74,7 +74,7 @@ export class Serializer {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Defines a set of [prefix, namespace] pairs to be
|
|
77
|
+
* Defines a set of [prefix, namespace] pairs to be used by this Serializer instance.
|
|
78
78
|
* Overrides previous prefixes if any
|
|
79
79
|
* @param namespaces
|
|
80
80
|
* @return {Serializer}
|
|
@@ -536,7 +536,7 @@ export class Serializer {
|
|
|
536
536
|
case 'http://www.w3.org/2001/XMLSchema#integer':
|
|
537
537
|
return val
|
|
538
538
|
|
|
539
|
-
case 'http://www.w3.org/2001/XMLSchema#decimal': // In
|
|
539
|
+
case 'http://www.w3.org/2001/XMLSchema#decimal': // In Turtle, must have dot
|
|
540
540
|
if (val.indexOf('.') < 0) val += '.0'
|
|
541
541
|
return val
|
|
542
542
|
|
|
@@ -1031,4 +1031,4 @@ function backslashUify (str) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
return res
|
|
1034
|
-
}
|
|
1034
|
+
}
|