Hi Paul, I haven't used listeners with Jena. Have you had a look at the docs already? https://jena.apache.org/documentation/notes/event-handler-howto.html
Cheers Bruno On Tue, 6 Jun 2023 at 13:11, Paul Blakeley <[email protected]> wrote: > I am new to this and struggling to find any information relating to > configuring fuseki so that I can listen to the events when inserting into > the triple store. I have the following code which I can see is running > from the logs. But the listener doesn't seem to be triggered. Any help > would be appreciated. > > public class Listener { > > public static void init() { > System.err.println("Starting process..."); > Model m = ModelFactory.createDefaultModel(); > > m.register(new ChangedListener() { > @Override > public void addedStatement(Statement statement) { > System.err.println("New statement added: " + statement); > } > @Override > public void removedStatement(Statement statement) { > System.err.println("Statement removed: " + statement); > } > }); > > System.err.println("Registered ChangedListener 0..."); > > } >
