<% xmlhttp=new ActiveXObject("MSXML2.ServerXMLHTTP") RDF_NS="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdfNS="" GlobalID=0 inTriples=new Array() Namespaces=new Array() xml=null str='' function GetTriples(url) { inTriples=new Array() xmlhttp.open("GET", url,false,'',''); xmlhttp.send(null) xml=xmlhttp.responseXML try { getNamespaces(xml.documentElement) createPredicates(xml.documentElement.childNodes) } catch (e) { try { var xml = new ActiveXObject ("Microsoft.XMLDOM"); xml.async=false xml.validateOnParse=false xml.resolveExternals=false xmltxt=xmlhttp.responseText xml.loadXML(xmltxt.replace(/SQL.*/i,'')) } catch (e) { Response.Write("Sorry, I can't parse that as XML") } try { getNamespaces(xml.selectSingleNode('//rdf:RDF')) getNamespaces(xml.selectSingleNode('//rdf:RDF').firstChild) createPredicates(xml.selectSingleNode('//rdf:RDF').childNodes) } catch (E) { Response.ContentType="text/plain" Response.Write("Sorry, I can't parse that as XML+RDF - probably my fault I'm pretty dumb.") Response.Write("\n\n\n"+xmltxt) inTriples=[] } } return inTriples } function outputNTriples() { str='' for (i=0;i' for (j=0;j' strend+=''+Gpj.name.split('@')[0].substr(7)+'('+Gpj.codepicted.length+')'+'' } str+='' strend+=''+i+'' twidth=twidth+gipl8+30 theight+=Math.random()*30+5 if (gipl8>maxheight) maxheight=gipl8 if (twidth>maxwidth) {twidth=50;theight+=maxheight-150;maxheight=0;} } } PersonCount=0 for (i in Person) { PI=Person[i] if (typeof PI!='function') { PersonCount++ for (j=0;jPeople : '+PersonCount+'knows : '+itl+'' function drawLine(a,b) { return '' } Response.ContentType='image/svg+xml' str='\n\n'+str+strend+'' Response.Write(str) try { fso=Server.CreateObject("Scripting.FileSystemObject") f=fso.createTextFile(Server.MapPath("/codepiction/")+'/knows-'+date); f.WriteLine(str) f.close() str3="c:\\gzip.exe -f -9 -S .svg "+Server.MapPath("/codepiction/")+'/knows-'+date WSH=Server.CreateObject("WScript.Shell") WSH.Run(str3,0,true) } catch (e) {} } %>