n3 3.0.0-alpha.1 → 3.0.0-alpha.2

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 CHANGED
@@ -217,13 +217,12 @@ The parser can output a backwards chaining rule such as `_:q <= _:p.` in two way
217
217
  const parser = new N3.Parser({ isImpliedBy: true });
218
218
  ```
219
219
 
220
- By default, an empty formula `{}` is kept as a blank node graph term.
221
- The [N3 spec tests](https://w3c-cg.github.io/N3/tests/)
222
- (and the direction discussed in [w3c-cg/N3#185](https://github.com/w3c-cg/N3/issues/185))
223
- read it as the boolean literal `"true"^^xsd:boolean` instead;
224
- the `emptyFormulaAsTrue` flag enables that behavior:
220
+ An empty formula `{}` is read as the boolean literal `"true"^^xsd:boolean`,
221
+ following the [N3 spec tests](https://w3c-cg.github.io/N3/tests/)
222
+ (and the direction discussed in [w3c-cg/N3#185](https://github.com/w3c-cg/N3/issues/185)).
223
+ Setting the `emptyFormulaAsTrue` flag to `false` keeps it as a blank node graph term instead:
225
224
  ```JavaScript
226
- const parser = new N3.Parser({ format: 'text/n3', emptyFormulaAsTrue: true });
225
+ const parser = new N3.Parser({ format: 'text/n3', emptyFormulaAsTrue: false });
227
226
  ```
228
227
 
229
228
  In N3 documents, the parser by default rescopes blank node labels