stardog query -b

1 view
Skip to first unread message

Conrad Leonard

unread,
Dec 4, 2015, 1:16:23 AM12/4/15
to Stardog
A very minor issue, there is a regression or at least difference in behaviour of the results from stardog query -b var=value between 3.1.4 and 4.0.1:

In 3.1.4 a variable bound with -b option that appears (only) inside FILTER clause will appear in the result bindings, but not in 4.0.1.

A contrived example:

[conradL@qimr13054 ~]$ /software/stardog/stardog-3.1.4/bin/stardog query -u admin -p admin -b "study='UQCCR_GM'" -- grafli "SELECT * WHERE { ?s a :Study; rdfs:label ?sLabel . FILTER (str(?sLabel) = ?study) }"
+--------------------------------------------+------------+------------+
|                     s                      |   sLabel   |   study    |
+--------------------------------------------+------------+------------+
| study:779a848d-9239-4b8a-83d3-68b8c0873179 | "UQCCR_GM" | "UQCCR_GM" |
+--------------------------------------------+------------+------------+

Query returned 1 results in 00:00:00.321



In 4.0.1 the same gives (note no value for 'study' in results)

[conradL@qimr13054 ~]$ /software/stardog/stardog-4.0.1/bin/stardog query -b "study='UQCCR_GM'" -- grafli "SELECT * WHERE { ?s a :Study; rdfs:label ?sLabel . FILTER (str(?sLabel) = ?study) }"
+--------------------------------------------+------------+-------+
|                     s                      |   sLabel   | study |
+--------------------------------------------+------------+-------+
| study:779a848d-9239-4b8a-83d3-68b8c0873179 | "UQCCR_GM" |       |
+--------------------------------------------+------------+-------+

Query returned 1 results in 00:00:00.051



Evren Sirin

unread,
Dec 4, 2015, 9:35:27 AM12/4/15
to Stardog
Thanks for the report. We created issue 2695 for this.

Best,
Evren
> --
> -- --
> You received this message because you are subscribed to the C&P "Stardog"
> group.
> To post to this group, send email to sta...@clarkparsia.com
> To unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> For more options, visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Reply all
Reply to author
Forward
0 new messages