mathib
(mathib)
February 22, 2018, 11:31am
1
Hi, I noticed that Stardog cannot handle SPARQL CONSTRUCT when using the short syntax:
CONSTRUCT
WHERE { ?s ?p ?o }
It only works if you fill in the CONSTRUCT, such as:
CONSTRUCT { ?s ?p ?o }
WHERE { ?s ?p ?o }
It would be nice if Stardog could support this
pavel
(Pavel Klinov)
February 22, 2018, 11:38am
2
Hi, Stardog supports construct where { ?s ?p ?o }
. What exactly query doesn’t work?
Best,
Pavel
mathib
(mathib)
February 22, 2018, 11:45am
3
Hi Pavel, I always get the following error:
Error!
{"message":"can not use shorthand CONSTRUCT: graph pattern in WHERE clause is not a basic pattern.","code":"MalformedQuery"}
It does work when doing copying the part inside the WHERE to the CONSTRUCT
pavel
(Pavel Klinov)
February 22, 2018, 11:47am
4
What version of Stardog is it? How do you run the query?
mathib
(mathib)
February 22, 2018, 12:08pm
5
It’s v5.2.1. and I tried it in the Stardog web viewer, where it fails.
If I use it via another application (thus sending requests to the stardog server) there is no error
pavel
(Pavel Klinov)
February 22, 2018, 12:17pm
6
OK, now I see what happens.
The old Webconsole adds an implicit LIMIT
to the query and it turns out there’s a bug with parsing construct where { ?s ?p ?o } limit 10
. We’ll fix it.
Meanwhile you should stop using Webconsole in favor of Stardog Studio (which doesn’t add limits). Webconsole won’t be supported in the future.
Thanks,
Pavel
system
(system)
Closed
March 8, 2018, 12:17pm
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.