チェンジセット 197 : SPARQLBuilderWWW
- 更新日時:
- 2014/10/28 11:44:50 (10 年 前)
- パス:
- SPARQLBuilderWWW
- ファイル:
-
- 8 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/nbproject/genfiles.properties
r123 r197 1 build.xml.data.CRC32= d2464d471 build.xml.data.CRC32=73259a3a 2 2 build.xml.script.CRC32=15bad33c 3 3 build.xml.stylesheet.CRC32=651128d4@1.67.1.1 4 4 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 5 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 nbproject/build-impl.xml.data.CRC32= d2464d476 nbproject/build-impl.xml.data.CRC32=73259a3a 7 7 nbproject/build-impl.xml.script.CRC32=06c5e70d 8 8 nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.67.1.1 -
SPARQLBuilderWWW/nbproject/project.properties
r123 r197 111 111 javadoc.windowtitle= 112 112 lib.dir=${web.docbase.dir}/WEB-INF/lib 113 no.dependencies=false114 113 persistence.xml.dir=${conf.dir} 115 114 platform.active=default_platform … … 120 119 # Space-separated list of JVM arguments used when running a class with a main method or a unit test 121 120 # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): 122 runmain.jvmargs= 121 runmain.jvmargs=-Xmx 5000m -Xms 5000m -XX:-UseGCOverheadLimit 123 122 source.encoding=UTF-8 124 123 source.root=src -
SPARQLBuilderWWW/nbproject/project.xml
r123 r197 94 94 <web-module-additional-libraries/> 95 95 <source-roots> 96 <root id="src.dir" name="繧ス繝シ繧ケ繝サ繝代ャ繧ア繝シ繧ク"/>96 <root id="src.dir"/> 97 97 </source-roots> 98 98 <test-roots> 99 <root id="test.src.dir" name="繝�せ繝医�繝代ャ繧ア繝シ繧ク"/>99 <root id="test.src.dir"/> 100 100 </test-roots> 101 101 </data> -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r177 r197 44 44 public OWLClassGraph(String startClass, String endClass){ 45 45 super(); 46 47 // start & end 46 48 this.startClass = startClass; 47 addNode(startClass);48 49 this.endClass = endClass; 49 addNode(endClass); 50 51 // parameters 50 52 nsteps = 3; 51 53 limit = 1000; 52 54 prunecut = 100; 55 56 // constructing subgraph 57 53 58 } 54 59 … … 229 234 } 230 235 */ 236 237 private void setGraph(RDFSchemaAnalyzer rdfsa, boolean countLink){ 238 // BFS 239 240 241 //ClassLink[] classLinks = rdfsa.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, countLinks); 242 } 231 243 232 244 } -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r177 r197 18 18 private RDFSchemaAnalyzer analyzer = null; 19 19 //private OWLClassGraph graph; 20 20 //private PathMatrix matrix = null; 21 21 22 private static final String CDIR = "cdata"; 22 23 … … 84 85 } 85 86 try { 86 return analyzer.getOWLClasses(null, keywords, null, false);87 return analyzer.getOWLClasses(null, keywords, null, true); 87 88 }catch(Exception e){ 88 89 System.err.println(e); -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/endpointMetadata/MetadataFile.java
r192 r197 324 324 } 325 325 326 327 328 329 326 private void readFile(File file) throws Exception{ 330 327 System.out.println("readfile: " + file.getAbsolutePath()); -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/www/CLServlet.java
r196 r197 83 83 for (int i = 0 ; i < classes.length; i++ ){ 84 84 JsonObjectBuilder job = jbfactory.createObjectBuilder(); 85 job.add("uri", classes[i].getClassURI()); 86 job.add("display", classes[i].getClassURI()); 87 //jab.add(classes[i].getClassURI()); 85 String uri = classes[i].getClassURI(); 86 job.add("uri", uri); 87 Label[] labels = classes[i].getLabels(); 88 String label = null; 89 for ( int j = 0 ; j < labels.length; j++ ){ 90 if ( labels[j].getLanguage() == null ){ 91 label = labels[j].getLabel(); break; 92 }else if ( labels[j].getLanguage().equals("en") ){ 93 label = labels[j].getLabel(); break; 94 } 95 } 96 if ( label == null ){ 97 String[] uris = uri.split("/"); 98 String tmplabel = uris[uris.length-1]; 99 String[] tmplabel2 = tmplabel.split("#"); 100 label = tmplabel2[tmplabel2.length-1]; 101 } 102 103 StringBuilder displaybuilder = new StringBuilder(label); 104 displaybuilder.append(" ("); 105 displaybuilder.append(classes[i].getNumOfInstances()); 106 displaybuilder.append(")"); 107 job.add("display", displaybuilder.toString()); 88 108 jab.add(job); 89 109 } -
SPARQLBuilderWWW/web/WEB-INF/glassfish-web.xml
r123 r197 2 2 <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> 3 3 <glassfish-web-app error-url=""> 4 <context-root>/ sbapi</context-root>4 <context-root>/api</context-root> 5 5 <class-loader delegate="true"/> 6 6 <jsp-config>