timing out big sorts

2016-07-15 Thread Chris Dollin
Dear All When a query with an ORDER BY is cancelled, the component Arrays.sort() that sorts the chunk(s) of the result bindings runs to completion before the cancel finishes. [See QueryIterSort and SortedDataBag.] For a large result set, this results in a long wait before the cancelled request f

Re: Extended calling conventions for arithmetic functions in Jena Rules

2016-07-15 Thread Paul Houle
Well if there is not interest in doing it I'd suggest removing the suggestions that it could be done from the places where it is mentioned in the documentation. -- Paul Houle paul.ho...@ontology2.com On Thu, Jul 14, 2016, at 11:17 AM, Dave Reynolds wrote: > On 14/07/16 15:44, Paul Houle wrot

Re: timing out big sorts

2016-07-15 Thread Stian Soiland-Reyes
First of all the sorting could be sped up significantly on a multi-core machine by using Java 8's: http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#parallelSort-T:A- (The speed-up can in some cases be much larger than the multiple of the number of cores) ..sadly the underlying Arra

Re: timing out big sorts

2016-07-15 Thread Chris Dollin
On 15/07/16 15:10, Stian Soiland-Reyes wrote: First of all the sorting could be sped up significantly on a multi-core machine by using Java 8's: http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#parallelSort-T:A- (makes note) (The speed-up can in some cases be much larger than t

Re: timing out big sorts

2016-07-15 Thread Andy Seaborne
On 15/07/16 15:10, Stian Soiland-Reyes wrote: First of all the sorting could be sped up significantly on a multi-core machine by using Java 8's: http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#parallelSort-T:A- (The speed-up can in some cases be much larger than the multiple of th

[GitHub] jena pull request #155: JENA-508: fn:format-number

2016-07-15 Thread afs
GitHub user afs opened a pull request: https://github.com/apache/jena/pull/155 JENA-508: fn:format-number Implementation and tests for `fn:format-number`. For the "decimal-format-name" third argument. F&O says it is something defined in the static context but does

[jira] [Commented] (JENA-508) Add support for XPath 3 Functions

2016-07-15 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379658#comment-15379658 ] ASF GitHub Bot commented on JENA-508: - GitHub user afs opened a pull request: https

[GitHub] jena issue #151: JENA-576: Moving away from deprecated HttpCommons Client AP...

2016-07-15 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/151 @rvesse -- Does @afs 's plan to offer methods that accept `HttpClientBuilder` meet your concerns about supporting complex authN scenarios? --- If your project is set up for it, you can reply to this ema

[jira] [Commented] (JENA-576) Upgrade Apache HTTP Client to 4.3

2016-07-15 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379794#comment-15379794 ] ASF GitHub Bot commented on JENA-576: - Github user ajs6f commented on the issue: ht

[jira] [Created] (JENA-1210) OntModel imports not loaded

2016-07-15 Thread JIRA
Martynas Jusevičius created JENA-1210: - Summary: OntModel imports not loaded Key: JENA-1210 URL: https://issues.apache.org/jira/browse/JENA-1210 Project: Apache Jena Issue Type: Bug

[jira] [Created] (JENA-1211) TriX reader/writer incompatible with W3C DTD for TriX

2016-07-15 Thread JIRA
Martynas Jusevičius created JENA-1211: - Summary: TriX reader/writer incompatible with W3C DTD for TriX Key: JENA-1211 URL: https://issues.apache.org/jira/browse/JENA-1211 Project: Apache Jena

[jira] [Updated] (JENA-1210) OntModel imports not loaded

2016-07-15 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne updated JENA-1210: Description: I upgraded Jena from 2.11.0 to 3.0.1 and OntModel imports stopped working when {{getOnto

[jira] [Updated] (JENA-1211) TriX reader/writer incompatible with W3C DTD

2016-07-15 Thread JIRA
[ https://issues.apache.org/jira/browse/JENA-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martynas Jusevičius updated JENA-1211: -- Description: The TriX namespace http://www.w3.org/2004/03/trix/trix-1/ resolves to the f

[jira] [Updated] (JENA-1211) TriX reader/writer incompatible with W3C DTD

2016-07-15 Thread JIRA
[ https://issues.apache.org/jira/browse/JENA-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martynas Jusevičius updated JENA-1211: -- Summary: TriX reader/writer incompatible with W3C DTD (was: TriX reader/writer incompati

Re: timing out big sorts

2016-07-15 Thread Andy Seaborne
On 15/07/16 15:10, Stian Soiland-Reyes wrote: First of all the sorting could be sped up significantly on a multi-core machine by using Java 8's: http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#parallelSort-T:A- (The speed-up can in some cases be much larger than the multiple of th

[jira] [Commented] (JENA-1065) Align assembler vocabulary RDFS version and Java version

2016-07-15 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380278#comment-15380278 ] Andy Seaborne commented on JENA-1065: - +1 > Align assembler vocabulary RDFS version an

Re: timing out big sorts

2016-07-15 Thread Stian Soiland-Reyes
I think you are right.. as a sorting an array would probably not be doing any interruptible/blocking operations and the thread would keep sorting, and so basically you would then need a Comparator that checks the thread interruption status and bails out. :-) So I guess Chris's suggestion is a good