Refactoring to put data into fuseki from  memory.