Skip to content

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