Skip to content
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

Update DatasetCoreFactory to match Dataset Factory #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaxoncreed
Copy link
Contributor

DatasetFactory accepts both a DataSet and an array of Quads, while DatasetCoreFactory only has an array of Quads. Note that this is correct according to the spec (https://rdf.js.org/dataset-spec/#datasetcorefactory-interface), but I would argue that consistency is better.

`DatasetFactory` accepts both a DataSet and an array of Quads, while `DatasetCoreFactory` only has an array of Quads. Note that this is correct according to the spec (https://rdf.js.org/dataset-spec/#datasetcorefactory-interface), but I would argue that consistency is better.
@tpluscode
Copy link
Contributor

I'm not sure. I think we should try to be true to the spec. I see that Dataset#addAll indeed accepts an array as well as another dataset instance so we might align the two first.

On the other hand changing the constructor could be a potential breaking change for implementations which strictly accept only arrays

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.

2 participants