I cannot reproduce this. For example, the test code
public static void main(String[] args) {
String raw = "<http://ex.org/a> <http://ex.org/p>
<http://ex.org/b> .";
Model rawData = ModelFactory.createDefaultModel();
rawData.read(new StringReader(raw), null, "N-Triples");
String rules =
"[test1: now(?x) -> print(\"now test\") ]";
Reasoner reasoner = new
GenericRuleReasoner(Rule.parseRules(rules));
InfModel inf = ModelFactory.createInfModel(reasoner, rawData);
System.out.println("A * * =>");
StmtIterator iterator = inf.listStatements(null, null,
(RDFNode) null);
while (iterator.hasNext()) {
System.out.println(" - " + iterator.next());
}
}
does in fact print "now test" to the console.
On 26.01.23 19:43, L B wrote:
test1: now(?x) -> print("now test")