Model m = ModelFactory.createDefaultModel();
InputStream in = this.getClass().getResourceAsStream("../files/films.ttl");
m.read(in,null,"TTL");
executor = new DumpQueryExecutor(m);
factory = new PlainSparqlQueryFactory();
endpoint = new PlainSparqlQueryEndpoint(factory, executor);
}