Re: Extending ARQ to retrieve FILTER operations from Sparql Queries

2018-04-24 Thread anuj kumar
Thanks Rob for the pointers. I will start digging now. On Tue, Apr 24, 2018 at 5:57 PM, Rob Vesse wrote: > Looking at the code for how TDB does this might be useful: > > https://github.com/apache/jena/blob/master/jena-tdb/src/ >

[GitHub] jena pull request #407: Cleanup

2018-04-24 Thread afs
Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/407#discussion_r183833097 --- Diff: jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java --- @@ -111,7 +112,8 @@ public Graph getDefaultGraph() {

[jira] [Commented] (JENA-1532) Jena Text Elastic Search Does not perform proper date comparison during query

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450279#comment-16450279 ] ASF GitHub Bot commented on JENA-1532: -- Github user anujgandharv commented on the issue:

[GitHub] jena issue #406: JENA-1532 | Added support for escaping special characters i...

2018-04-24 Thread anujgandharv
Github user anujgandharv commented on the issue: https://github.com/apache/jena/pull/406 I agree with you @osma. I have made the changes to use QueryParserBase instead of custom logic. Let me know if it is OK. ---

[jira] [Commented] (JENA-1528) HttpQuery does not set the readTimeout

2018-04-24 Thread A. Soroka (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450259#comment-16450259 ] A. Soroka commented on JENA-1528: - [~nithril] can you please open a new ticket to discuss default HTTP

[GitHub] jena pull request #407: Cleanup

2018-04-24 Thread rvesse
Github user rvesse commented on a diff in the pull request: https://github.com/apache/jena/pull/407#discussion_r183809337 --- Diff: jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/DatasetGraphSwitchable.java --- @@ -111,7 +112,8 @@ public Graph getDefaultGraph() {

[GitHub] jena pull request #407: Cleanup

2018-04-24 Thread afs
GitHub user afs opened a pull request: https://github.com/apache/jena/pull/407 Cleanup A number of small things noticed while investigating a TDB2 report. Includes tweak for JENA-1428 (cleanup) and fix for JENA-1531. You can merge this pull request into a Git repository by

[jira] [Commented] (JENA-1532) Jena Text Elastic Search Does not perform proper date comparison during query

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450128#comment-16450128 ] ASF GitHub Bot commented on JENA-1532: -- Github user afs commented on a diff in the pull request:

[GitHub] jena pull request #406: JENA-1532 | Added support for escaping special chara...

2018-04-24 Thread afs
Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/406#discussion_r183788841 --- Diff: jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java --- @@ -422,6 +422,27 @@ public EntityDefinition getDocDef() { }

Re: Extending ARQ to retrieve FILTER operations from Sparql Queries

2018-04-24 Thread Rob Vesse
Looking at the code for how TDB does this might be useful: https://github.com/apache/jena/blob/master/jena-tdb/src/main/java/org/apache/jena/tdb/solver/OpExecutorTDB1.java Rob On 24/04/2018, 16:54, "Rob Vesse" wrote: The point is to not modify the parsing but the

Re: Extending ARQ to retrieve FILTER operations from Sparql Queries

2018-04-24 Thread Rob Vesse
The point is to not modify the parsing but the execution By substituting a different OpExecutor implementation you can provide a custom executeOp() implementation that recognizes when an OpFilter operator is seen and acts accordingly Rob On 24/04/2018, 16:34, "anuj kumar"

[jira] [Commented] (JENA-632) Generate JSON from SPARQL directly.

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450118#comment-16450118 ] ASF GitHub Bot commented on JENA-632: - Github user afs commented on a diff in the pull request:

[GitHub] jena pull request #114: JENA-632: Generate JSON from SPARQL directly

2018-04-24 Thread afs
Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/114#discussion_r183786125 --- Diff: jena-arq/Grammar/master.jj --- @@ -2176,6 +2251,19 @@ String String() : { Token t ; String lex ; } } } +#ifdef ARQ +Number

[jira] [Commented] (JENA-632) Generate JSON from SPARQL directly.

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450116#comment-16450116 ] ASF GitHub Bot commented on JENA-632: - Github user afs commented on a diff in the pull request:

[GitHub] jena pull request #114: JENA-632: Generate JSON from SPARQL directly

2018-04-24 Thread afs
Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/114#discussion_r183785846 --- Diff: jena-arq/Grammar/master.jj --- @@ -2176,6 +2251,19 @@ String String() : { Token t ; String lex ; } } } +#ifdef ARQ +Number

Extending ARQ to retrieve FILTER operations from Sparql Queries

2018-04-24 Thread anuj kumar
I have another query, this time relating to ARQ and how I can extend it. *Background* I am using HBase as the underlying Data Store for Triples (by implementing various Jena Extension points). So far so good. But now I have certain SPARQL queries that have FILTER operations defined. With a huge

Re: Question about Jena Indexing

2018-04-24 Thread anuj kumar
Hey Ajs6f, Thats what I also thought but I tried the approach and it didn't work. This is how i did it > dataset.begin(ReadWrite.WRITE) ; > try { > Model m = dataset.getDefaultModel() ; > Model m2 = ModelFactory.createDefaultModel(); > m2.read(file); >

[jira] [Commented] (JENA-1524) org.apache.jena.system is split by org.apache.jena.arq and org.apache.jena.core

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449979#comment-16449979 ] ASF GitHub Bot commented on JENA-1524: -- Github user afs commented on the issue:

[GitHub] jena issue #401: [JENA-1524] org.apache.jena.system is split by org.apache.j...

2018-04-24 Thread afs
Github user afs commented on the issue: https://github.com/apache/jena/pull/401 `RemovalNotification` is used in the constructor for `CacheGuava`. ---

[jira] [Commented] (JENA-1524) org.apache.jena.system is split by org.apache.jena.arq and org.apache.jena.core

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449950#comment-16449950 ] ASF GitHub Bot commented on JENA-1524: -- Github user christopher-johnson commented on the issue:

[GitHub] jena issue #401: [JENA-1524] org.apache.jena.system is split by org.apache.j...

2018-04-24 Thread christopher-johnson
Github user christopher-johnson commented on the issue: https://github.com/apache/jena/pull/401 Indeed, these dependency questions are issues that I need to solve... I would prefer to simplify the über-jar `jena-osgi` dependency of `commons.rdf.jena` by creating lean modular jena

[GitHub] jena issue #401: [JENA-1524] org.apache.jena.system is split by org.apache.j...

2018-04-24 Thread afs
Github user afs commented on the issue: https://github.com/apache/jena/pull/401 > Compilation in JPMS requires a module-info.java and is distinct from compiling in JDK 9+. The issue is for trellisldp to solve surely? The transitivity is an indirect jena-osgi dependency and

[jira] [Commented] (JENA-1524) org.apache.jena.system is split by org.apache.jena.arq and org.apache.jena.core

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449845#comment-16449845 ] ASF GitHub Bot commented on JENA-1524: -- Github user afs commented on the issue:

[GitHub] jena issue #390: Bugfix Tutorial 6: Missing "/" at the end of an URI resulte...

2018-04-24 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/390 @kinow Yep, those Commons threads are exactly what brought it back to my mind. Okay, I suggest that we leave this particular issue as @kinow suggests (Jira ticket and go from there) and I will (sometime

Re: Question about Jena Indexing

2018-04-24 Thread ajs6f
Hello, Anuj-- I may be missing something about your question, but wouldn't Model.add(Model) [1] work here? ajs6f [1] https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Model.html#add-org.apache.jena.rdf.model.Model- > On Apr 24, 2018, at 7:14 AM, anuj kumar

Question about Jena Indexing

2018-04-24 Thread anuj kumar
Hi, I have a scenario, where I have an instance of a Model Object that contains multiple Statements. Now I want to index the statements in this Model in Jena Text ES indexing implementation. *Question is*: How can i do that. :) Until now I was indexing data by reading the data from a file into a

[jira] [Commented] (JENA-1524) org.apache.jena.system is split by org.apache.jena.arq and org.apache.jena.core

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449644#comment-16449644 ] ASF GitHub Bot commented on JENA-1524: -- Github user christopher-johnson commented on the issue:

[GitHub] jena issue #401: [JENA-1524] org.apache.jena.system is split by org.apache.j...

2018-04-24 Thread christopher-johnson
Github user christopher-johnson commented on the issue: https://github.com/apache/jena/pull/401 Compilation in JPMS requires a `module-info.java` and is distinct from compiling in JDK 9+. > What is the issue here? Does anything break? A quick background of the use

[jira] [Commented] (JENA-1532) Jena Text Elastic Search Does not perform proper date comparison during query

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449458#comment-16449458 ] ASF GitHub Bot commented on JENA-1532: -- Github user anujgandharv commented on a diff in the pull

[GitHub] jena pull request #406: JENA-1532 | Added support for escaping special chara...

2018-04-24 Thread anujgandharv
Github user anujgandharv commented on a diff in the pull request: https://github.com/apache/jena/pull/406#discussion_r183642709 --- Diff: jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java --- @@ -422,6 +422,27 @@ public EntityDefinition getDocDef() {

[jira] [Commented] (JENA-1532) Jena Text Elastic Search Does not perform proper date comparison during query

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449431#comment-16449431 ] ASF GitHub Bot commented on JENA-1532: -- Github user osma commented on a diff in the pull request:

[GitHub] jena pull request #406: JENA-1532 | Added support for escaping special chara...

2018-04-24 Thread osma
Github user osma commented on a diff in the pull request: https://github.com/apache/jena/pull/406#discussion_r183630591 --- Diff: jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java --- @@ -422,6 +422,27 @@ public EntityDefinition getDocDef() { }

[jira] [Commented] (JENA-1532) Jena Text Elastic Search Does not perform proper date comparison during query

2018-04-24 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16449432#comment-16449432 ] ASF GitHub Bot commented on JENA-1532: -- Github user osma commented on a diff in the pull request:

[GitHub] jena pull request #406: JENA-1532 | Added support for escaping special chara...

2018-04-24 Thread osma
Github user osma commented on a diff in the pull request: https://github.com/apache/jena/pull/406#discussion_r183630332 --- Diff: jena-text-es/src/main/java/examples/JenaESTextExample.java --- @@ -73,7 +73,8 @@ public static void queryDataWithoutProperty(Dataset dataset)