- 更新日時:
- 2014/12/19 18:01:25 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r211 r221 78 78 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 79 79 if ( qpg == null ){ 80 80 qpg = new QueryPathGenerator(); 81 81 } 82 82 SortedSet<String> sortedClasses = new TreeSet<String>(); // display + url 83 83 qpg.setSPARQLendpoint(ep); 84 OWLClassGraph ocg = qpg.getOWLClassGraph(); 84 85 SClass[] classes = qpg.getClasses(null); 85 86 for (int i = 0 ; i < classes.length; i++ ){ 86 87 String uri = classes[i].getClassURI(); 88 if ( ocg.getNumberOfEdge(uri) == 0 ){ 89 continue; 90 } 87 91 Label[] labels = classes[i].getLabels(); 88 92 String label = null; -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r212 r221 78 78 QueryPathGenerator qpg = (QueryPathGenerator)session.getAttribute("qpg"); 79 79 if ( qpg == null ){ 80 //QueryPathGenerator 81 qpg = new QueryPathGenerator(ep); 80 qpg = new QueryPathGenerator(ep); 82 81 } 83 82 SClass[] classes = qpg.getClasses(null); … … 94 93 } 95 94 jsonstr += "]"; 96 //System.out.println("JSON:"); 97 //System.out.println(jsonstr); 95 // For debug 96 System.out.println("JSON:"); 97 System.out.println(jsonstr); 98 98 out.print(jsonstr); 99 99 }