On 16/11/11 10:10, Damian Steer wrote:

On 15 Nov 2011, at 16:58, Christian Fuerber wrote:

Dear all,

I experience some problems with query execution over jena. For some reason I
cannot execute the following query to my local TDB:
                        "{" +
                                "?i a ?tclassURI ." +
                                "NOT EXISTS{" +
                                "?i ?tpropURI ?value ." +
                                "}" +
                                "}UNION{" +
                                "?i a ?tclassURI ." +
                                "?i ?tpropURI \"\"." +
                                "}" +

That's hard to read, but you want either *FILTER* NOT EXISTS or MINUS here. [1]

Absolutely.  Put some newlines in the query or use StrUtils.strjoin

Print the string is really helpful.


Damian

[1]<http://www.w3.org/TR/sparql11-query/#neg-notexists-minus>


Damian is correct.

Or use Syntax.synatxARQ where FILTER is not needed with NOT EXISTS. You are parsing with strict SPARQL 1.1

The SPARQL-WG decided to require the word FILTER

>> Other queries without NOT EXISTS work fine. The query also executes
>> on FUSEKI's query UI without any problems.

because the parser is set to accept extensions.

        Andy

Reply via email to