rdfjs / N3.js

Lightning fast, spec-compatible, streaming RDF for JavaScript
http://rdf.js.org/N3.js/
Other
676 stars 127 forks source link

BREAKING CHANGE: Make class Term constructors internal #338

Closed jeswr closed 1 year ago

jeswr commented 1 year ago

These constructors take the id at face value so can be interpreted as the wrong term type if an invalid value is given; for instance a NamedNode can be interpred as a Literal if instantiated with new NamedNode('"hellow world"').

Consumers of the library should use the DataFactory instead to create new terms.