STRAFTER == STRBEFORE

10 views
Skip to first unread message

Dunc

unread,
Sep 11, 2015, 7:49:25 AM9/11/15
to 4store-support
We are setting up a KB and when trying out some queries i found that
STRAFTER gives the same values as STRBEFORE, which should ofc not happen.
Sorry if this is a known bug or hopefully the mistake is on my side

Example


We want to keep track of our believe that we are sure that a user knows another user:
<user2> <knows> <user3##80.70>

SELECT ?before ?after WHERE {

BIND (STRBEFORE( 'user3##80.70', '##') AS ?before).
BIND (STRAFTER('user3##80.70', '##') AS ?after).
}


Result i get

?before = user3
?after = user3

Using SPARQL httpd server v1.1.6


swh

unread,
Sep 11, 2015, 9:06:40 AM9/11/15
to 4store-support
Good catch, fixed in 7efc4d172363bd4924f842bc4e9d54d14eb391c5.

It was a bug in the code that maps from the parse tree to the function execution.
Reply all
Reply to author
Forward
0 new messages