@@ -55,7 +55,7 @@ function card(who,kb) {
5555 " OPTIONAL { ?addr contact:country ?country . } \n" +
5656 " OPTIONAL { ?addr contact:postalCode ?postcode . } \n" +
5757 " OPTIONAL { ?addr contact:street ?street . } \n" +
58- "}" ;
58+ "}"
5959
6060 var eq = $rdf . SPARQLToQuery ( query , false , kb )
6161 var onresult = function ( result ) {
@@ -75,7 +75,7 @@ function card(who,kb) {
7575 var obj = undefined
7676 var i = 0
7777 while ( ! obj && i < arguments . length ) {
78- obj = kb . any ( who , arguments [ i ++ ] ) ;
78+ obj = kb . any ( who , arguments [ i ++ ] )
7979 }
8080 return obj
8181 }
@@ -90,11 +90,11 @@ function card(who,kb) {
9090 else nam = nam . value
9191 newCard . find ( ".name" ) . text ( nam )
9292
93- var nick = findFirst ( FOAF ( 'nick' ) ) ;
93+ var nick = findFirst ( FOAF ( 'nick' ) )
9494 if ( ! nick ) { nick = "" } else nick = nick . value
9595 newCard . find ( ".nickname" ) . text ( nick )
9696
97- var mbox = kb . any ( who , FOAF ( 'mbox' ) ) ;
97+ var mbox = kb . any ( who , FOAF ( 'mbox' ) )
9898 var email_el = newCard . find ( ".email .user_info_input" )
9999 if ( mbox ) {
100100 email_el . text ( removeProtocol ( mbox . uri ) )
@@ -103,7 +103,7 @@ function card(who,kb) {
103103 email_el . hide ( )
104104 }
105105
106- var phone = kb . any ( who , FOAF ( 'phone' ) ) ;
106+ var phone = kb . any ( who , FOAF ( 'phone' ) )
107107 var phone_el = newCard . find ( ".phone .user_info_input" )
108108 if ( phone ) {
109109 phone_el . text ( removeProtocol ( phone . uri ) )
@@ -112,7 +112,7 @@ function card(who,kb) {
112112 phone_el . hide ( )
113113 }
114114
115- var bday = kb . any ( who , FOAF ( 'birthday' ) ) ;
115+ var bday = kb . any ( who , FOAF ( 'birthday' ) )
116116 if ( bday ) {
117117
118118 }
@@ -131,20 +131,20 @@ function card(who,kb) {
131131
132132
133133
134- var uri = 'http://bblfish.net/people/henry/card#me' ;
134+ var uri = 'http://bblfish.net/people/henry/card#me'
135135
136136/**
137137 * fill out the html template for the person identified by the WebID person as described in the knowledge
138138 * base kb, in column col of the explorer
139139 */
140140function friends ( person , kb , col ) {
141141 var panel = "#panel" + col
142- var friends = kb . each ( person , FOAF ( 'knows' ) ) ;
143- var i , n = friends . length , friend ;
144- var lis = "" ;
142+ var friends = kb . each ( person , FOAF ( 'knows' ) )
143+ var i , n = friends . length , friend
144+ var lis = ""
145145
146146 for ( i = 0 ; i < n ; i ++ ) {
147- friend = friends [ i ] ;
147+ friend = friends [ i ]
148148 if ( friend && friend . termType === 'NamedNode' ) { //only show people with a WebID for the moment.
149149 var name = kb . any ( friend , FOAF ( 'name' ) )
150150 if ( ! name ) {
@@ -169,22 +169,22 @@ function friends (person,kb,col) {
169169 */
170170function redraw ( webid , col ) {
171171 if ( ! col ) col = 0
172- var person = $rdf . sym ( webid ) ;
173- var indexOf = webid . indexOf ( '#' ) ;
172+ var person = $rdf . sym ( webid )
173+ var indexOf = webid . indexOf ( '#' )
174174 var docURI
175175 if ( indexOf >= 0 )
176176 docURI = webid . slice ( 0 , indexOf )
177177 else docURI = webid
178178 var kb = graphs [ docURI ]
179179 if ( ! kb ) {
180180 //if the knowledge base was not initialised fetch info from the web (if need CORS go through CORS proxy)
181- kb = graphs [ docURI ] = new $rdf . IndexedFormula ( ) ;
182- var fetch = $rdf . fetcher ( kb ) ;
181+ kb = graphs [ docURI ] = new $rdf . IndexedFormula ( )
182+ var fetch = $rdf . fetcher ( kb )
183183 fetch . nowOrWhenFetched ( docURI , undefined , function ( ok , body ) {
184184 // @@ check ok
185185 card ( person , kb )
186186 friends ( person , kb , col + 1 )
187- } ) ;
187+ } )
188188 } else { //this does not take into account ageing!
189189 card ( person , kb )
190190 friends ( person , kb , col + 1 )
0 commit comments