チェンジセット 25 : BH13SPARQLBuilder
- 更新日時:
- 2014/01/30 16:53:33 (11 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/hozo/maptool/MapFactory.java
r24 r25 97 97 Path path = pathlist[0]; 98 98 99 this.exbp.exbp_node_center = new ExbpNode( path.getStartClass());99 this.exbp.exbp_node_center = new ExbpNode(getTempLabel(path.getStartClass())); 100 100 101 101 for(int i = 0; i<pathlist.length; i++){ … … 120 120 System.out.println("addPath"+path.getStartClass()+"--->"+path.getClassLinks().size()); 121 121 String target_class = path.getStartClass(); 122 ExbpNode node = this.exbp.findExbpNode(target_class); 123 122 // ExbpNode node = this.exbp.findExbpNode(target_class); 123 ExbpNode node = this.exbp.exbp_node_center; 124 124 125 125 126 List<ClassLink> links = path.getClassLinks(); … … 127 128 String next_class = link.getLinkedClassURI(); 128 129 System.out.println("==>"+next_class); 129 ExbpNode next_node = new ExbpNode(next_class); 130 /* 131 String next_class_lbl =""; 132 int index = next_class.lastIndexOf("/"); 133 if(index>0 && index<next_class.length()){ 134 next_class_lbl = next_class.substring(index+1); 135 } 136 else{ 137 next_class_lbl = next_class; 138 } 139 140 int index2 = next_class_lbl.lastIndexOf("#"); 141 if(index2>0 && index2<next_class_lbl.length()){ 142 next_class_lbl = next_class_lbl.substring(index2+1); 143 } 144 145 */ 146 ExbpNode next_node = new ExbpNode(getTempLabel(next_class)); 130 147 next_node.setOrgNode(path); 131 148 … … 146 163 } 147 164 165 166 String getTempLabel(String next_class){ 167 String next_class_lbl =""; 168 int index = next_class.lastIndexOf("/"); 169 if(index>0 && index<next_class.length()){ 170 next_class_lbl = next_class.substring(index+1); 171 } 172 else{ 173 next_class_lbl = next_class; 174 } 175 176 int index2 = next_class_lbl.lastIndexOf("#"); 177 if(index2>0 && index2<next_class_lbl.length()){ 178 next_class_lbl = next_class_lbl.substring(index2+1); 179 } 180 181 return next_class_lbl; 182 } 183 148 184 //蜈�→縺ェ繧畿ditor遲峨〒MapTool繧堤ョ。逅�@縺ヲ縺�kVector繧定ソ斐☆縲食ozo莉・螟悶〒縺ッ繧ェ繝シ繝舌�繝ゥ繧、繝峨☆繧九� 149 185 Vector getMapVec(){