n3 2.11.4 → 2.11.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.
- package/browser/n3.esm.min.js +4 -4
- package/browser/n3.min.js +4 -4
- package/lib/N3Reasoner.js +1 -1
- package/package.json +1 -1
- package/src/N3Reasoner.js +1 -1
package/lib/N3Reasoner.js
CHANGED
|
@@ -154,7 +154,7 @@ class N3Reasoner {
|
|
|
154
154
|
premise,
|
|
155
155
|
conclusion
|
|
156
156
|
}) {
|
|
157
|
-
const varMapping =
|
|
157
|
+
const varMapping = Object.create(null);
|
|
158
158
|
const toId = value => value.termType === 'Variable' ?
|
|
159
159
|
// If the term is a variable, then create an empty object that values can be placed into
|
|
160
160
|
varMapping[value.value] = varMapping[value.value] || {} :
|
package/package.json
CHANGED
package/src/N3Reasoner.js
CHANGED
|
@@ -156,7 +156,7 @@ export default class N3Reasoner {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createRule({ premise, conclusion }) {
|
|
159
|
-
const varMapping =
|
|
159
|
+
const varMapping = Object.create(null);
|
|
160
160
|
|
|
161
161
|
const toId = value => value.termType === 'Variable' ?
|
|
162
162
|
// If the term is a variable, then create an empty object that values can be placed into
|