チェンジセット 175 : SPARQLBuilderWWW/src/java
- 更新日時:
- 2014/09/26 11:41:55 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r162 r175 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 QueryPathGenerator qpg = new QueryPathGenerator(); 76 //} 72 HttpSession session = request.getSession(); 73 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 74 if ( qpg == null ){ 75 //QueryPathGenerator 76 qpg = new QueryPathGenerator(); 77 } 77 78 qpg.setSPARQLendpoint(ep); 78 79 SClass[] classes = qpg.getClasses(null); -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/EPServlet.java
r162 r175 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
r171 r175 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 QueryPathGenerator qpg = new QueryPathGenerator(ep); 77 //} 73 HttpSession session = request.getSession(); 74 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 75 if ( qpg == null ){ 76 //QueryPathGenerator 77 qpg = new QueryPathGenerator(ep); 78 } 78 79 SClass[] classes = qpg.getClasses(null); 79 80 Path[] paths = qpg.getPaths(st, en, true);