serge
(Serge Colle - Senior Solution Architect)
July 19, 2019, 5:06pm
1
I am trying to create a query to only return odd (or only even) values. From the stardog documentation this can be achieved using something like
PREFIX swrlb: <https://www.w3.org/2003/11/swrlb#>
select * WHERE
{
?terminal1 asset:number ?tnum1 .
FILTER (swrlb:mod(?tnum1)) .
}
however I keep getting
jess
(Jess Balint)
July 19, 2019, 5:12pm
2
Which version of Stardog is this? Can you try it without the prefix?
jess
(Jess Balint)
July 19, 2019, 5:14pm
3
Looks like your prefix should have http
instead of https
.
serge
(Serge Colle - Senior Solution Architect)
July 19, 2019, 5:25pm
4
Ah in the table Home | Stardog Documentation Latest it does show 'http' however it you click on the copy link for swbrl:mod in the table 16. Table of Custom Stardog Functions, it has 'https'.
I did the latter. Thanks for your help
jess
(Jess Balint)
July 19, 2019, 5:36pm
5
I'd like to fix this if it is indeed wrong. However, the link looks correct in table 17. Are you copying it directly? Which browser are you using?
serge
(Serge Colle - Senior Solution Architect)
July 19, 2019, 10:54pm
6
You are correct, if I inspect the page it does look like it correct
When you click on it in chrome (at least mine) that url is redirected to https. I then copied the redirected url. To see what I mean click on this
http://www.w3.org/2003/11/swrlb#mod .
In IE it works fine for me
jess
(Jess Balint)
July 19, 2019, 11:21pm
7
Ok, that's interesting indeed. I'm not aware of anything we can do in the docs to avoid that.
system
(system)
Closed
August 2, 2019, 11:21pm
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.