Skip to content

Commit

Permalink
sparqlgraph bug fix ... but introduced this morning
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cuddihy committed Feb 1, 2021
1 parent 0712733 commit 7aa26f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions sparqlGraphWeb/sparqlGraph/js/belmont.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,6 @@ NodeItem.prototype = {
getUriValueType : function() {
return this.UriValueType;
},
getFullURIName : function() {
// return the name of the property
return this.UriConnectBy;
},
getConnected : function() {
return this.Connected;
},
Expand Down Expand Up @@ -646,6 +642,10 @@ NodeItem.prototype = {
getItemType : function () {
return "NodeItem";
},

getItemUri: function() {
return this.UriConnectBy;
},
};

/* the property item */
Expand Down Expand Up @@ -856,11 +856,6 @@ PropertyItem.prototype = {
getIsBindingReturned : function() {
return (this.isBindingReturned && this.binding != null && this.binding != "");
},

getFullURIName : function() {
// return the name of the property
return this.fullURIName;
},
getSparqlID : function() {
return this.SparqlID;
},
Expand Down Expand Up @@ -925,6 +920,10 @@ PropertyItem.prototype = {
return "PropertyItem";
},

getItemUri: function() {
return this.UriRelationship;
},

setIsMarkedForDeletion : function(markToSet) {
this.isMarkedForDeletion = markToSet;
},
Expand Down
4 changes: 2 additions & 2 deletions sparqlGraphWeb/sparqlGraph/js/nodegrouprenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ define([ // properly require.config'ed
font : edgeFont
};
edgeData.push(edge);
this.edgeCallbackData[id] = {uri: nItem.getFullURIName()};
this.edgeCallbackData[id] = {uri: nItem.getItemUri()};

// remove this edge from edgeIDsToRemove
var removeIndex = edgeIDsToRemove.indexOf(id);
Expand Down Expand Up @@ -727,7 +727,7 @@ define([ // properly require.config'ed

var height = NodegroupRenderer.VSPACE + size;
var width = NodegroupRenderer.INDENT + size + NodegroupRenderer.INDENT + this.measureTextWidth(text);
var callbackData = { y: y, type: item.getItemType(), value: item.getKeyName(), uri: item.getFullURIName() };
var callbackData = { y: y, type: item.getItemType(), value: item.getKeyName(), uri: item.getItemUri() };

return({"height":height, "width":width, "data":callbackData});
},
Expand Down

0 comments on commit 7aa26f2

Please sign in to comment.