-
Notifications
You must be signed in to change notification settings - Fork 5
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
added DatasetCoreFactory #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really need to extend DataFactory? I don't see why that would be necessary. Everything else about this looks good to me.
You are right. But we should be careful when we discuss features for the Later in the code I would like to pass around only one factory for |
Hmm.. In fact, there are plenty of use cases for instantiating different implementations of a |
I agree that there can be good reasons to use different I don't want to force anybody to use a combined factory, but I would like to do it. So all I want is avoiding name clashes. It's not that interesting for this spec, but maybe for new specs which will be based on the Representation spec and the Dataset spec. Please suggest better options. I agree that extending the interface is a little bit "heavy" for the feature I want. This PR does not add this as a new feature. I would propose to accept this PR and I create a new issue for that topic. |
@bergos I'm not sure I'm following the parts about new specs and naming clashes but it sounds like you've got some good ideas in mind, maybe I am just not getting it?
I think the best option is that implementations can choose to implement both interfaces simultaneously. This was one of Java's greatest innovations IMO. Please let me know if there is something else I am missing though.
Again, not sure I am getting this right, but isn't this feature exactly what the PR is adding? I think this is the appropriate place then to make a case against extending |
@blake-regalia I removed extending from |
This PR fixes #20 by adding a
DatasetCoreFactory
interface.In
DatasetFactory.dataset()
we have thequads
argument defined like this:optional (Dataset or sequence<Quad>) quads
. I replaced it withoptional sequence<Quad> quads
as theDatasetCore
interface implementssequence<Quad>
. Maybe we want to add it again to have it more explicit. I also added a short description for the interface. The rest is just an adapted copy ofDatasetFactory
.