@@ -150,7 +150,7 @@ module.exports = function(doc) {
150150 }
151151
152152 this . appendAccessIcons = function ( kb , node , obj ) {
153- if ( obj . termType != 'symbol ' ) return ;
153+ if ( obj . termType != 'NamedNode ' ) return ;
154154 var uris = kb . uris ( obj ) ;
155155 uris . sort ( ) ;
156156 var last = null ;
@@ -324,8 +324,8 @@ if (statement){
324324 }
325325
326326 //set about and put 'expand' icon
327- if ( ( obj . termType == 'symbol ' ) || ( obj . termType == 'bnode ' ) ||
328- ( obj . termType == 'literal ' && obj . value . slice && (
327+ if ( ( obj . termType == 'NamedNode ' ) || ( obj . termType == 'BlankNode ' ) ||
328+ ( obj . termType == 'Literal ' && obj . value . slice && (
329329 obj . value . slice ( 0 , 6 ) == 'ftp://' ||
330330 obj . value . slice ( 0 , 8 ) == 'https://' ||
331331 obj . value . slice ( 0 , 7 ) == 'http://' ) ) ) {
@@ -383,9 +383,9 @@ if (statement){
383383 td_p . setAttribute ( 'class' , internal ? 'pred internal' : 'pred' )
384384
385385 switch ( predicate . termType ) {
386- case 'bnode ' : //TBD
386+ case 'BlankNode ' : //TBD
387387 td_p . className = 'undetermined' ;
388- case 'symbol ' :
388+ case 'NamedNode ' :
389389 var lab = UI . utils . predicateLabelForXML ( predicate , inverse ) ;
390390 break ;
391391 case 'collection' : // some choices of predicate
@@ -1031,11 +1031,11 @@ if (statement){
10311031 this . showURI = function showURI ( about ) {
10321032 if ( about && myDocument . getElementById ( 'UserURI' ) ) {
10331033 myDocument . getElementById ( 'UserURI' ) . value =
1034- ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1034+ ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
10351035 } else if ( about && tabulator . isExtension ) {
10361036 var tabStatusBar = gBrowser . ownerDocument . getElementById ( "tabulator-display" ) ;
10371037 tabStatusBar . setAttribute ( 'style' , 'display:block' ) ;
1038- tabStatusBar . label = ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1038+ tabStatusBar . label = ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
10391039 if ( tabStatusBar . label == "" ) {
10401040 tabStatusBar . setAttribute ( 'style' , 'display:none' ) ;
10411041 } else {
@@ -1061,7 +1061,7 @@ if (statement){
10611061 var source = st . why ;
10621062 if ( source && source . uri )
10631063 sourceWidget . highlight ( source , true ) ;
1064- else if ( tabulator . isExtension && source . termType == 'bnode ' )
1064+ else if ( tabulator . isExtension && source . termType == 'BlankNode ' )
10651065 sourceWidget . highlight ( kb . sym ( tabulator . sourceURI ) , true ) ;
10661066 }
10671067 } ;
@@ -1086,7 +1086,7 @@ if (statement){
10861086
10871087 var about = UI . utils . getTerm ( node ) ; //show uri for a newly selectedTd
10881088 thisOutline . showURI ( about ) ;
1089- //if(tabulator.isExtension && about && about.termType=='symbol ') gURLBar.value = about.uri;
1089+ //if(tabulator.isExtension && about && about.termType=='NamedNode ') gURLBar.value = about.uri;
10901090 //about==null when node is a TBD
10911091
10921092 var st = node . AJAR_statement ; //show blue cross when the why of that triple is editable
@@ -1234,7 +1234,7 @@ if (statement){
12341234 function showURI ( about ) {
12351235 if ( about && myDocument . getElementById ( 'UserURI' ) ) {
12361236 myDocument . getElementById ( 'UserURI' ) . value =
1237- ( about . termType == 'symbol ' ) ? about . uri : '' ; // blank if no URI
1237+ ( about . termType == 'NamedNode ' ) ? about . uri : '' ; // blank if no URI
12381238 }
12391239 }
12401240
@@ -1779,7 +1779,7 @@ if (statement){
17791779 if ( subj_uri && ! immediate ) {
17801780 var doc = UI . rdf . uri . docpart ( subj_uri ) ;
17811781 //dump('@@@@ Fetching before expanding ' + subj_uri + ' type ' + typeof subj_uri + '\n');
1782- if ( subject . termType == 'bnode ' ) alert ( '@@@@@ bnode ' + subj_uri )
1782+ if ( subject . termType == 'BlankNode ' ) alert ( '@@@@@ bnode ' + subj_uri )
17831783 // Wait till at least the main URI is loaded before expanding:
17841784 sf . nowOrWhenFetched ( doc , undefined , function ( ok , body ) {
17851785 if ( ok ) {
@@ -2006,7 +2006,7 @@ if (statement){
20062006 //UI.log.debug("entered VIEWAS_boring_default...");
20072007 var rep ; //representation in html
20082008
2009- if ( obj . termType == 'literal ' )
2009+ if ( obj . termType == 'Literal ' )
20102010 {
20112011 var styles = { 'integer' : 'text-align: right;' ,
20122012 'decimal' : 'text-align: ".";' ,
@@ -2023,12 +2023,12 @@ if (statement){
20232023 }
20242024 rep . setAttribute ( 'style' , style ? style : 'white-space: pre-wrap;' ) ;
20252025
2026- } else if ( obj . termType == 'symbol ' || obj . termType == 'bnode ' ) {
2026+ } else if ( obj . termType == 'NamedNode ' || obj . termType == 'BlankNode ' ) {
20272027 rep = myDocument . createElement ( 'span' ) ;
20282028 rep . setAttribute ( 'about' , obj . toNT ( ) ) ;
20292029 thisOutline . appendAccessIcons ( kb , rep , obj ) ;
20302030
2031- if ( obj . termType == 'symbol ' ) {
2031+ if ( obj . termType == 'NamedNode ' ) {
20322032 if ( obj . uri . slice ( 0 , 4 ) == 'tel:' ) {
20332033 var num = obj . uri . slice ( 4 ) ;
20342034 var anchor = myDocument . createElement ( 'a' ) ;
@@ -2088,7 +2088,7 @@ if (statement){
20882088
20892089 // FOAF mboxs must NOT be literals -- must be mailto: URIs.
20902090
2091- var address = ( obj . termType == 'symbol ' ) ? obj . uri : obj . value ; // this way for now
2091+ var address = ( obj . termType == 'NamedNode ' ) ? obj . uri : obj . value ; // this way for now
20922092 if ( ! address ) return VIEWAS_boring_default ( obj )
20932093 var index = address . indexOf ( 'mailto:' ) ;
20942094 address = ( index >= 0 ) ? address . slice ( index + 7 ) : address ;
0 commit comments