public SessionImpl(Configuration configuration, Ontology ontology, RDFConnection connection, Iterable<Locale> locales) { this.configuration = configuration; this.ontology = ontology; this.connection = connection; this.locales = locales; this.identityService = new SessionIdentityService(connection); clear(); }
@Override public ID getID(LID lid) { STMT stmt = find(null, CORE.localId, new LIT(lid.getId())); return stmt != null ? stmt.getSubject() : null; }
@Before public void setUp() { MiniRepository repository = new MiniRepository(); RDFConnection connection = new MiniConnection(repository); identityService = new SessionIdentityService(connection); }