Per Jena rule syntax and structure, I can use builtin primitives in the
rule.

*term*      :=   (*node*, *node*, *node*)           // triple pattern
or   (*node*, *node*, *functor*)        // extended triple pattern
or   builtin(*node*, … *node*)      // invoke procedural primitive

I have tried the following built-ins, but none of them could be triggered.

[ test1: makeTemp(?x) -> print("makeTemp test") ]
[ test1: unbound(?x) -> print("unbound test") ]
[ test1: bound(?x) -> print("bound test") ]
[ test1: now(?x) -> print("now test") ]

However, if I added one triple ahead as below. It works.

[ test1: (:User rdf:type ?y) makeTemp(?x) -> print("makeTemp test") ]

Where :User is an individual in the system.

Reply via email to