package org.wikier.trioo.jtrioo;
import org.apache.log4j.Logger;
import org.wikier.trioo.jtrioo.rdf.sparql.QueryExecutor;
import org.wikier.trioo.jtrioo.rdf.sparql.QueryExecutorEndpoint;
public final class SessionEndpoint extends AbstractSession {
private static final Logger logger = Logger.getLogger(SessionEndpoint.class);
private static Session instance;
private SessionEndpoint() {
super();
}
public synchronized static Session getInstance() {
if (instance == null) {
instance = new SessionEndpoint();
}
return instance;
}
public void load(String uri) {
logger.warn("Resource not necessary in this implementation? ignoring it....");
}
public QueryExecutor getQueryExecutor() {
QueryExecutor qe = new QueryExecutorEndpoint();
qe.setSession(this); //FIXME
return qe;
}
}