XPref.getInstance(Demo_Applet.class.getResource("/preferencesMenu.xml"));
} catch(final Exception e){
XPref.getInstance(new URL("file:"+GUI.class.getResource("/preferencesMenu.xml").getFile()));
}
final BasicIndexQueryEvaluator evaluator = Endpoint.createQueryEvaluator(args[0]);
Endpoint.registerFormatter(new OperatorgraphFormatter("png", evaluator));
Endpoint.registerFormatter(new OperatorgraphFormatter("jpeg", evaluator));
Endpoint.registerFormatter(new OperatorgraphFormatter("gif", evaluator));
Endpoint.registerHandler("/sparql", new SPARQLHandler(new Endpoint.SPARQLExecutionImplementation(evaluator, args[0])));
Endpoint.registerHandler("/sparqldebug", new SPARQLHandler(new SPARQLExecutionDebugImplementation(evaluator, args[0])));