Jena Rule: How to use now(?x) Builtin primitive

156 Views Asked by At

Can please someone explain about now(?x) Builtin primitive in jena rule. I need to understand about this but not found resource on internet. Like example etc. Only found information about this from Apache jean website which is that:

now(?x):Binds ?x to an xsd:dateTime value corresponding to the current time.

Any Example how to use in rules.

Thanks!

1

There are 1 best solutions below

0
Yunfeng Wang On

call this function in rule body, here is an example :

[r1: (?s :startTime ?x) <- (?s a :Match), now(?x)]