Open glaserL opened 1 year ago
Hi, this is indeed a small bug, probably due to a minimal change in the jackson API. Currently the UpdaterFactory checks whether the textual representation of "graph" in the config file equals an empty string. However this seems to return null instead of an empty string when "graph" is not included in the file.
As a workaround, you could adjust your config file as follows:
{
"class": "RDFUpdater",
"models": [
{
"source": "file:///some_graph.nt",
"graph": ""
}
],
"updates": [{ "path": "script.sparql", "iter": "1" }]
}
It should work like that. I will make sure to include a fix in the next release.
The documentation for the
RDFUpdater
states that thegraph
parameter is optional:https://github.com/acoli-repo/fintan-doc/blob/46e795e1fc078d5904519711de06e93cc9afb464/3a-core-components.md?plain=1#L118C148-L118C148
However when omitted, a NullPointerException occurs:
Used Configuration