diff --git a/airPane.js b/airPane.js index a94051cd..76b3cbac 100644 --- a/airPane.js +++ b/airPane.js @@ -257,14 +257,14 @@ airPane.render = function(subject, myDocument) { dump(obj.elements[i]); dump("\n"); - if (obj.elements[i].termType == 'symbol') { + if (obj.elements[i].termType == 'NamedNode') { var anchor = myDocument.createElement('a'); anchor.setAttribute('href', obj.elements[i].uri); anchor.appendChild(myDocument.createTextNode(UI.utils.label(obj.elements[i]))); //anchor.appendChild(myDocument.createTextNode(obj.elements[i])); divDescription.appendChild(anchor); } - else if (obj.elements[i].termType == 'literal') { + else if (obj.elements[i].termType == 'Literal') { if (obj.elements[i].value != undefined) divDescription.appendChild(myDocument.createTextNode(obj.elements[i].value)); } @@ -321,7 +321,7 @@ airPane.render = function(subject, myDocument) { //This is a hack to fix the rule appearing instead of the bnode containing the description correctCurrentRule = ""; for (var i=0; i< currentRule.length; i++){ - if (currentRule[i].subject.termType == 'bnode'){ + if (currentRule[i].subject.termType == 'BlankNode'){ correctCurrentRule = currentRule[i].subject; break; } @@ -342,7 +342,7 @@ airPane.render = function(subject, myDocument) { divPremises.appendChild(statementsAsTables(currentRuleSubExpr[i].object.statements, myDocument)); formulaFound = true; } - else if (currentRuleSubExpr[i].object.termType == 'bnode'){ + else if (currentRuleSubExpr[i].object.termType == 'BlankNode'){ bnodeFound = true; } @@ -462,7 +462,7 @@ airPane.render = function(subject, myDocument) { } for (var j=0; j= 0) ? address.slice(index + 7) : address; diff --git a/outline/userInput.js b/outline/userInput.js index bad26423..fee14133 100644 --- a/outline/userInput.js +++ b/outline/userInput.js @@ -152,7 +152,7 @@ module.exports = function UserInput(outline){ // Called when a selected cell is clicked again Click: function Click(e){ var target=UI.utils.getTarget(e); - if (UI.utils.getTerm(target).termType != 'literal') return; + if (UI.utils.getTerm(target).termType != 'Literal') return; this.literalModification(target); //this prevents the generated inputbox to be clicked again e.preventDefault(); @@ -278,7 +278,7 @@ module.exports = function UserInput(outline){ //ignore clicking trNode.firstChild (be careful for
or ) //if (e.type!='keypress'&&target!=tdNode && UI.utils.ancestor(target,'TD')!=tdNode) return; - if (obj.termType== 'literal'){ + if (obj.termType== 'Literal'){ tdNode.removeChild(tdNode.firstChild); //remove the text if (obj.value.match('\n')){//match a line feed and require