CONSTRUCT query wrongly rejected

It looks like a minor bug in the query parser for CONSTRUCT queries, but any usage of the short form CONSTRUCT WHERE leads to a parser error although the pattern is a BGP:

Version: Stardog 5.0.2


Query:

PREFIX : <http://example.com/>
CONSTRUCT WHERE {
    :s ?p ?o 
}

Exception:

Error!

{"message":"can not use shorthand CONSTRUCT: graph pattern in WHERE clause is not a basic pattern.","code":"MalformedQuery"}

Hm, that’s weird, I can’t reproduce this with 5.0.2, running the query from the command line.

How do you run it? Can you double check the Stardog version and the query?

Thanks,
Pavel

Hi Pavel,

hm ok. I'm just running it in the WebUI, see



It happens for both, version 5.0.1 and 5.0.2 (which I downloaded in the morning and setup in a different directory)

Thank you!

OK, I didn’t realize it was run via the Web console. Now I see the problem, thanks!

Cheers,
Pavel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.