チェンジセット 215 : SPARQLBuilderWWW/web/sparqlbuilder.js

差分発生行の前後
無視リスト:
更新日時:
2014/12/04 15:35:27 (10 年 前)
更新者:
atsuko
ログメッセージ:

SPARQL生成APIのJSON形式を変更

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • SPARQLBuilderWWW/web/sparqlbuilder.js

    r213 r215  
    9393SPARQLBuilder.prototype.loadClassList = function() { 
    9494    var url = "http://www.sparqlbuilder.org/api/clist?ep=" + encodeURIComponent(this.endpoint); 
     95    //var url = "http://localhost:8080/api/clist?ep=" + encodeURIComponent(this.endpoint); 
    9596    $.ajax({ 
    9697        type : "GET", 
     
    118119                                          + "&startclass=" + encodeURIComponent(startclass) 
    119120                                          + "&endclass="   + encodeURIComponent(endclass); 
     121    //var url = "http://localhost:8080/api/plist?ep=" + encodeURIComponent(this.endpoint) 
     122    //                                      + "&startclass=" + encodeURIComponent(startclass) 
     123    //                                      + "&endclass="   + encodeURIComponent(endclass); 
    120124    var self = this; 
    121125    self.loadIcon("view"); 
     
    152156SPARQLBuilder.prototype.generateSPARQL = function(pathobj) { 
    153157    var path = JSON.stringify(pathobj); 
    154     var url = 'http://www.sparqlbuilder.org/api/sparql?jsonpath=' + encodeURIComponent(path); 
     158    var url = 'http://www.sparqlbuilder.org/api/sparql?path=' + encodeURIComponent(path); 
     159    //var url = 'http://localhost:8080/api/sparql?path=' + encodeURIComponent(path); 
    155160    var sparql = ''; 
    156161    var self = this;