Howdy Black Star! Aren't you Johnny-on-the-Spot! We saw this post 12 hours ago, but did not have time to reply. However, we did get time to put up our prototypes. And, you already found them without us even having to point them out. You are one sharp cookie!
We see you are doing the same thing we started doing. We never finished it because of a perception of little interest. Also, we started doing the math and there is a
lot of data involved here. We don't know if you saw our little snapshot at the bottom of
The Oracle Of NationStates page, so we will repeat it. There are 6,988 Regions in The World with an Embassy as of Tuesday, March 26, 2013. And, There are 42,999 Relationships amongst the World's network of Embassies as of Tuesday, March 26, 2013. And, the Region of The World with the most Embassies is Guardian Network with 1,000 as of Tuesday, March 26, 2013. We were trying to make it fast and crunch the daily regional feed into a JSON structure because JSON is supposed to be fast. 43,000 nodes, even in JSON, is probably
not fast. And that is just with nation names. We were trying to make it fancy with population counts, Factbook Entries, Flags, etc. It got seriously large, seriously fast. We are not sure browsers can even handle it. So, we tried to do an extract. But, thanks to Embassy-Whores like
Guardian Network, virtually everyone is related to everyone. So, you cannot take a slice. It is everybody or nothing. There are exceptions amongst the onesies, but those are not really what either of us want.
So... Well, it is a lot of data. We are not sure our plan can handle it. We are not sure your plan can handle it. We can try and see. We can also post a link to the data we generate daily. However, before we go through all that, maybe you should try some sample data to see if you can deal with it. Here is the JSON we produce
here. Aside from that, we are not sure how much help we can be. We could probably generate some pure XML, but that would take some work. And what more would it look like?
Probably just like the daily feed. You can extract that easily enough:
- Code: Select all
<nodes>
<node>
<NAME>Texas</NAME>
<EMBASSIES>
<EMBASSY>Wysteria</EMBASSY>
<EMBASSY>The Heartland</EMBASSY>
<EMBASSY>10000 Islands</EMBASSY>
<EMBASSY>Yggdrasil</EMBASSY>
<EMBASSY>Antarctic Oasis</EMBASSY>
<EMBASSY>Monkey Island</EMBASSY>
<EMBASSY>Liberty Alliance</EMBASSY>
<EMBASSY>North Pacific</EMBASSY>
<EMBASSY>The Black Market</EMBASSY>
<EMBASSY>Ulthar</EMBASSY>
<EMBASSY>Kittens Sanctuary</EMBASSY>
<EMBASSY>Canada</EMBASSY>
<EMBASSY>Nasicournia</EMBASSY>
<EMBASSY>The Exodus</EMBASSY>
<EMBASSY type="invited">Gracemeria</EMBASSY>
<EMBASSY type="invited">Houston</EMBASSY>
<EMBASSY type="invited">San Antonio</EMBASSY>
<EMBASSY type="invited">Turkish Islands</EMBASSY>
</EMBASSIES>
</node>
</nodes>
Those are some thoughts.
Big Tex