From d3ca0389798565f0fd125ec018c15e290ad6b4aa Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 11 May 2009 21:12:30 +0000 Subject: [PATCH] fixed domain graph applet (visible in Terminal) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5946 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- .../domaingraph/applet/domaingraph.jar | Bin 188763 -> 188849 bytes .../domaingraph/applet/domaingraph.java | 34 ++++++++++++++---- .../domaingraph/applet/domaingraph.pde | 32 ++++++++++++++--- htroot/processing/domaingraph/domaingraph.pde | 32 ++++++++++++++--- 4 files changed, 82 insertions(+), 16 deletions(-) diff --git a/htroot/processing/domaingraph/applet/domaingraph.jar b/htroot/processing/domaingraph/applet/domaingraph.jar index b3d7de50c6ce15fd1ce99e690bd0496976f94a9a..2f95b9070bc0f7152b6785302e5247e6e5771153 100755 GIT binary patch delta 6596 zcmYkBbzGBe7stmyIt4+xLqK4lAl(h48$qej(hWmeaEdS*Bql9AI;5pRIwvJ1Ehs6k zk9+iewm#~&5NoSrVo?Bae|@)7OU2$0!?6DOt;(*u^&4tT zu)kyerbH8LhLrj#AaM;8KNcJ9BqAflMH4eM5(`ap^aE%uv5;c}ExqAv`L~7+&*X0@ zQHO^qMPdesn}V7FV%He)LV#%f4JTL44j<9qaHbTu*j zjkaO(|D83rjXnQkRhj&2)o_`0p}VX(u#ovTQ|PJvzq^oan~2UzSyToxCz4uX*F1*c zCH!8q#_^m8=Qq^`V#HDW>4P~%1_i{e7rKLyukl-}Uwn#D%l;cve&N0PwrGrIO|&a` z3PTQkLiJtq7`9AkmG=_E>>(QC1b~`UX#CXy^=&ksn*iy^e`Ct8Smt^$7a$q>EEBa2 znd{v=f%)oaH}wY~Csd~&43s4e9v%@G$Ya_sq674t1Bj?@ljHH>MTDD;6VlrY625~7 ztkg)5!f>S9Uke&~l3DM{dmDVnFKL$kfRZLvxT6@Q|4d?ae2+(pngYjq^mQ00HKm+K ze`)0{r$kgd_TAg+i(H*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W_RHdvJ^llUy7esQ#(tYl<1bGf z2-I{9BOw<1e)z=D(gyn{=;l&rspWju-4U-t*8gq{@3BI5Jerp=w4c#Uu{U zZelcm-ePU)P>!{Gv)w==SJD|@P$|q3oa>2!<4kXN90VSkyGC6Ib9Y!swi(DKJJ$j^ z05@`3PiB*wl8_6P-x+pBYemOIFXJR5R=e87s*~U$oKgm~nmzabre>ao*TW~*tYl!} z|HIQc7x%%?#j+*u5&;m`>5X2B!*MyRW)D3ye=B;)S(@J zA~!p8)qKI?>aB?`4vbFrs)aY5t9<&p=f?*XxmtR$Xd}@S-*X(Y5otT*B^63JLeY%2 z3`tDUU_J9Y^!fuK@Y8rzuWt%BZw9)p``s!DFZc~O>fL0JYOuBTktp7a(_h7(tW3JJs%nPyciGA46E&o}5wjNqfhk;(89-@%wQgsD5n<>~#Z-2~{I!t$KSvE!*Tq1GCHy z$DYjgjRen@t5(G4AR+11&cxc7pJ-}Wy{8qa^`@mXP!lzQw&Z!M@R^JhnL7c-C?c}O zP-o5!-y6}-^a;MA&Z>vpW)AE)Zk{}0NBx#JFk2D!aJ)GBAo26*ZHicbf`JL`YBXa9 z7`Ikn4msQ7V^~!8$Xyr7V%P&j9eTgl`D*~UV;k($gbx5L)BYL&0zm|T|HksfSO6H# zEJy@Cl~tbw$-oIV3zCD==3io+18KpvpgE8NoJQwB@R2f%Vjd(7*R1A2N^q*3{}Xrr zmy{O%cvBYsc()fovhWPZ;ve!{1S!I`p1*{%^hY!POQnD5>MzMG|A~uR20epUIbH^7 zz)5Naqz0$N6_6&J_EtdhaN=G4(_irFpI(Mn|I{N{1N}R}w*5;DYaj!7F2OoT9Zt6E zf8Jls`kyK{>wnge-T3q5aT|Z)mN!6(XutlD{GQjsAe$f&s$b^+?jA1Se~)U|>rK#O M2D^a&195QlcK`qY diff --git a/htroot/processing/domaingraph/applet/domaingraph.java b/htroot/processing/domaingraph/applet/domaingraph.java index a8a8b588e..bc84521f5 100755 --- a/htroot/processing/domaingraph/applet/domaingraph.java +++ b/htroot/processing/domaingraph/applet/domaingraph.java @@ -1,4 +1,4 @@ -import processing.core.*; import traer.physics.*; import traer.animation.*; import processing.net.*; import java.applet.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.text.*; import java.util.*; import java.util.zip.*; import javax.sound.midi.*; import javax.sound.midi.spi.*; import javax.sound.sampled.*; import javax.sound.sampled.spi.*; import java.util.regex.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.sax.*; import javax.xml.transform.stream.*; import org.xml.sax.*; import org.xml.sax.ext.*; import org.xml.sax.helpers.*; public class domaingraph extends PApplet {// Domain visualization graph for YaCy +import processing.core.*; import traer.physics.*; import traer.animation.*; import processing.net.*; import java.applet.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.text.*; import java.util.*; import java.util.zip.*; public class domaingraph extends PApplet {// Domain visualization graph for YaCy // by Michael Christen // // this applet uses code and the physics engine from @@ -96,7 +96,7 @@ public void draw() { public void initRequest(boolean update) { myClient = new Client(this, host, port); - myClient.write((update) ? "GET /xml/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); + myClient.write((update) ? "GET /api/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); myClient.write("Host: localhost\n\n"); } @@ -111,8 +111,31 @@ public void processRequestResponse(int steps) { String line = myClient.readStringUntil((byte) 10); //println("Line: " + line); if (line == null) line = ""; else line = line.trim(); - if (line.startsWith(" + www.catb.org + oreilly.com + www.oreillynet.com + + + */ + int p = line.indexOf("= 0) { + //println("domain :" + line.substring(p + 8, line.length() - 1).trim()); + processDomain(parseProps(line.substring(p + 8, line.length() - 1).trim())); + } + p = line.indexOf("= 0) { + int q = line.indexOf(""); + if (q > 0) { + int r = line.lastIndexOf('>', q); + if (r > 0) { + String refhost = line.substring(r, q); + //println("reference:" + line.substring(p + 11, r).trim()); + processCitation(refhost, parseProps(line.substring(p + 11, r).trim())); + } + } + } lastUpdate = System.currentTimeMillis(); } else { initTime = false; @@ -135,9 +158,8 @@ public void processDomain(HashMap props) { addAttraction(h.node); } -public void processCitation(HashMap props) { +public void processCitation(String host, HashMap props) { //println("Citation: " + props.toString()); - String host = (String) props.get("host"); if (host == null) host = ""; String id = (String) props.get("id"); if (id == null) id = ""; int count = 0; try { diff --git a/htroot/processing/domaingraph/applet/domaingraph.pde b/htroot/processing/domaingraph/applet/domaingraph.pde index 8936c07a3..1dfbb495a 100755 --- a/htroot/processing/domaingraph/applet/domaingraph.pde +++ b/htroot/processing/domaingraph/applet/domaingraph.pde @@ -96,7 +96,7 @@ void draw() { void initRequest(boolean update) { myClient = new Client(this, host, port); - myClient.write((update) ? "GET /xml/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); + myClient.write((update) ? "GET /api/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); myClient.write("Host: localhost\n\n"); } @@ -111,8 +111,31 @@ void processRequestResponse(int steps) { String line = myClient.readStringUntil((byte) 10); //println("Line: " + line); if (line == null) line = ""; else line = line.trim(); - if (line.startsWith(" + www.catb.org + oreilly.com + www.oreillynet.com + + + */ + int p = line.indexOf("= 0) { + //println("domain :" + line.substring(p + 8, line.length() - 1).trim()); + processDomain(parseProps(line.substring(p + 8, line.length() - 1).trim())); + } + p = line.indexOf("= 0) { + int q = line.indexOf(""); + if (q > 0) { + int r = line.lastIndexOf('>', q); + if (r > 0) { + String refhost = line.substring(r, q); + //println("reference:" + line.substring(p + 11, r).trim()); + processCitation(refhost, parseProps(line.substring(p + 11, r).trim())); + } + } + } lastUpdate = System.currentTimeMillis(); } else { initTime = false; @@ -135,9 +158,8 @@ void processDomain(HashMap props) { addAttraction(h.node); } -void processCitation(HashMap props) { +void processCitation(String host, HashMap props) { //println("Citation: " + props.toString()); - String host = (String) props.get("host"); if (host == null) host = ""; String id = (String) props.get("id"); if (id == null) id = ""; int count = 0; try { diff --git a/htroot/processing/domaingraph/domaingraph.pde b/htroot/processing/domaingraph/domaingraph.pde index 8936c07a3..1dfbb495a 100755 --- a/htroot/processing/domaingraph/domaingraph.pde +++ b/htroot/processing/domaingraph/domaingraph.pde @@ -96,7 +96,7 @@ void draw() { void initRequest(boolean update) { myClient = new Client(this, host, port); - myClient.write((update) ? "GET /xml/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); + myClient.write((update) ? "GET /api/webstructure.xml?latest= HTTP/1.1\n" : "GET /xml/webstructure.xml HTTP/1.1\n"); myClient.write("Host: localhost\n\n"); } @@ -111,8 +111,31 @@ void processRequestResponse(int steps) { String line = myClient.readStringUntil((byte) 10); //println("Line: " + line); if (line == null) line = ""; else line = line.trim(); - if (line.startsWith(" + www.catb.org + oreilly.com + www.oreillynet.com + + + */ + int p = line.indexOf("= 0) { + //println("domain :" + line.substring(p + 8, line.length() - 1).trim()); + processDomain(parseProps(line.substring(p + 8, line.length() - 1).trim())); + } + p = line.indexOf("= 0) { + int q = line.indexOf(""); + if (q > 0) { + int r = line.lastIndexOf('>', q); + if (r > 0) { + String refhost = line.substring(r, q); + //println("reference:" + line.substring(p + 11, r).trim()); + processCitation(refhost, parseProps(line.substring(p + 11, r).trim())); + } + } + } lastUpdate = System.currentTimeMillis(); } else { initTime = false; @@ -135,9 +158,8 @@ void processDomain(HashMap props) { addAttraction(h.node); } -void processCitation(HashMap props) { +void processCitation(String host, HashMap props) { //println("Citation: " + props.toString()); - String host = (String) props.get("host"); if (host == null) host = ""; String id = (String) props.get("id"); if (id == null) id = ""; int count = 0; try {