Hi,
I'm trying to encode some business rules as Stardog SPARQL rules, using the format
eg:myrule a rule:SPARQLRule ;
rule:content """
IF {
?foo a eg:bar .
?foo eg:myprop ?baz .
BIND ( IF(?baz = "foobaz", "true"^^xsd:boolean, "false"^^xsd:boolean) AS ?c )
}
THEN {
?foo eg:myrule ?c
}
""".
However, this rule never gets triggered (i.e. the triple ?foo eg:myrule ?c is never generated), unless I replace the IF(x,y,z) statement to something like
BIND ( IF(?baz = "foobaz", ?baz != ?foo, ?foo = ?foo)
Is this well supported in Stardog or am I missing something?
Thanks,
Albert