チェンジセット 223 : SPARQLBuilderWWW/web/dist.html
- 更新日時:
- 2014/12/24 11:46:47 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/web/dist.html
r216 r223 7 7 <script src="./jquery-1.11.1.min.js"></script> 8 8 <script src="./d3.v3.min.js" charset="utf-8"></script> 9 <script src="./sparqlbuilder.js"></script> 9 <!-- script src="./sparqlbuilder.js"></script --> 10 <script src="./sb-test.js"></script> 10 11 <script> 11 12 <!-- … … 25 26 window.open(openpage); 26 27 } 28 29 function trySample(sparql){ 30 var sb = new SPARQLBuilder('sparql'); 31 32 $(document).on('complete', '#EndPointSelect', function(){ 33 $('#EndPointSelect').val('http://www.ebi.ac.uk/rdf/services/reactome/sparql'); 34 sb.changeEndPoint(); 35 }); 36 37 $(document).on('complete', '#StartClassSelect', function(){ 38 $('#StartClassSelect').val('http://www.biopax.org/release/biopax-level3.owl#Protein'); 39 sb.startClass = 'http://www.biopax.org/release/biopax-level3.owl#Protein'; 40 $('#EndClassSelect').val('http://www.biopax.org/release/biopax-level3.owl#Pathway'); 41 sb.endClass = 'http://www.biopax.org/release/biopax-level3.owl#Pathway'; 42 sb.loadPathList(); 43 }); 44 } 45 27 46 --> 28 47 </script> … … 32 51 <div> 33 52 <form> 34 <input type="button" id="create" value="Start SPARQLBuilder" onclick="new SPARQLBuilder('sparql'); return false;" /> 53 <input type="button" id="create" value="Start SPARQLBuilder" onclick="new SPARQLBuilder('sparql'); return false;"/> 54 <input type="button" id="create" value="Try with Sample" onclick="trySample('sparql'); return false;" /> 35 55 <br/> 36 56 <textarea id="sparql" name="sparql" cols="60" rows="10"></textarea><br/> … … 38 58 </form> 39 59 </div> 60 <div id="searchResult"></div> 40 61 </body> 41 62 </html>