Site Archives

Hellllloooooooo, where are you RESTLet


We are currently developing a little REST based service for the storage of RDF.  It uses openAnzo (2.5.1) and Restlet (1.0.5).  All was going well until the client calls disappeared into a black hole.  No responses were coming back from the server, in fact nothing seemed to be arriving there.  Turns out that when you […]

Cross platform fun


While debugging some test problems with the T2 code I discovered some issues between OSX and Windows regards file paths and line breaks.  Seems that instead of just
inputs.put(”fileUrl”, LocalworkerTranslator.class.getResource( “/AAC4_HUMAN.sp”).getFile());
you have to ensure that the absolute path is correct by doing
URI uri = LocalworkerTranslator.class.getResource(”/AAC4_HUMAN.sp”) .toURI();
File newFile = new File(uri);
inputs.put(”fileUrl”, newFile.getAbsolutePath());
Also, you can’t expect checks for […]