canonical property
final
Whether to produce canonical N-Quads output.
When canonical is true, the encoder will:
- Use specific character escaping rules as defined by RDF canonical N-Quads
- Sort output lines lexicographically to ensure deterministic output
- Apply consistent blank node labeling
Important: This does NOT fulfill the complete RDF Dataset Canonicalization
specification (RDF-CANON) because blank nodes are not canonicalized according
to that spec, which requires much more complex algorithms. For full RDF
canonicalization compliance, use the rdf_canonicalization
package instead.
This is useful for creating reproducible output that can be compared byte-for-byte across different runs with the same input.
Implementation
final bool canonical;