@@ -151,7 +151,7 @@ module.exports = function(doc) {
151151 }
152152
153153 this . appendAccessIcons = function ( kb , node , obj ) {
154- if ( obj . termType != 'symbol ' ) return ;
154+ if ( obj . termType != 'NamedNode ' ) return ;
155155 var uris = kb . uris ( obj ) ;
156156 uris . sort ( ) ;
157157 var last = null ;
@@ -325,8 +325,8 @@ if (statement){
325325 }
326326
327327 //set about and put 'expand' icon
328- if ( ( obj . termType == 'symbol ' ) || ( obj . termType == 'bnode ' ) ||
329- ( obj . termType == 'literal ' && obj . value . slice && (
328+ if ( ( obj . termType == 'NamedNode ' ) || ( obj . termType == 'BlankNode ' ) ||
329+ ( obj . termType == 'Literal ' && obj . value . slice && (
330330 obj . value . slice ( 0 , 6 ) == 'ftp://' ||
331331 obj . value . slice ( 0 , 8 ) == 'https://' ||
332332 obj . value . slice ( 0 , 7 ) == 'http://' ) ) ) {
@@ -384,9 +384,9 @@ if (statement){
384384 td_p . setAttribute ( 'class' , internal ? 'pred internal' : 'pred' )
385385
386386 switch ( predicate . termType ) {
387- case 'bnode ' : //TBD
387+ case 'BlankNode ' : //TBD
388388 td_p . className = 'undetermined' ;
389- case 'symbol ' :
389+ case 'NamedNode ' :
390390 var lab = UI . utils . predicateLabelForXML ( predicate , inverse ) ;
391391 break ;
392392 case 'collection' : // some choices of predicate
@@ -1032,11 +1032,11 @@ if (statement){
10321032 this . showURI = function showURI ( about ) {
10331033 if ( about && myDocument . getElementById ( 'UserURI' ) ) {
10341034 myDocument . getElementById ( 'UserURI' ) . value =
1035- ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1035+ ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
10361036 } else if ( about && tabulator . isExtension ) {
10371037 var tabStatusBar = gBrowser . ownerDocument . getElementById ( "tabulator-display" ) ;
10381038 tabStatusBar . setAttribute ( 'style' , 'display:block' ) ;
1039- tabStatusBar . label = ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1039+ tabStatusBar . label = ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
10401040 if ( tabStatusBar . label == "" ) {
10411041 tabStatusBar . setAttribute ( 'style' , 'display:none' ) ;
10421042 } else {
@@ -1062,7 +1062,7 @@ if (statement){
10621062 var source = st . why ;
10631063 if ( source && source . uri )
10641064 sourceWidget . highlight ( source , true ) ;
1065- else if ( tabulator . isExtension && source . termType == 'bnode ' )
1065+ else if ( tabulator . isExtension && source . termType == 'BlankNode ' )
10661066 sourceWidget . highlight ( kb . sym ( tabulator . sourceURI ) , true ) ;
10671067 }
10681068 } ;
@@ -1087,7 +1087,7 @@ if (statement){
10871087
10881088 var about = UI . utils . getTerm ( node ) ; //show uri for a newly selectedTd
10891089 thisOutline . showURI ( about ) ;
1090- //if(tabulator.isExtension && about && about.termType=='symbol ') gURLBar.value = about.uri;
1090+ //if(tabulator.isExtension && about && about.termType=='NamedNode ') gURLBar.value = about.uri;
10911091 //about==null when node is a TBD
10921092
10931093 var st = node . AJAR_statement ; //show blue cross when the why of that triple is editable
@@ -1235,7 +1235,7 @@ if (statement){
12351235 function showURI ( about ) {
12361236 if ( about && myDocument . getElementById ( 'UserURI' ) ) {
12371237 myDocument . getElementById ( 'UserURI' ) . value =
1238- ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1238+ ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
12391239 }
12401240 }
12411241
@@ -1780,7 +1780,7 @@ if (statement){
17801780 if ( subj_uri && ! immediate ) {
17811781 var doc = UI . rdf . uri . docpart ( subj_uri ) ;
17821782 //dump('@@@@ Fetching before expanding ' + subj_uri + ' type ' + typeof subj_uri + '\n');
1783- if ( subject . termType == 'bnode ' ) alert ( '@@@@@ bnode ' + subj_uri )
1783+ if ( subject . termType == 'BlankNode ' ) alert ( '@@@@@ bnode ' + subj_uri )
17841784 // Wait till at least the main URI is loaded before expanding:
17851785 sf . nowOrWhenFetched ( doc , undefined , function ( ok , body ) {
17861786 if ( ok ) {
@@ -2007,7 +2007,7 @@ if (statement){
20072007 //UI.log.debug("entered VIEWAS_boring_default...");
20082008 var rep ; //representation in html
20092009
2010- if ( obj . termType == 'literal ' )
2010+ if ( obj . termType == 'Literal ' )
20112011 {
20122012 var styles = { 'integer' : 'text-align: right;' ,
20132013 'decimal' : 'text-align: ".";' ,
@@ -2024,12 +2024,12 @@ if (statement){
20242024 }
20252025 rep . setAttribute ( 'style' , style ? style : 'white-space: pre-wrap;' ) ;
20262026
2027- } else if ( obj . termType == 'symbol ' || obj . termType == 'bnode ' ) {
2027+ } else if ( obj . termType == 'NamedNode ' || obj . termType == 'BlankNode ' ) {
20282028 rep = myDocument . createElement ( 'span' ) ;
20292029 rep . setAttribute ( 'about' , obj . toNT ( ) ) ;
20302030 thisOutline . appendAccessIcons ( kb , rep , obj ) ;
20312031
2032- if ( obj . termType == 'symbol ' ) {
2032+ if ( obj . termType == 'NamedNode ' ) {
20332033 if ( obj . uri . slice ( 0 , 4 ) == 'tel:' ) {
20342034 var num = obj . uri . slice ( 4 ) ;
20352035 var anchor = myDocument . createElement ( 'a' ) ;
@@ -2089,7 +2089,7 @@ if (statement){
20892089
20902090 // FOAF mboxs must NOT be literals -- must be mailto: URIs.
20912091
2092- var address = ( obj . termType == 'symbol ' ) ? obj . uri : obj . value ; // this way for now
2092+ var address = ( obj . termType == 'NamedNode ' ) ? obj . uri : obj . value ; // this way for now
20932093 if ( ! address ) return VIEWAS_boring_default ( obj )
20942094 var index = address . indexOf ( 'mailto:' ) ;
20952095 address = ( index >= 0 ) ? address . slice ( index + 7 ) : address ;
0 commit comments