Re: [VFS] invert matches for PatternFileSelector

2017-01-20 Thread sebb
I don't know VFS, but if you can chain selectors, then I think you
just need a Not-selector. This would work with any selector, not just
PFS

On 20 January 2017 at 04:21, Gary Gregory  wrote:
> Hi All,
>
> Just like grep has a setting called --invert-match I'd like to have a
> setting like that for the PatternFileSelector class.
>
> Thoughts for or against?
>
> Gary
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> 
>
> 
> JUnit in Action, Second Edition
> 
>
> 
> Spring Batch in Action
> 
> 
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

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



Re: [VFS] invert matches for PatternFileSelector

2017-01-20 Thread Bernd Eckenfels
Hello,
I guess that could be helpful. Keep in mind that the selector not only selects 
the elemements to match but also the directory hierarchy to travers, so 
composition can be a bit tricky.

Gruss
Bernd
-- 
http://bernd.eckenfels.net




On Fri, Jan 20, 2017 at 5:21 AM +0100, "Gary Gregory"  
wrote:










Hi All,

Just like grep has a setting called --invert-match I'd like to have a
setting like that for the PatternFileSelector class.

Thoughts for or against?

Gary

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory







[Numbers] How to enable Travis (and Coveralls)?

2017-01-20 Thread Gilles

Hi.

The repository is visible:
 https://travis-ci.org/apache/commons-numbers
but no build is started...

Thanks,
Gilles


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



Re: [Numbers] How to enable Travis (and Coveralls)?

2017-01-20 Thread Pascal Schumacher

Did you create a infra-issue to enable travis-ci?

20.01.2017 um 16:52 schrieb Gilles:

Hi.

The repository is visible:
 https://travis-ci.org/apache/commons-numbers
but no build is started...

Thanks,
Gilles


-
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: [Numbers] How to enable Travis (and Coveralls)?

2017-01-20 Thread Pascal Schumacher

e.g.: https://issues.apache.org/jira/browse/INFRA-12874

Am 20.01.2017 um 16:59 schrieb Pascal Schumacher:

Did you create a infra-issue to enable travis-ci?

20.01.2017 um 16:52 schrieb Gilles:

Hi.

The repository is visible:
 https://travis-ci.org/apache/commons-numbers
but no build is started...

Thanks,
Gilles


-
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




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



Re: [Numbers] How to enable Travis (and Coveralls)?

2017-01-20 Thread Gilles

On Fri, 20 Jan 2017 16:59:48 +0100, Pascal Schumacher wrote:

Did you create a infra-issue to enable travis-ci?


Probably not.

If someone can do it...

Thanks,
Gilles



20.01.2017 um 16:52 schrieb Gilles:

Hi.

The repository is visible:
 https://travis-ci.org/apache/commons-numbers
but no build is started...

Thanks,
Gilles




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



[GitHub] commons-rdf issue #30: COMMONSRDF-51 language tags compared lower case

2017-01-20 Thread stain
Github user stain commented on the issue:

https://github.com/apache/commons-rdf/pull/30
  
Right, BCP47 normalisation would make sense, but sadly that is not directly
permitted by RDF 1.1, only normalisation to lower case :-( - probably to
avoid dependency on the registry.

However I think we can try to make Commons RDF present a consistent RDF
1.1-compliant view, which I would think includes that creating a literal
with en-gb lowercase would return en-gb lowercase, also with RDF4J as back
end. (Would this require our wrapper LiteralImpl to always lowercase for
RDF4J?)

Can we extend the RDF4J test to also cover the other settings? How are they
provided? If the user is explicitly asking to go beyond the RDF standards,
then they should not be surprised if Commons RDF's view goes along with
that (or falls over), so then perhaps we don't need to worry about it here?
(e.g. Jena can be configured to support generalized RDF which don't work
well with the normal TripleImpl).



On 16 Jan 2017 9:52 pm, "Peter Ansell"  wrote:

*@ansell* commented on this pull request.

Looks fairly good to me. I disagree with the test assertion that disallows
normalisation using the BCP47 conventions (e.g., en-GB) in their
constructors, but it is a minor issue.
--

In api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
:

> @@ -194,6 +194,114 @@ public void testCreateLiteralLangISO693_3() throws 
Exception {
 assertEquals("\"Herbert Van de Sompel\"@vls", 
vls.ntriplesString());
 }

+public void testCreateLiteralLangCaseInsensitive() throws Exception {

Does this need @Test  annotation?
--

In api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
:

> @@ -194,6 +194,114 @@ public void testCreateLiteralLangISO693_3() throws 
Exception {
 assertEquals("\"Herbert Van de Sompel\"@vls", 
vls.ntriplesString());
 }

+public void testCreateLiteralLangCaseInsensitive() throws Exception {
+// COMMONSRDF-51: Literal langtag may not be in lowercase, but
+// must be COMPARED (aka .equals and .hashCode()) in lowercase
+// as the language space is lower case.
+final Literal lower = factory.createLiteral("Hello", "en-gb");
+final Literal upper = factory.createLiteral("Hello", "EN-GB");
+final Literal mixed = factory.createLiteral("Hello", "en-GB");
+
+
+assertEquals("en-gb", lower.getLanguageTag().get());

RDF4J may not follow this in some cases. It may use the BCP47 normalisation
conventions to obtain en-GB instead.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
,
or mute the thread


.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



Re: [VFS] invert matches for PatternFileSelector

2017-01-20 Thread Gary Gregory
Another twist would be to have an InvertingFileSelector that just inverts
the result of a delegate FileSelector:

new InvertingFileSelector(new PatternFileSelector("MyRegEx"))

Gary

On Fri, Jan 20, 2017 at 7:43 AM, Bernd Eckenfels 
wrote:

> Hello,
> I guess that could be helpful. Keep in mind that the selector not only
> selects the elemements to match but also the directory hierarchy to
> travers, so composition can be a bit tricky.
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
>
>
>
> On Fri, Jan 20, 2017 at 5:21 AM +0100, "Gary Gregory" <
> garydgreg...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
> Hi All,
>
> Just like grep has a setting called --invert-match I'd like to have a
> setting like that for the PatternFileSelector class.
>
> Thoughts for or against?
>
> Gary
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
>
>
>
> JUnit in Action, Second Edition
>
>
>
> Spring Batch in Action
>
>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
>
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


[GitHub] commons-rdf issue #30: COMMONSRDF-51 language tags compared lower case

2017-01-20 Thread ansell
Github user ansell commented on the issue:

https://github.com/apache/commons-rdf/pull/30
  
Don't take what is not explicitly said in the standard to mean that it is 
disallowed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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