Index: /SPARQLBuilderWWW/web/sparqlbuilder.js
===================================================================
--- /SPARQLBuilderWWW/web/sparqlbuilder.js (revision 209)
+++ /SPARQLBuilderWWW/web/sparqlbuilder.js (revision 213)
@@ -726,14 +726,14 @@
     document.getElementById("sparqlBuilderPlural").innerHTML = "s";
 
-    if(obj['paths'].length == 0){
+    if(obj.length == 0){
         document.getElementById("sparqlBuilderResultmessage").style.color = "red";
         document.getElementById("sparqlBuilderResultmessage").style.fontWeight = "bold";
         document.getElementById("sparqlBuilderPlural").innerHTML = "";
-    }else if(obj['paths'].length == 1){
+    }else if(obj.length == 1){
         document.getElementById("sparqlBuilderPlural").innerHTML = "";
     }
 
-    if(obj['paths'].length <= 10){
-        viewnum = obj['paths'].length;
+    if(obj.length <= 10){
+        viewnum = obj.length;
         document.getElementById("sparqlBuilderViewall").style.display = "none";
     }else if(this.pathlimit == 10){
@@ -741,9 +741,9 @@
         document.getElementById("sparqlBuilderViewall").style.display = "block";
     }else{
-        viewnum = obj['paths'].length;
+        viewnum = obj.length;
         document.getElementById("sparqlBuilderViewall").style.display = "none";
     }
 
-    document.getElementById("sparqlBuilderPathnum").innerHTML = obj['paths'].length;
+    document.getElementById("sparqlBuilderPathnum").innerHTML = obj.length;
     document.getElementById("sparqlBuilderResultmessage").style.display = "block";
 
@@ -752,5 +752,5 @@
         if(i == 0){
             // 蛻晏屓縺縺代Ν繝ｼ繝医ヮ繝ｼ繝峨ｒ繝励ャ繧ｷ繝･
-            ret['nodes'].push({'name': obj['paths'][0]['startClassLabel'], 'uri': obj['paths'][0]['startClassURI'], 'group': 0, 'x':50, 'y':50, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#d0a36a'});
+            ret['nodes'].push({'name': obj[0]['label'], 'uri': obj[0]['startClass'], 'group': 0, 'x':50, 'y':50, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#d0a36a'});
         }
         // 蜈医↓source縺ｫ0�医Ν繝ｼ繝茨ｼ峨ｒ莉｣蜈･
@@ -760,8 +760,8 @@
 
         // classLinks縺ｮ謨ｰ縺縺醍ｹｰ繧願ｿ斐＠縺ｪ縺後ｉ
-        for(var j = 0;j < obj['paths'][i]['classLinks'].length; j++){
+        for(var j = 0;j < obj[i]['classLinks'].length; j++){
 
             // 繝ｪ繝ｳ繧ｯ縺ｮ蜷榊燕繧旦RL譛ｫ蟆ｾ縺九ｉ蜿門ｾ�
-            var propertytext = obj['paths'][i]['classLinks'][j]['propertyURI'];
+            var propertytext = obj[i]['classLinks'][j]['predicate'];
             var propertysplit1 = propertytext.split("/");
             var propertysplit2 = propertysplit1[propertysplit1.length - 1];
@@ -780,5 +780,5 @@
                 for(var k = 0; k < ret['nodes'].length; k++){
                     // 蜷碁嚴螻､縺九▽蜷後§蜷榊燕縺ｮ繧ゅ�縺後≠縺｣縺溘ｉtargets驟榊�縺ｫ逡ｪ蜿ｷ繧定ｿｽ蜉
-                    if(ret['nodes'][k]['group'] == (j+1) && obj['paths'][i]['classLinks'][j]['linkedClassURI'] == ret['nodes'][k]['uri']){
+                    if(ret['nodes'][k]['group'] == (j+1) && obj[i]['classLinks'][j]['linkedClass'] == ret['nodes'][k]['uri']){
                         targets.push(k);
                     }
@@ -792,5 +792,5 @@
                         for(var m = 0; m < ret['links'].length; m++){
                             // 縺ゅ▲縺溷ｴ蜷井ｻ雁屓縺ｮ繧ゅ�縺ｯ霑ｽ蜉縺帙★source繧呈峩譁ｰ縺励※谺｡縺ｸ
-                            if(ret['links'][m]['source'] == source && ret['links'][m]['target'] == targets[l] && ret['links'][m]['uri'] == obj['paths'][i]['classLinks'][j]['propertyURI'] && !isCommonNow){
+                            if(ret['links'][m]['source'] == source && ret['links'][m]['target'] == targets[l] && ret['links'][m]['uri'] == obj[i]['classLinks'][j]['propertyURI'] && !isCommonNow){
                                 // 蜈ｱ騾壹Ν繝ｼ繝医ヵ繝ｩ繧ｰ繧偵が繝ｳ
                                 isCommonNow = true;
@@ -803,6 +803,6 @@
                     if(!isCommonNow){
                         isCommon = false;
-                        ret['nodes'].push({'name': obj['paths'][i]['classLinks'][j]['nodeLabel'], 'uri': obj['paths'][i]['classLinks'][j]['linkedClassURI'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
-                        ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj['paths'][i]['classLinks'][j]['propertyURI'], 'view' : 'no'});
+                        ret['nodes'].push({'name': obj[i]['classLinks'][j]['label'], 'uri': obj[i]['classLinks'][j]['linkedClass'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
+                        ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj[i]['classLinks'][j]['predicate'], 'view' : 'no'});
                         source = ret['nodes'].length - 1;
                     }
@@ -812,17 +812,17 @@
 
                     isCommon = false;
-                    ret['nodes'].push({'name': obj['paths'][i]['classLinks'][j]['nodeLabel'], 'uri': obj['paths'][i]['classLinks'][j]['linkedClassURI'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
-                    ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj['paths'][i]['classLinks'][j]['propertyURI'], 'view' : 'no'});
+                    ret['nodes'].push({'name': obj[i]['classLinks'][j]['label'], 'uri': obj[i]['classLinks'][j]['linkedClass'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
+                    ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj[i]['classLinks'][j]['predicate'], 'view' : 'no'});
                     source = ret['nodes'].length - 1;
                 }
             // 譌｢縺ｫ蜈ｱ騾壹Ν繝ｼ繝医〒縺ｪ縺�↑繧画眠隕剰ｿｽ蜉縺励※谺｡縺ｸ
             }else{
-                ret['nodes'].push({'name': obj['paths'][i]['classLinks'][j]['nodeLabel'], 'uri': obj['paths'][i]['classLinks'][j]['linkedClassURI'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
-                ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj['paths'][i]['classLinks'][j]['propertyURI'], 'view' : 'no'});
+                ret['nodes'].push({'name': obj[i]['classLinks'][j]['label'], 'uri': obj[i]['classLinks'][j]['linkedClass'], 'group': (j+1), 'x':0, 'y':0, 'dy':0, 'nodeid':ret['nodes'].length, 'view' : 'no', 'path': 'notend', 'nodecolor': '#cccccc'});
+                ret['links'].push({'source':source, 'target':ret['nodes'].length - 1, 'value':5, 'property': propertytext, 'uri': obj[i]['classLinks'][j]['predicate'], 'view' : 'no'});
                 source = ret['nodes'].length - 1;
             }
 
         }
-        ret['nodes'][ret['nodes'].length - 1]['path'] = obj['paths'][i];
+        ret['nodes'][ret['nodes'].length - 1]['path'] = obj[i];
         ret['nodes'][ret['nodes'].length - 1]['nodecolor'] = '#8cddc0';
         this.PATHNUM++;
