Hi I have created a java program where I take a ttl file and update the turtle statements. Since I have a web interface that connects to fuseki to query the ttl file, I would like to reupload the ttl file with the new data. Is there a way to do this programatically instead of the Fuseki interface?
What I am trying is to access the command prompt from java and using the s-put command but I am getting a No such file or directory error:
public void updateFuseki() throws IOException{
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("s-put http://localhost:3030/Test/ default Definitions.graph.ttl");
}
I have currently only one dataset called Test in fuseki and Definitions.graph.ttl is in the same package as Jena