- 更新日時:
- 2016/03/14 15:36:25 (9 年 前)
- パス:
- SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/www
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r267 r268 90 90 for ( int i = 0; i < eplist.length; i++ ){ 91 91 try{ 92 qpg.setSPARQLendpoint(eplist[i]); 93 SClass[] classes = qpg.getClasses(null); 92 SClass[] classes = qpg.getClassesByEndpoint(eplist[i]); 94 93 sortedClasses = qpg.getSortedClasses(classes); 95 94 JsonArray ja = getJsonArrayFromSortedClasses(jbfactory, sortedClasses); … … 104 103 } 105 104 String classURI = request.getParameter("class"); 106 qpg.setSPARQLendpoint(ep);107 105 SClass[] classes = null; 108 106 if ( classURI != null ){ 109 qpg.setOWLClassGraph(classURI);110 classes = qpg.getReachableClasses();107 //qpg.setOWLClassGraph(classURI); // KOKO 108 //classes = qpg.getReachableClasses(); 111 109 }else{ 112 110 classes = qpg.getClasses(null); -
SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r267 r268 81 81 82 82 HttpSession session = request.getSession(); 83 //QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg");84 //if ( qpg == null ){85 QueryPathGenerator qpg = new QueryPathGenerator(ep);86 //}83 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 84 if ( qpg == null ){ 85 qpg = new QueryPathGenerator(); 86 } 87 87 SClass[] classes = qpg.getClasses(null); 88 88 qpg.setClassLabels(classes);