[jira] [Commented] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238453#comment-16238453
 ] 

ASF GitHub Bot commented on JENA-1407:
--

Github user afs commented on the issue:

https://github.com/apache/jena/pull/297
  
The changes do make the build significantly more usable! Thanks.


> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Assignee: Rob Vesse
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] jena issue #297: Enable parallel testing for Elephas IO (JENA-1407)

2017-11-03 Thread afs
Github user afs commented on the issue:

https://github.com/apache/jena/pull/297
  
The changes do make the build significantly more usable! Thanks.


---


[jira] [Closed] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne closed JENA-1407.
---

> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Assignee: Rob Vesse
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-1407.
-
Resolution: Done

> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne reassigned JENA-1407:
---

Assignee: Rob Vesse

> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Assignee: Rob Vesse
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1407:

Affects Version/s: Jena 3.4.0

> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1407:

Fix Version/s: Jena 3.5.0

> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.4.0
>Reporter: Andy Seaborne
>Priority: Minor
> Fix For: Jena 3.5.0
>
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1416:

Fix Version/s: (was: Jena 3.5.0)
   Jena 3.6.0

> Compaction fails on MSWindows.
> --
>
> Key: JENA-1416
> URL: https://issues.apache.org/jira/browse/JENA-1416
> Project: Apache Jena
>  Issue Type: Bug
>  Components: TDB2
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Major
> Fix For: Jena 3.6.0
>
>
> Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-1416.
-
Resolution: Fixed

> Compaction fails on MSWindows.
> --
>
> Key: JENA-1416
> URL: https://issues.apache.org/jira/browse/JENA-1416
> Project: Apache Jena
>  Issue Type: Bug
>  Components: TDB2
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Major
> Fix For: Jena 3.5.0
>
>
> Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238431#comment-16238431
 ] 

ASF subversion and git services commented on JENA-1416:
---

Commit a8052438c261b00c76002642899bb0db1e939ed9 in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=a805243 ]

Merge commit 'refs/pull/302/head' of github.com:apache/jena

Includes fix for JENA-1416.

This closes #302.


> Compaction fails on MSWindows.
> --
>
> Key: JENA-1416
> URL: https://issues.apache.org/jira/browse/JENA-1416
> Project: Apache Jena
>  Issue Type: Bug
>  Components: TDB2
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Major
> Fix For: Jena 3.5.0
>
>
> Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1416:

Fix Version/s: Jena 3.5.0

> Compaction fails on MSWindows.
> --
>
> Key: JENA-1416
> URL: https://issues.apache.org/jira/browse/JENA-1416
> Project: Apache Jena
>  Issue Type: Bug
>  Components: TDB2
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Major
> Fix For: Jena 3.5.0
>
>
> Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] jena pull request #302: Fixing tests on Windows for 3.5.0 RC2

2017-11-03 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/jena/pull/302


---


[jira] [Commented] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238367#comment-16238367
 ] 

ASF GitHub Bot commented on JENA-1407:
--

Github user rvesse commented on the issue:

https://github.com/apache/jena/pull/297
  
I think leaving at 2 is good, I was playing with using 
`false` though obviously that lessens 
the benefit.  I think we can close this out though if we've delivered 
noticeable improvements already, not really worth tweaking the configs too much 
as any further gain is likely limited


> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Reporter: Andy Seaborne
>Priority: Minor
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238368#comment-16238368
 ] 

ASF GitHub Bot commented on JENA-1407:
--

Github user rvesse closed the pull request at:

https://github.com/apache/jena/pull/297


> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Reporter: Andy Seaborne
>Priority: Minor
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] jena pull request #297: Enable parallel testing for Elephas IO (JENA-1407)

2017-11-03 Thread rvesse
Github user rvesse closed the pull request at:

https://github.com/apache/jena/pull/297


---


[GitHub] jena issue #297: Enable parallel testing for Elephas IO (JENA-1407)

2017-11-03 Thread rvesse
Github user rvesse commented on the issue:

https://github.com/apache/jena/pull/297
  
I think leaving at 2 is good, I was playing with using 
`false` though obviously that lessens 
the benefit.  I think we can close this out though if we've delivered 
noticeable improvements already, not really worth tweaking the configs too much 
as any further gain is likely limited


---


[jira] [Assigned] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread Andy Seaborne (JIRA)

 [ 
https://issues.apache.org/jira/browse/JENA-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne reassigned JENA-1416:
---

Assignee: Andy Seaborne

> Compaction fails on MSWindows.
> --
>
> Key: JENA-1416
> URL: https://issues.apache.org/jira/browse/JENA-1416
> Project: Apache Jena
>  Issue Type: Bug
>  Components: TDB2
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Major
>
> Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (JENA-1416) Compaction fails on MSWindows.

2017-11-03 Thread Andy Seaborne (JIRA)
Andy Seaborne created JENA-1416:
---

 Summary: Compaction fails on MSWindows.
 Key: JENA-1416
 URL: https://issues.apache.org/jira/browse/JENA-1416
 Project: Apache Jena
  Issue Type: Bug
  Components: TDB2
Reporter: Andy Seaborne
Priority: Major


Tries to create a file name with a ":" in it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JENA-1407) Improvements to build/test time of Elephas tests.

2017-11-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238334#comment-16238334
 ] 

ASF GitHub Bot commented on JENA-1407:
--

Github user afs commented on the issue:

https://github.com/apache/jena/pull/297
  
Jena 3.5.0 went out with `2` which is per-core 
(hyperthreading seems to count as 2 for a total of 4 per CPU-chip). 
`threadCount=1` made a big difference and a setting of 2 more so. Changing 2 to 
4 made little difference.  [Write-up on the JIRA 
ticket](https://issues.apache.org/jira/browse/JENA-1407?focusedCommentId=16222769#comment-16222769).

@rvesse  With that, are you happy to close the JIRA and this PR? Do you 
want to bump to 4 anyway?




> Improvements to build/test time of Elephas tests.
> -
>
> Key: JENA-1407
> URL: https://issues.apache.org/jira/browse/JENA-1407
> Project: Apache Jena
>  Issue Type: Improvement
>Reporter: Andy Seaborne
>Priority: Minor
> Attachments: Elephas-Test-Times
>
>
> The Elephas test can take a significant proportion of the total build time.
> if this could be improved without lost of testing, development and release 
> work, building locally would be improved.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] jena issue #297: Enable parallel testing for Elephas IO (JENA-1407)

2017-11-03 Thread afs
Github user afs commented on the issue:

https://github.com/apache/jena/pull/297
  
Jena 3.5.0 went out with `2` which is per-core 
(hyperthreading seems to count as 2 for a total of 4 per CPU-chip). 
`threadCount=1` made a big difference and a setting of 2 more so. Changing 2 to 
4 made little difference.  [Write-up on the JIRA 
ticket](https://issues.apache.org/jira/browse/JENA-1407?focusedCommentId=16222769#comment-16222769).

@rvesse  With that, are you happy to close the JIRA and this PR? Do you 
want to bump to 4 anyway?




---


[jira] [Commented] (JENA-1404) Put all CSV2RDF handling in jena-csv

2017-11-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238319#comment-16238319
 ] 

ASF GitHub Bot commented on JENA-1404:
--

Github user asfgit closed the pull request at:

https://github.com/apache/jena/pull/293


> Put all CSV2RDF handling in jena-csv
> 
>
> Key: JENA-1404
> URL: https://issues.apache.org/jira/browse/JENA-1404
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.5.0
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Minor
> Fix For: Jena 3.6.0
>
>
> Move any remaining for the old CSV2RDF code out of RIOT in jena-csv.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JENA-1404) Put all CSV2RDF handling in jena-csv

2017-11-03 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238317#comment-16238317
 ] 

ASF subversion and git services commented on JENA-1404:
---

Commit 5c17ddc25bbfaae55638c810ec52953ddeb33b9c in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=5c17ddc ]

JENA-1404: Merge commit 'refs/pull/293/head' of github.com:apache/jena

This closes #293.


> Put all CSV2RDF handling in jena-csv
> 
>
> Key: JENA-1404
> URL: https://issues.apache.org/jira/browse/JENA-1404
> Project: Apache Jena
>  Issue Type: Improvement
>Affects Versions: Jena 3.5.0
>Reporter: Andy Seaborne
>Assignee: Andy Seaborne
>Priority: Minor
> Fix For: Jena 3.6.0
>
>
> Move any remaining for the old CSV2RDF code out of RIOT in jena-csv.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[GitHub] jena pull request #293: JENA-1404: Move all code for CSV2RDF to jena-csv

2017-11-03 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/jena/pull/293


---


[jira] [Comment Edited] (JENA-1391) Add Convenience Methods to Dataset

2017-11-03 Thread A. Soroka (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238220#comment-16238220
 ] 

A. Soroka edited comment on JENA-1391 at 11/3/17 7:26 PM:
--

Just a note that work on this is ongoing at 
https://github.com/ajs6f/jena/tree/JENA-1391.

Right now I've sketched in much of the API (though not all). There are no tests 
yet, and I still need to write an impl of dataset intersection and some more 
collectors. But comments eagerly welcomed! Particularly [~jaco0646] please let 
me know if this looks to be going in a direction that will support your needs.

Comparison link: https://github.com/apache/jena/compare/master...ajs6f:JENA-1391


was (Author: ajs6f):
Just a note that work on this is ongoing at 
https://github.com/ajs6f/jena/tree/JENA-1391.

Right now I've sketched in much of the API (though not all). There are no tests 
yet, and I still need to write an impl of dataset intersection and some more 
collectors. But comments eagerly welcomed! Particularly [~jaco0646] please let 
me know if this looks to be going in a direction that will support your needs.

> Add Convenience Methods to Dataset
> --
>
> Key: JENA-1391
> URL: https://issues.apache.org/jira/browse/JENA-1391
> Project: Apache Jena
>  Issue Type: Improvement
>  Components: ARQ
>Affects Versions: Jena 3.4.0
>Reporter: Adam Jacobs
>Assignee: A. Soroka
>
> The Dataset interface could provide several convenience methods similar to 
> the Model interface, allowing usability of RDF quads on par with RDF triples. 
> Specific examples include,
> # add(Dataset)
> # remove(Dataset)
> # union(Dataset)
> # intersection(Dataset)
> # difference(Dataset)
> # isEmpty()
> Following is a possible implementation of these methods.
> {code:java}
> default Dataset add(Dataset d) {
> this.getDefaultModel().add(d.getDefaultModel());
> d.listNames().forEachRemaining(name -> 
> this.getNamedModel(name).add(d.getNamedModel(name)));
> return this;
> }
> default Dataset remove(Dataset d) {
> this.getDefaultModel().remove(d.getDefaultModel());
> d.listNames().forEachRemaining(name -> 
> this.getNamedModel(name).remove(d.getNamedModel(name)));
> return this;
> }
> default Dataset union(Dataset d) {
> return DatasetFactory.create().add(this).add(d);
> }
> default Dataset difference(Dataset d) {
> Dataset output = DatasetFactory.create();
> 
> output.setDefaultModel(this.getDefaultModel().difference(d.getDefaultModel()));
> this.listNames().forEachRemaining(name -> {
> Model difference = 
> this.getNamedModel(name).difference(d.getNamedModel(name));
> if (!difference.isEmpty()) output.addNamedModel(name, difference);
> });
> return output;
> }
> default Dataset intersection(Dataset d) {
> Dataset output = DatasetFactory.create();
> 
> output.setDefaultModel(this.getDefaultModel().intersection(d.getDefaultModel()));
> Set names = this.names();
> names.retainAll(d.names());
> names.forEach(name -> {
> Model intersection = 
> this.getNamedModel(name).intersection(d.getNamedModel(name));
> if (!intersection.isEmpty()) output.addNamedModel(name, 
> intersection);
> });
> return output;
> }
> default Set names() {
> Set names = new HashSet<>();
> this.listNames().forEachRemaining(names::add);
> return names;
> }
> default boolean isEmpty() {
> return this.asDatasetGraph().isEmpty();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JENA-1391) Add Convenience Methods to Dataset

2017-11-03 Thread A. Soroka (JIRA)

[ 
https://issues.apache.org/jira/browse/JENA-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16238220#comment-16238220
 ] 

A. Soroka commented on JENA-1391:
-

Just a note that work on this is ongoing at 
https://github.com/ajs6f/jena/tree/JENA-1391.

Right now I've sketched in much of the API (though not all). There are no tests 
yet, and I still need to write an impl of dataset intersection and some more 
collectors. But comments eagerly welcomed! Particularly [~jaco0646] please let 
me know if this looks to be going in a direction that will support your needs.

> Add Convenience Methods to Dataset
> --
>
> Key: JENA-1391
> URL: https://issues.apache.org/jira/browse/JENA-1391
> Project: Apache Jena
>  Issue Type: Improvement
>  Components: ARQ
>Affects Versions: Jena 3.4.0
>Reporter: Adam Jacobs
>Assignee: A. Soroka
>
> The Dataset interface could provide several convenience methods similar to 
> the Model interface, allowing usability of RDF quads on par with RDF triples. 
> Specific examples include,
> # add(Dataset)
> # remove(Dataset)
> # union(Dataset)
> # intersection(Dataset)
> # difference(Dataset)
> # isEmpty()
> Following is a possible implementation of these methods.
> {code:java}
> default Dataset add(Dataset d) {
> this.getDefaultModel().add(d.getDefaultModel());
> d.listNames().forEachRemaining(name -> 
> this.getNamedModel(name).add(d.getNamedModel(name)));
> return this;
> }
> default Dataset remove(Dataset d) {
> this.getDefaultModel().remove(d.getDefaultModel());
> d.listNames().forEachRemaining(name -> 
> this.getNamedModel(name).remove(d.getNamedModel(name)));
> return this;
> }
> default Dataset union(Dataset d) {
> return DatasetFactory.create().add(this).add(d);
> }
> default Dataset difference(Dataset d) {
> Dataset output = DatasetFactory.create();
> 
> output.setDefaultModel(this.getDefaultModel().difference(d.getDefaultModel()));
> this.listNames().forEachRemaining(name -> {
> Model difference = 
> this.getNamedModel(name).difference(d.getNamedModel(name));
> if (!difference.isEmpty()) output.addNamedModel(name, difference);
> });
> return output;
> }
> default Dataset intersection(Dataset d) {
> Dataset output = DatasetFactory.create();
> 
> output.setDefaultModel(this.getDefaultModel().intersection(d.getDefaultModel()));
> Set names = this.names();
> names.retainAll(d.names());
> names.forEach(name -> {
> Model intersection = 
> this.getNamedModel(name).intersection(d.getNamedModel(name));
> if (!intersection.isEmpty()) output.addNamedModel(name, 
> intersection);
> });
> return output;
> }
> default Set names() {
> Set names = new HashSet<>();
> this.listNames().forEachRemaining(names::add);
> return names;
> }
> default boolean isEmpty() {
> return this.asDatasetGraph().isEmpty();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Re: [ANN] Apache Jena 3.5.0

2017-11-03 Thread Dave Reynolds

On 03/11/17 07:57, Osma Suominen wrote:
Congratulations, and thank you Andy for taking such good care of the 
release!


+1
Dave



-Osma

PS. I gave some comments on TDB2 on 27 October. I hope to be able to 
contribute more testing and feedback.


Andy Seaborne kirjoitti 03.11.2017 klo 01:22:


We are pleased to announce the release of Apache Jena 3.5.0.


== Key features of the release

Introducing TDB2:
   http://jena.apache.org/documentation/tdb2/

*TDB2 is not compatible with TDB1*

Compared to TDB1:

* No size limits on transactions : bulk uploads into a live Fuseki
   can be 100's of millions of triples.

* Models and Graphs can be passed across transactions

* No queue of delayed updates, no transaction backlog problems.

* "Writer pays" - readers don't
   All work for update is done on the writer thread.

* Datatypes of numerics preserved; xsd:doubles supported.

TDB2 is subject to change.

We solicit any and all feedback (good and bad!) about TDB2 to help 
advance it to deployment-ready.




JENA-1390 : Add StmtIterator.toModel :

JENA-1392 : Add dynamic dataset support to SDB.

JENA-1395 : "--output RDF/XML" now prints using the basic 
block-oriented writer, which uses less memory.  Use "--formatted" 
(same as "--pretty") for pretty printed RDF/XML.


JENA-1398 :
Upgrade FOAF to add new spelling and deprecation of old for archaic 
FOAF properties


== Dependency Upgrades

No license changes.

Upgrade jsonld-java to 0.11
   jackson to 2.9.0
   commons-fileuploader to 1.3.3

== Obtaining Apache Jena 3.5.0

* Via central.maven.org

The main jars and their dependencies can used with:

  
    org.apache.jena
    apache-jena-libs
    pom
    3.5.0
  

Full details of all maven artifacts are described at:

    http://jena.apache.org/download/maven.html

* As binary downloads

Apache Jena libraries are available as a binary distribution of
libraries. For details of a global mirror copy of Jena binaries please 
see:


http://jena.apache.org/download/

* Source code for the release

The signed source code of this release is available at:

http://www.apache.org/dist/jena/source/

and the signed master source for all Apache Jena releases is available
at: http://archive.apache.org/dist/jena/

== Contributing

If you would like to help out, a good place to look is the list of
unresolved JIRA at:

http://s.apache.org/jena-jira-current

or review pull requests at

https://github.com/apache/jena/pulls

or drop into the dev@ list.

We use github pull requests and other ways for accepting code:
 https://github.com/apache/jena/blob/master/CONTRIBUTING.md

  The Apache Jena development community





Re: [ANN] Apache Jena 3.5.0

2017-11-03 Thread Osma Suominen
Congratulations, and thank you Andy for taking such good care of the 
release!


-Osma

PS. I gave some comments on TDB2 on 27 October. I hope to be able to 
contribute more testing and feedback.


Andy Seaborne kirjoitti 03.11.2017 klo 01:22:


We are pleased to announce the release of Apache Jena 3.5.0.


== Key features of the release

Introducing TDB2:
   http://jena.apache.org/documentation/tdb2/

*TDB2 is not compatible with TDB1*

Compared to TDB1:

* No size limits on transactions : bulk uploads into a live Fuseki
   can be 100's of millions of triples.

* Models and Graphs can be passed across transactions

* No queue of delayed updates, no transaction backlog problems.

* "Writer pays" - readers don't
   All work for update is done on the writer thread.

* Datatypes of numerics preserved; xsd:doubles supported.

TDB2 is subject to change.

We solicit any and all feedback (good and bad!) about TDB2 to help 
advance it to deployment-ready.




JENA-1390 : Add StmtIterator.toModel :

JENA-1392 : Add dynamic dataset support to SDB.

JENA-1395 : "--output RDF/XML" now prints using the basic block-oriented 
writer, which uses less memory.  Use "--formatted" (same as "--pretty") 
for pretty printed RDF/XML.


JENA-1398 :
Upgrade FOAF to add new spelling and deprecation of old for archaic FOAF 
properties


== Dependency Upgrades

No license changes.

Upgrade jsonld-java to 0.11
   jackson to 2.9.0
   commons-fileuploader to 1.3.3

== Obtaining Apache Jena 3.5.0

* Via central.maven.org

The main jars and their dependencies can used with:

  
    org.apache.jena
    apache-jena-libs
    pom
    3.5.0
  

Full details of all maven artifacts are described at:

    http://jena.apache.org/download/maven.html

* As binary downloads

Apache Jena libraries are available as a binary distribution of
libraries. For details of a global mirror copy of Jena binaries please see:

http://jena.apache.org/download/

* Source code for the release

The signed source code of this release is available at:

http://www.apache.org/dist/jena/source/

and the signed master source for all Apache Jena releases is available
at: http://archive.apache.org/dist/jena/

== Contributing

If you would like to help out, a good place to look is the list of
unresolved JIRA at:

http://s.apache.org/jena-jira-current

or review pull requests at

https://github.com/apache/jena/pulls

or drop into the dev@ list.

We use github pull requests and other ways for accepting code:
     https://github.com/apache/jena/blob/master/CONTRIBUTING.md

  The Apache Jena development community



--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suomi...@helsinki.fi
http://www.nationallibrary.fi