Skip to content

Instantly share code, notes, and snippets.

@tingletech
Created September 11, 2010 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tingletech/574758 to your computer and use it in GitHub Desktop.
Save tingletech/574758 to your computer and use it in GitHub Desktop.
// javascript to hold network link data for historical social network analysis
// nodes are IDed by MD5 checksum of AACR2 identity from EAC record
var nodes = { // protvis wants an array
'645cd6b85bb02f52240529b292e664b3' : {
identity: 'Washington, George, 1732-1799.',
birth: '1732, Feb. 22', // use julian dates?
death: '1799, Dec. 14'
// any other info needed on the node
},
'420154950a48aa9bb873d2797e0915af' : {
identity: 'Franklin, Benjamin, 1706-1790.',
birth: '1706, Jan. 17',
death: '1790, Apr. 17'
// any other info needed on the node
}
// this would continue for the entire EAC record
};
var links = [
{
from: '420154950a48aa9bb873d2797e0915af',
to: '645cd6b85bb02f52240529b292e664b3',
role: 'correspondedWith' // use URL?
// some sort of value for strength might be interesting
}
// this would continue to show all the related CPF records
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment