- 更新日時:
- 2014/09/25 16:09:20 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r149 r162 70 70 PrintWriter out = response.getWriter(); 71 71 String ep = request.getParameter("ep"); 72 HttpSession session = request.getSession();73 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg");74 if ( qpg == null ){75 qpg = new QueryPathGenerator();76 }72 //HttpSession session = request.getSession(); 73 //QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 74 //if ( qpg == null ){ 75 QueryPathGenerator qpg = new QueryPathGenerator(); 76 //} 77 77 qpg.setSPARQLendpoint(ep); 78 78 SClass[] classes = qpg.getClasses(null); -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/EPServlet.java
r149 r162 84 84 JsonArray ja = jab.build(); 85 85 out.print(ja); 86 HttpSession session = request.getSession();87 session.setAttribute("qpg", qpg);86 //HttpSession session = request.getSession(); 87 //session.setAttribute("qpg", qpg); 88 88 } 89 89 -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r149 r162 71 71 String en = request.getParameter("endclass"); 72 72 73 HttpSession session = request.getSession();74 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg");75 if ( qpg == null ){76 qpg = new QueryPathGenerator(ep);77 }73 //HttpSession session = request.getSession(); 74 //QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 75 //if ( qpg == null ){ 76 QueryPathGenerator qpg = new QueryPathGenerator(ep); 77 //} 78 78 Path[] paths = qpg.getPaths(st, en, true); 79 79 String jsonstr = "{\"paths\":[";