Re: OPTIONAL with VALUES in Fuseki

2017-02-26 Thread Zak Mc Kracken
I would add that a possible solution could be some mechanism for conditional binding, e.g., BIND ( IF ( ?surname != '', ?surname, UNBOUND ) AS ?mySurname ), but apparently there is nothing like that in SPARQL (apart from FILTER inside OPTIONAL). M On 26/02/2017 20:35, Zak Mc Kracken wrote: H

Re: OPTIONAL with VALUES in Fuseki

2017-02-26 Thread Zak Mc Kracken
Hi Andy, thanks for your answer. I knew about UNDEF, but the fact is I don't have control over the data (as I said, I'm trying to fit this into TARQL, which takes a csv and adds a VALUE block to a CONSTRUCT template, to convert to RDF). I'll see what the authors of the tool say about the opti

[jira] [Assigned] (JENA-1296) Fuseki SPARQL endpoints become permanently unresponsive after read/write load

2017-02-26 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne reassigned JENA-1296: --- Assignee: Andy Seaborne > Fuseki SPARQL endpoints become permanently unresponsive after read/w

[jira] [Commented] (JENA-1297) Code to ste JENA_HOME in scripts doesn't work (links)

2017-02-26 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884838#comment-15884838 ] Andy Seaborne commented on JENA-1297: - Are you referring to the script at about the lin

[jira] [Commented] (JENA-1295) Add support to VALUES in SelectBuilder

2017-02-26 Thread ASF subversion and git services (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884832#comment-15884832 ] ASF subversion and git services commented on JENA-1295: --- Commit e8692

Re: OPTIONAL with VALUES in Fuseki

2017-02-26 Thread Andy Seaborne
Zak, Using ?surname in the OPTIONAL-BIND does do not what you want. You'll want the VALUES block before the OPTIONAL but even then the problem is that the OPTIONAL matches graph pattern (an empty one) so ?surname is not set in the OPTIONAL. Ideally, put UNDEF in the values. Andy PREFIX

[jira] [Commented] (JENA-1294) JenaSystem.init from RDFS throws NPE, fails ARQ tests

2017-02-26 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884806#comment-15884806 ] ASF GitHub Bot commented on JENA-1294: -- Github user afs commented on the issue: h

[GitHub] jena issue #218: JENA-1294: Don't use contants during initialization.

2017-02-26 Thread afs
Github user afs commented on the issue: https://github.com/apache/jena/pull/218 ".exe" append integrated in. I had some problems in the build (because of a static method called "Property()") but all fixed now so this PR should be complete. I'll merge it soon unless someone h

[jira] [Commented] (JENA-1296) Fuseki SPARQL endpoints become permanently unresponsive after read/write load

2017-02-26 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884796#comment-15884796 ] Andy Seaborne commented on JENA-1296: - FYI: TDB2 does not have the same need as TDB1

[jira] [Commented] (JENA-1296) Fuseki SPARQL endpoints become permanently unresponsive after read/write load

2017-02-26 Thread Andy Seaborne (JIRA)
[ https://issues.apache.org/jira/browse/JENA-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884795#comment-15884795 ] Andy Seaborne commented on JENA-1296: - Thanks for the report. JENA-1224 is a possible

OPTIONAL with VALUES in Fuseki

2017-02-26 Thread Zak Mc Kracken
Hi all, I was hoping to make this to work with Fuseki 2.3.0: PREFIX ex: CONSTRUCT { ?id ex:has-name ?name; ex:has-surname ?mySurname } WHERE { OPTIONAL { BIND ( ?surname AS ?mySurname ). FILTER ( ?surname != '' ) } #BIND ( ?surname AS ?mySurname ) VALUES

[jira] [Created] (JENA-1297) Code to ste JENA_HOME in scripts doesn't work (links)

2017-02-26 Thread Marco Brandizi (JIRA)
Marco Brandizi created JENA-1297: Summary: Code to ste JENA_HOME in scripts doesn't work (links) Key: JENA-1297 URL: https://issues.apache.org/jira/browse/JENA-1297 Project: Apache Jena Issue