I'm trying to run templates using the SPIN API.
For simple templates, this works well but I have trouble with templates that include FILTERs
.
For verification purposes, I print the templates' bodies before running them and what I see is not what I expect to see:
Template t = SPINModuleRegistry.get().getTemplate("TheTemplatesURI", myModel);
System.out.printLn(t.getBody().toString());
It prints the query but the FILTER
clause, which contains 4 lines, looks like this:
FILTER <http://spinrdf.org/sp#notExists>([]) .
Because of this, the query fails when I try to run it.
Does anyone have an idea how I can retrieve the full spin:body
from my model?