Re: potential new API Was: Immutability

2017-12-18 Thread ajs6f
/jena/compare/master...ajs6f:JENA-1391 ajs6f > On Dec 17, 2017, at 8:15 PM, Adam Jacobs <jacobs_...@hotmail.com> wrote: > > I just want to mention that it was not my intent to derail progress on > Jena-1391 (https://issues.apache.org/jira/browse/JENA-1391) by raising the >

Re: potential new API Was: Immutability

2017-12-17 Thread Adam Jacobs
I just want to mention that it was not my intent to derail progress on Jena-1391 (https://issues.apache.org/jira/browse/JENA-1391) by raising the issue of immutability, particularly if immutability would be implemented via a new API. I don't think it should be considered a blocker to that story

potential new API Was: Immutability

2017-12-13 Thread ajs6f
own use cases and ideas... The two "asks" I've heard recently from Jena users are: immutability and Streams. I'm guessing there are others. I would like to take advantage of Optional for some of the attributes of a node (e.g. return the lang of a literal as Optional). Other thoughts

Re: Immutability

2017-11-16 Thread Andy Seaborne
Yes, I think it is best done as a new API. Modifications to the existing one are likely to run into problems somewhere and given the number of users, and the change over time on upgrades, having compatibility matters as does gradual migration A complicates case: Dataset.getModel(String)

Re: Immutability

2017-11-15 Thread ajs6f
e boundary of the project. For example if Jena had a webservice API that retrieved Models and such then it might makes sense for the deserialized versions to be immutable. Claude On Tue, Nov 14, 2017 at 12:12 AM, Adam Jacobs <jacobs_...@hotmail.com> wrote: The subject of immutability was raised in J

Re: Immutability

2017-11-13 Thread Claude Warren
bs_...@hotmail.com> wrote: > The subject of immutability was raised in JENA-1391 ( > https://issues.apache.org/jira/browse/JENA-1391). > > Specifically, the `getUnionModel` method in Jena 3.4 returns an immutable > model view, and the implementation of the aforementioned sto

Re: Immutability

2017-11-13 Thread Claude Warren
ervice API that retrieved Models and such then it might makes sense for the deserialized versions to be immutable. Claude On Tue, Nov 14, 2017 at 12:12 AM, Adam Jacobs <jacobs_...@hotmail.com> wrote: > The subject of immutability was raised in JENA-1391 ( > https://issues.apache.org

Immutability

2017-11-13 Thread Adam Jacobs
The subject of immutability was raised in JENA-1391 (https://issues.apache.org/jira/browse/JENA-1391). Specifically, the `getUnionModel` method in Jena 3.4 returns an immutable model view, and the implementation of the aforementioned story includes methods that will return an immutable dataset