@@ -423,11 +423,11 @@ module.exports = function renderTableViewPane (doc, options) {
423423
424424 this . checkValue = function ( term ) {
425425 var termType = term . termType
426- if ( this . possiblyLiteral && termType != 'literal ' && termType != 'symbol ' ) {
426+ if ( this . possiblyLiteral && termType != 'Literal ' && termType != 'NamedNode ' ) {
427427 this . possiblyNumber = false
428428 this . possiblyLiteral = false
429429 } else if ( this . possiblyNumber ) {
430- if ( termType != 'literal ' ) {
430+ if ( termType != 'Literal ' ) {
431431 this . possiblyNumber = false
432432 } else {
433433 var literalValue = term . value
@@ -475,7 +475,7 @@ module.exports = function renderTableViewPane (doc, options) {
475475 this . inverse = predicate
476476 this . constraints = this . constraints . concat (
477477 kb . each ( predicate , UI . ns . rdfs ( 'domain' ) ) )
478- if ( predicate . sameTerm ( ns . rdfs ( 'subClassOf' ) ) && ( other . termType == 'symbol ' ) ) {
478+ if ( predicate . sameTerm ( ns . rdfs ( 'subClassOf' ) ) && ( other . termType == 'NamedNode ' ) ) {
479479 this . superClass = other
480480 this . alternatives = kb . each ( undefined , ns . rdfs ( 'subClassOf' ) , other )
481481 }
@@ -679,7 +679,7 @@ module.exports = function renderTableViewPane (doc, options) {
679679 for ( var i = 0 ; i < subjectList . length ; ++ i ) {
680680 var type = subjectList [ i ] . object
681681
682- if ( type . termType != 'symbol ' ) { // @@ no bnodes?
682+ if ( type . termType != 'NamedNode ' ) { // @@ no bnodes?
683683 continue
684684 }
685685
@@ -937,9 +937,9 @@ module.exports = function renderTableViewPane (doc, options) {
937937 function literalSort ( rows , column , reverse ) {
938938 function literalToString ( colValue ) {
939939 if ( colValue != null ) {
940- if ( colValue . termType == 'literal ' ) {
940+ if ( colValue . termType == 'Literal ' ) {
941941 return colValue . value . toLowerCase ( )
942- } else if ( colValue . termType == 'symbol ' ) {
942+ } else if ( colValue . termType == 'NamedNode ' ) {
943943 return UI . utils . label ( colValue ) . toLowerCase ( )
944944 }
945945 return colValue . value . toLowerCase ( )
@@ -1002,9 +1002,9 @@ module.exports = function renderTableViewPane (doc, options) {
10021002 } else {
10031003 var literalValue
10041004
1005- if ( colValue . termType == 'literal ' ) {
1005+ if ( colValue . termType == 'Literal ' ) {
10061006 literalValue = colValue . value
1007- } else if ( colValue . termType == 'symbol ' ) {
1007+ } else if ( colValue . termType == 'NamedNode ' ) {
10081008 literalValue = UI . utils . label ( colValue )
10091009 } else {
10101010 literalValue = ''
@@ -1323,7 +1323,7 @@ module.exports = function renderTableViewPane (doc, options) {
13231323
13241324 }
13251325 } else {
1326- if ( obj . termType == 'literal ' ) {
1326+ if ( obj . termType == 'Literal ' ) {
13271327 if ( obj . datatype ) {
13281328 if ( XSD_DATE_TYPES [ obj . datatype . uri ] ) {
13291329 return doc . createTextNode ( UI . widgets . shortDate ( obj . value ) )
@@ -1335,9 +1335,9 @@ module.exports = function renderTableViewPane (doc, options) {
13351335 }
13361336 }
13371337 return doc . createTextNode ( obj . value )
1338- } else if ( obj . termType == 'symbol ' && column . isImageColumn ( ) ) {
1338+ } else if ( obj . termType == 'NamedNode ' && column . isImageColumn ( ) ) {
13391339 return renderImage ( obj )
1340- } else if ( obj . termType == 'symbol ' || obj . termType == 'bnode ' ) {
1340+ } else if ( obj . termType == 'NamedNode ' || obj . termType == 'BlankNode ' ) {
13411341 return linkToObject ( obj , hints )
13421342 } else if ( obj . termType == 'collection' ) {
13431343 var span = doc . createElement ( 'span' )
@@ -1424,9 +1424,9 @@ module.exports = function renderTableViewPane (doc, options) {
14241424 function valueInList ( value , list ) {
14251425 var key = null
14261426
1427- if ( value . termType == 'literal ' ) {
1427+ if ( value . termType == 'Literal ' ) {
14281428 key = 'value'
1429- } else if ( value . termType == 'symbol ' ) {
1429+ } else if ( value . termType == 'NamedNode ' ) {
14301430 key = 'uri'
14311431 } else {
14321432 return list . indexOf ( value ) >= 0
@@ -1620,16 +1620,16 @@ module.exports = function renderTableViewPane (doc, options) {
16201620 // If so, we can use the predicate as the predicate for the
16211621 // column used for the specified variable.
16221622
1623- if ( statement . predicate . termType == 'symbol '
1624- && statement . object . termType == 'variable ' ) {
1623+ if ( statement . predicate . termType == 'NamedNode '
1624+ && statement . object . termType == 'Variable ' ) {
16251625 var variable = statement . object . toString ( )
16261626 if ( variable in columns ) {
16271627 var column = columns [ variable ]
16281628 column . setPredicate ( statement . predicate , false , statement . subject )
16291629 }
16301630 }
1631- if ( statement . predicate . termType == 'symbol '
1632- && statement . subject . termType == 'variable ' ) {
1631+ if ( statement . predicate . termType == 'NamedNode '
1632+ && statement . subject . termType == 'Variable ' ) {
16331633 var variable = statement . subject . toString ( )
16341634 if ( variable in columns ) {
16351635 var column = columns [ variable ]
0 commit comments