[RDF] adding Quads - Bulk

2024-03-09 Thread Fred Hauschel

Hi there,

it looks like I am bound to the interface 
org.apache.commons.rdf.api.GraphLike#add. And in the RDF4J 
implementation, a new connection to the repository is established for 
each quad/triple. This is not very useful.
Am I missing another possibility or am I the first to have a problem 
with this ?


Is there a reason, why there is no Method like GraphLike#add(List 
statements); ?


Thanks Fredy


Re: [COMPRESS] Help needed to fix COMPRESS-651

2024-03-09 Thread Gary Gregory
Thank you Peter for the patch. Now in git master.

As to whether we should change the default, I don't know if we have
the right kind of test that would detect if changing the default
causes a problem.

Changing the default to true (locally) causes the build to XXX but
that does not mean we have the right kind of tests still.

Gary

On Sat, Mar 9, 2024 at 1:44 PM Peter Hull  wrote:
>
> On Sat, 9 Mar 2024 at 18:19, Peter Hull  wrote:
> > There's another constructor for BZip2CompressorInputStream which
> > allows for this, it's not the default.
> Specifically, the patch below makes the test pass. Whether this should
> be default for the one-arg constructor is a matter for discussion.
> Peter
> diff --git 
> a/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
> b/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
> index d5c7e17c9..079a90c37 100644
> --- 
> a/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
> +++ 
> b/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
> @@ -38,13 +38,12 @@
>  public class BZip2Compress651Test {
>
>  @Test
> -@Disabled
>  public void testCompress651() throws IOException {
>  final int buffersize = 102_400;
>  final Path pathIn =
> Paths.get("src/test/resources/org/apache/commons/compress/COMPRESS-651/my10m.tar.bz2");
>  final Path pathOut = Paths.get("target/COMPRESS-651/test.tar");
>  Files.createDirectories(pathOut.getParent());
> -try (BZip2CompressorInputStream inputStream = new
> BZip2CompressorInputStream(new
> BufferedInputStream(Files.newInputStream(pathIn)));
> +try (BZip2CompressorInputStream inputStream = new
> BZip2CompressorInputStream(new
> BufferedInputStream(Files.newInputStream(pathIn)), true);
>  OutputStream outputStream = Files.newOutputStream(pathOut)) {
>  IOUtils.copy(inputStream, outputStream, buffersize);
>  }
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [COMPRESS] Help needed to fix COMPRESS-651

2024-03-09 Thread Gary Gregory
Thanks for the reminder, Peter. That rings a bell... vaguely.

Can this test pass by configuring the input stream differently?

Gary

On Sat, Mar 9, 2024 at 1:21 PM Peter Hull  wrote:
>
> On Sat, 9 Mar 2024 at 14:33, Gary Gregory  wrote:
> >
> > If you want to help in Commons COMPRESS-land, please see
> > https://issues.apache.org/jira/browse/COMPRESS-651
> I swear I looked into this a while ago, and the issue was pbzip2 works
> by compressing the source in chunks, in parallel, then cat'ing those
> compressed chunks together.
> There's another constructor for BZip2CompressorInputStream which
> allows for this, it's not the default.
> I can't find any record of it though, maybe I'm losing my mind.
> Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [COMPRESS] Help needed to fix COMPRESS-651

2024-03-09 Thread Peter Hull
On Sat, 9 Mar 2024 at 18:19, Peter Hull  wrote:
> There's another constructor for BZip2CompressorInputStream which
> allows for this, it's not the default.
Specifically, the patch below makes the test pass. Whether this should
be default for the one-arg constructor is a matter for discussion.
Peter
diff --git 
a/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
b/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
index d5c7e17c9..079a90c37 100644
--- 
a/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
+++ 
b/src/test/java/org/apache/commons/compress/compressors/bzip2/BZip2Compress651Test.java
@@ -38,13 +38,12 @@
 public class BZip2Compress651Test {

 @Test
-@Disabled
 public void testCompress651() throws IOException {
 final int buffersize = 102_400;
 final Path pathIn =
Paths.get("src/test/resources/org/apache/commons/compress/COMPRESS-651/my10m.tar.bz2");
 final Path pathOut = Paths.get("target/COMPRESS-651/test.tar");
 Files.createDirectories(pathOut.getParent());
-try (BZip2CompressorInputStream inputStream = new
BZip2CompressorInputStream(new
BufferedInputStream(Files.newInputStream(pathIn)));
+try (BZip2CompressorInputStream inputStream = new
BZip2CompressorInputStream(new
BufferedInputStream(Files.newInputStream(pathIn)), true);
 OutputStream outputStream = Files.newOutputStream(pathOut)) {
 IOUtils.copy(inputStream, outputStream, buffersize);
 }

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [COMPRESS] Help needed to fix COMPRESS-651

2024-03-09 Thread Peter Hull
On Sat, 9 Mar 2024 at 14:33, Gary Gregory  wrote:
>
> If you want to help in Commons COMPRESS-land, please see
> https://issues.apache.org/jira/browse/COMPRESS-651
I swear I looked into this a while ago, and the issue was pbzip2 works
by compressing the source in chunks, in parallel, then cat'ing those
compressed chunks together.
There's another constructor for BZip2CompressorInputStream which
allows for this, it's not the default.
I can't find any record of it though, maybe I'm losing my mind.
Peter

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[COMPRESS] Help needed to fix COMPRESS-651

2024-03-09 Thread Gary Gregory
If you want to help in Commons COMPRESS-land, please see
https://issues.apache.org/jira/browse/COMPRESS-651

TY,
Gary

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[ANNOUNCE] Apache Commons Compress Version 1.26.1

2024-03-09 Thread Gary Gregory
The Apache Commons team is pleased to announce Apache Commons Compress
Version 1.26.1.

Apache Commons Compress defines an API for working with compression and
archive formats.  These include bzip2, gzip, pack200, LZMA, XZ,
Snappy, traditional Unix Compress, DEFLATE, DEFLATE64, LZ4, Brotli,
Zstandard and ar, cpio, jar, tar, zip, dump, 7z, arj.

Historical list of changes:
https://commons.apache.org/proper/commons-compress/changes-report.html

For complete information on Apache Commons Compress, including
instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Commons
Compress website:

https://commons.apache.org/proper/commons-compress/

Download page: 
https://commons.apache.org/proper/commons-compress/download_io.cgi

Gary Gregory
- Apache Commons Team

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: [VOTE] Release Apache Commons Configuration 2.10.0 based on RC1

2024-03-09 Thread Gary Gregory
My +1

Gary

On Wed, Mar 6, 2024 at 9:13 AM Gary Gregory  wrote:
>
> We have fixed a few bugs and added some enhancements since Apache
> Commons Configuration 2.9.0 was released, so I would like to release
> Apache Commons Configuration 2.10.0.
>
> Apache Commons Configuration 2.10.0 RC1 is available for review here:
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1
> (svn revision 67757)
>
> The Git tag commons-configuration-2.10.0-RC1 commit for this RC is
> 67637998d398d79bf0cc6b830d72fadd8b53a355 which you can browse here:
> 
> https://gitbox.apache.org/repos/asf?p=commons-configuration.git;a=commit;h=67637998d398d79bf0cc6b830d72fadd8b53a355
> You may checkout this tag using:
> git clone https://gitbox.apache.org/repos/asf/commons-configuration.git
> --branch commons-configuration-2.10.0-RC1
> commons-configuration-2.10.0-RC1
>
> Maven artifacts are here:
> 
> https://repository.apache.org/content/repositories/orgapachecommons-1701/org/apache/commons/commons-configuration2/2.10.0/
>
> These are the artifacts and their hashes:
>
> #Release SHA-512s
> #Wed Mar 06 14:01:58 UTC 2024
> commons-configuration2-2.10.0-bin.tar.gz=4239219274c9e59f897870bf5cbf35210885b2812d74c15c79b1150cb1d0617ebcbc5417c99019addd75a14da67807fb78ca55efe2c8b48b6251584bde051d15
> commons-configuration2-2.10.0-bin.zip=36ea60c2dc927ef06c02c6694278dcd799cb5c9a6902314061347c2ac787bf8dbb7c0fa59f6e39c298352e401b1e5dd82c5214a08354639cbf80044220750df5
> commons-configuration2-2.10.0-bom.json=02fc0b438d1189035f7049bc010961e5309cab6cead5c37fabf2294556fa5e0a9fd223fe3f4a1564fc83e261500905d0795105906ce3fa71df0613f9b746b37c
> commons-configuration2-2.10.0-bom.xml=6bbda2ba6c2f0d7af8fd7fee93c71fb3f29a1fb220598cda8d3bbf2dfe19396364a63a6109b5418390da7b41f5e9a2eeaaae1f2fd4ce707d44bee38b19b23409
> commons-configuration2-2.10.0-javadoc.jar=0494fb1bfeabaa246ad7507dc8464c78e76a0223767817123bdf8843aaf56030af512da9feac499fbfee79eaeb4d4cbe6749a28a679a531b0bc6301b711ddf3a
> commons-configuration2-2.10.0-sources.jar=bacf3d4538810e095fccdb51479b5739082c97a8fc2572b887b542cc6551583da64cd2104387d9872e990e02af0419e7986b532bb007ae710d118549a046df89
> commons-configuration2-2.10.0-src.tar.gz=fa0959160b85a686886275624b9a7b8cb38480bc502cc930669d97c521cccddc4b2371a01bab85ecb2f88dfe6d1c22558b6525eeabc5b8cf9070163d24ff031b
> commons-configuration2-2.10.0-src.zip=e61c68feaddbfddf0985ba904ac5f73c4420b7fb7fdd173a83efd320673df7c3b652120ef6e513572a0c7c8bf5935d934187411b2ab124c5d03ba9072ab02ca3
> commons-configuration2-2.10.0-test-sources.jar=bff3d3e30e1352c759e148641989b65129c235da70ec85b428c3876981b6bace7a00fd65f8b896ee649ba984869635a03ebe28f03226e62d9771db1373686ae9
> commons-configuration2-2.10.0-tests.jar=1fe44c1f1c49e0846836141286d874ac641523bfac4403defc1af2ff8910660189a21c56a255f9e3fc2e4737e644259b23aa22a4bdaffd3296436c6cf1aea44e
> org.apache.commons_commons-configuration2-2.10.0.spdx.json=d6329228f13ca56b811ae6f2fae9fb9dd841d4efd6f0c52847728d8fbea44dac67ce1dbad9e766e4a237e06cd99d220cb76c64e3ef4898aa0047a4556411c37b
>
> I have tested this with:
>
> mvn
>
> and
>
> mvn -V -Prelease -Ptest-deploy -P jacoco -P japicmp clean package site deploy
>
> Using:
>
> openjdk version "21.0.2" 2024-01-16
> OpenJDK Runtime Environment Homebrew (build 21.0.2)
> OpenJDK 64-Bit Server VM Homebrew (build 21.0.2, mixed mode, sharing)
>
> Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
> Maven home: /usr/local/Cellar/maven/3.9.6/libexec
> Java version: 21.0.2, vendor: Homebrew, runtime:
> /usr/local/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "14.3.1", arch: "x86_64", family: "mac"
>
> Darwin  23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58
> PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64 x86_64
>
> Details of changes since 2.9.0 are in the release notes:
> 
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1/RELEASE-NOTES.txt
> 
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1/site/changes-report.html
>
> Site:
> 
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1/site/index.html
> (note some *relative* links are broken and the 2.10.0 directories
> are not yet created - these will be OK once the site is deployed.)
>
> JApiCmp Report (compared to 2.9.0):
> 
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1/site/japicmp.html
>
> RAT Report:
> 
> https://dist.apache.org/repos/dist/dev/commons/configuration/2.10.0-RC1/site/rat-report.html
>
> KEYS:
> https://downloads.apache.org/commons/KEYS
>
> Please review the release candidate and vote.
> This vote will close no sooner than 72 hours from now.
>
>   [ ] +1 Release these artifacts
>   [ ] +0 OK, but...
>   [ ] -0 OK, but really should fix...
>   [ ] -1 I oppose this release because...
>
> Thank you,
>
> Gary Gregory,
> Release Manager (using key 86fdc7e2a11262cb)

Re: [Math] How to update the web site?

2024-03-09 Thread Gilles Sadowski
Le sam. 9 mars 2024 à 03:57, Gary Gregory  a écrit :
>
> It looks like the Maven SCM plugin wants your password. Did you
> provide it on the command line?

The error message (cf. below) says: "interactive prompting was disabled".
No prompt has been asking to supply a login and password.

Gilles

>
> Gary
>
> On Thu, Mar 7, 2024 at 11:33 AM Gilles Sadowski  wrote:
> >
> > Le jeu. 7 mars 2024 à 15:20, Gary Gregory  a écrit :
> > >
> > > Please see https://commons.apache.org/site-publish.html
> >
> > Thanks.
> > Trying
> >   $ mvn scm-publish:publish-scm
> > results in
> > ---CUT---
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-scm-publish-plugin:3.2.1:publish-scm
> > (default-cli) on project commons-math4-parent: Failed to check-in
> > files to SCM: The svn command failed. svn: E215004: Authentication
> > failed and interactive prompting is disabled; see the
> > --force-interactive option
> > [ERROR] svn: E215004: Commit failed (details follow):
> > [ERROR] svn: E215004: No more credentials or we tried too many times.
> > [ERROR] Authentication failed
> > ---CUT---
> >
> > [Appending "--force-interactive" does not help.]
> >
> > By the way, if this is the recommended way, should we remove the
> > "site"-related statements in the components' specific POM files?
> >
> > Gilles
> > > [...]

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org