- 更新日時:
- 2014/12/04 14:46:14 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/ClassLink.java
r201 r212 143 143 //if ( linkedClassURI != null ){ 144 144 String label = getLinkedClassLabel(classes); 145 json_str+="\"nodeLabel\":"+"\""+label+"\""; 145 //json_str+="\"nodeLabel\":"+"\""+label+"\""; 146 json_str+="\"label\":"+"\""+label+"\""; 146 147 //} 147 148 // json_str+="\"numOfLinks\":"+"\""+numOfLinks+"\","; -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/Path.java
r201 r212 73 73 public String toJSONString3(SClass[] classes){ 74 74 String json_str=""; 75 json_str+="{\"startClassURI\":\""+ startClass+"\","; 76 json_str+="\"startClassLabel\":\""+QueryPathGenerator.getClassLabelfromList(startClass, classes)+"\","; 75 //json_str+="{\"startClassURI\":\""+ startClass+"\","; 76 //json_str+="\"startClassLabel\":\""+QueryPathGenerator.getClassLabelfromList(startClass, classes)+"\","; 77 json_str+="{\"startClass\":\""+ startClass+"\","; 78 json_str+="\"label\":\""+QueryPathGenerator.getClassLabelfromList(startClass, classes)+"\","; 77 79 if (classLinks != null && classLinks.size() != 0) { 78 80 json_str+="\"classLinks\":["; -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/PLServlet.java
r206 r212 83 83 SClass[] classes = qpg.getClasses(null); 84 84 Path[] paths = qpg.getPaths(st, en, true); 85 String jsonstr = " {\"paths\":[";85 String jsonstr = "["; 86 86 for(int i = 0; i< paths.length; i++){ 87 87 if (i > 0 && paths[i] != null){ … … 93 93 jsonstr += paths[i].toJSONString3(classes); 94 94 } 95 jsonstr += "] }";95 jsonstr += "]"; 96 96 //System.out.println("JSON:"); 97 97 //System.out.println(jsonstr);