Skip to content

BREAKING CHANGE: Make class Term constructors internal #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

jeswr
Copy link
Collaborator

@jeswr jeswr commented Mar 23, 2023

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.

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.
@jeswr jeswr changed the base branch from main to versions/2.0.0 March 27, 2023 04:58
@jeswr jeswr merged commit f4887f3 into versions/2.0.0 Mar 27, 2023
@jeswr jeswr deleted the breaking/make-class-terms-internal branch September 18, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant