-
Notifications
You must be signed in to change notification settings - Fork 164
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
add rdf:Alt, rdf:Bag, rdf:Seq to org.eclipse.rdf4j.model #405
Comments
Hi @jeenbroekstra, I would like to know if this issue is still open and if I could work on this. |
@guvi007 it's certainly still open and we'd welcome your input. The requirements here are a little vague though. Do you have a particular design in mind so we can discuss the approach? If you need inspiration, one approach might be something similar to what we did for RDF collections: a couple of utility methods to convert to/from Java collections. |
@jeenbroekstra We are thinking to refer to RDFCollections.java and code a similar class for RDFContainers. We will create a base class RDFContainer, and will extend it from Bag, Sequence and Alt. We might need to copy some code from RDFCollection, if that's fine. This is because much of the basic implementation might be the same. Also, I would like to tell you that three people- me, @prince17080, @guvi007 ) will be working on this issue, and the pull request will be done by Gaurav |
Sounds good, although I wonder if it is necessary to have separate classes for Bag, Sequence and Alt - the only structural difference is just the type, so a single RDFContainers util that has methods for producing the three different kinds of container (represented as Model objects) might be easier. Feel free to put up an early pull request to discuss what you've got, even if it's not complete yet. Also: before you get started, please have a look at the contributor guidelines, in particular the points on how to sign the Eclipse ECA. Since you will be working with multiple authors, be aware that every person who adds a commit to your change will need to sign this ECA. It should be straightforward, it's an online form, shouldn't take more than 10 minutes to sort out. Let me know if you need any help with any of it. |
Alright, we will sign the Eclipse ECA and will follow the contributor guidelines. We will put up a pull request as soon as we get on it and write some basic code. Thanks! |
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
@jeenbroekstra we apologise since it is taking some time. We are college students caught in lots of assignment and projects deadlines lately, we are trying our best to get this done ASAP. |
No worries, in your own time! |
Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
@jeenbroekstra we have added an early pull request as you suggested to see if we are on the right track, please review it. |
…, add untested code for consumeValues() method for RDFContainers.java (documentation pending) Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
… (documentation pending) Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com>
Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in>
Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in>
…method Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in>
…un mvn impsort:sort Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in>
…ava, Remove distinct element check for rdf:alt in RDFContainers.java Signed-off-by: Gaurav Aggarwal <gaurav17288@iiitd.ac.in>
* #405 Add file for the new feature Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com> * #405 Add code for consumeCollection for RDFContainers Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com> * #405 Replace assertion with throwing a runtime exception, add untested code for consumeValues() method for RDFContainers.java (documentation pending) Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com> * #405 Add remaining methods (as present in RDFCollection) (documentation pending) Signed-off-by: Reeshabh Kumar Ranjan <reeshabhkumarranjan@gmail.com> * #405 Add documentation Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in> * #405 Format the file Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in> * #405 Correct the RDFS.Member triple in consumeContainer method Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in> * #405 Change 'as' to 'to', Change version 3.0 to 3.3.0, Run mvn impsort:sort Signed-off-by: Prince Sachdeva <prince17080@iiitd.ac.in> * #405 Add tests for RDF Containers in RDFContainersTest.java, Remove distinct element check for rdf:alt in RDFContainers.java Signed-off-by: Gaurav Aggarwal <gaurav17288@iiitd.ac.in> Co-authored-by: Prince Sachdeva <prince17080@iiitd.ac.in> Co-authored-by: Gaurav Aggarwal <gaurav17288@iiitd.ac.in>
(Migrated from https://openrdf.atlassian.net/browse/SES-2008)
In many cases it is very convenient to create statements with java/scala in a typesafe controlled manner and without SPARQL string evaluation. But it is not possible with current API as there are no (rdf:Alt, rdf:Bag, rdf:Seq) That means that in many cases instead of writing several lines of scala/java code users have to write SPARQL Update/Insert quries that are not only often inconvenient and potential source of bugs (as they are not typesafe) but also have SPARQL parsing overhead (esp. in such intensive operations like generating SPIN SPARQL rules from quires in embedded storages for instance).
The text was updated successfully, but these errors were encountered: