チェンジセット 284 : SPARQLBuilderWWW/src
- 更新日時:
- 2016/06/13 10:53:43 (8 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r275 r284 22 22 23 23 private Map<String, String> clabels; 24 private Map<String, String> epurifile; // key: endpoint URI, value: filename 24 25 25 26 private static final String CDIR = "cdata"; 26 27 private static final String ODIR = "owldata"; 27 28 //private static final String CGDIR = "cgraph"; 29 28 30 /* 29 31 public static void main(String[] args){ … … 105 107 } 106 108 109 /* 110 public void readClassGraph(String ep){ 111 112 } 113 114 public void writeClassGraphs(){ 115 factory = new RDFSchemaAnalyzerFactory(CDIR); 116 epurifile = new HashMap<String, String>(); 117 String[] eps = factory.getEndpointURIList(); 118 for ( int i = 0 ; i < eps.length; i++ ){ 119 try { 120 analyzer = factory.create(eps[i]); 121 graph = new OWLClassGraph(analyzer); 122 String fn = "cgraph".concat(Integer.toString(i)).concat(".obj"); 123 ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(fn)); 124 oos.writeObject(graph); 125 epurifile.put(eps[i],fn); 126 oos.close(); 127 } catch (Exception e) { 128 e.printStackTrace(); 129 } 130 } 131 } 132 */ 133 107 134 public SClass[] getClasses(String keyword){ 108 135 String[] keywords = null; … … 214 241 215 242 public Map<String, String> getClassLabelsFromExternal(){ 216 return 243 return OWLLabelReader.readLabels(ODIR); 217 244 } 218 245