チェンジセット 214 : SPARQLBuilderWWW/src/java
- 更新日時:
- 2014/12/04 15:21:04 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/ClassLink.java
r212 r214 118 118 119 119 if( propertyURI != null ) { 120 json_str+="\"propertyURI\":"+"\""+propertyURI+"\","; 121 } 122 else{ 123 json_str+="\"propertyURI\":"+"\"propertyURI\","; 120 //json_str+="\"propertyURI\":"+"\""+propertyURI+"\","; 121 json_str+="\"predicate\":"+"\""+propertyURI+"\","; 122 } 123 else{ 124 json_str+="\"predicate\":"+"\"propertyURI\","; 124 125 } 125 126 if( linkedClassURI != null ){ 126 json_str+="\"linkedClassURI\":"+"\""+linkedClassURI+"\","; 127 } 128 else{ 129 json_str+="\"linkedClassURI\":"+"\"linkedClassURI\","; 127 //json_str+="\"linkedClassURI\":"+"\""+linkedClassURI+"\","; 128 json_str+="\"linkedClass\":"+"\""+linkedClassURI+"\","; 129 } 130 else{ 131 //json_str+="\"linkedClassURI\":"+"\"linkedClassURI\","; 132 json_str+="\"linkedClass\":"+"\""+linkedClassURI+"\","; 130 133 } 131 134 if( linkedLiteralDatatypeURI != null ){ -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/SPServlet.java
r206 r214 83 83 response.setHeader("Access-Control-Max-Age", "-1"); 84 84 PrintWriter out = response.getWriter(); 85 String jpath = request.getParameter(" jsonpath");86 System.out.println(" JsonPath");85 String jpath = request.getParameter("path"); 86 System.out.println("Path"); 87 87 System.out.println(jpath); 88 88 Path path = null; … … 152 152 String linkedLiteralDatatypeURI=null; 153 153 linkedLiteralDatatypeURI = jsonObject.getString("linkedLiteralDatatypeURI"); 154 String linkedClassURI = jsonObject.getString("linkedClass URI");155 String propertyURI = jsonObject.getString("propertyURI");154 String linkedClassURI = jsonObject.getString("linkedClass"); 155 String propertyURI = jsonObject.getString("predicate"); 156 156 157 157 // int numOfLinks = Integer.parseInt(jsonObject.getJSONObject("numOfLinks").toString()); … … 172 172 list.add(classLink); 173 173 } 174 String startClass = object.getString("startClass URI");174 String startClass = object.getString("startClass"); 175 175 Path path = new Path(startClass, list, 0); 176 176