Skip to content

Commit

Permalink
First commit in the new repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Deschamps committed Apr 10, 2017
0 parents commit 3725046
Show file tree
Hide file tree
Showing 22 changed files with 1,218 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# The Descriptor Project

The Descriptor project is a subset of WALK with the goal of describing
the partnership's collective resources, providing some pathfinders to
help the historians of the future interpret what is (and is not) going
on in the data. This includes two main methods.

## Descriptive historical analysis

The goal of this section is to describe the collection in a more detailed
way than previously. The reality is that many of the collections include
vast amounts of data on a broad topic that includes resources that have
gained and lost prominence over time. Further, sometimes a technical issue
results in the loss of data that may influence analysis.

## Network Analysis

Social network analysis is a familiar way that researchers try to uncover
trends in the dynamics of a web-system. Unfortunately, the networks for
Web Archives can be so large as to limit the ability for valid interpretation
of the data. We are going to attempt to provide some guidance using common
filters and visualisation techniques to highlight some of the most important
aspects of the networks.

In addition to the analysis of the datasets, we are also looking to build
methods for analyzing WARCbase outputs, that can later be included in the
walk-compare tool, which currently focusses on bivariate rather than
univariate analysis of networks..
6 changes: 6 additions & 0 deletions descriptor/.ipynb_checkpoints/Create_Graph-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
381 changes: 381 additions & 0 deletions descriptor/.ipynb_checkpoints/PopulateSeedsCPP-checkpoint.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
169 changes: 169 additions & 0 deletions descriptor/Create_Graph.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Preparing Network Graphs and Descriptive Data\n",
"\n",
"This task involves a detailed social network analysis of your graphs. This process will include:\n",
"\n",
"- Inputting the network file into this notebook\n",
"- Saving the network as a standard .graphml file that can be used with Gephi and other tools\n",
"- Producing a set of descriptive data for the network itself.\n",
"- An attractive network graph, highlighting important trait or traits of the network."
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"ename": "ImportError",
"evalue": "No module named matplotlib",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-23-42bd9f3fb1d8>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mmatplotlib\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmagic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34mu'matplotlib inline'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mpylab\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mcairocffi\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mcairo\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0migraph\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mImportError\u001b[0m: No module named matplotlib"
]
}
],
"source": [
"import matplotlib\n",
"%matplotlib inline\n",
"import pylab\n",
"import cairocffi as cairo\n",
"import igraph\n",
"print (cairo.Surface)\n",
"\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"g = igraph.Graph.Full(3)\n",
"g.write(\"g.graphml\", \"graphml\")"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = igraph.plot(g)\n"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['__class__',\n",
" '__delattr__',\n",
" '__dict__',\n",
" '__doc__',\n",
" '__format__',\n",
" '__getattribute__',\n",
" '__hash__',\n",
" '__init__',\n",
" '__module__',\n",
" '__new__',\n",
" '__reduce__',\n",
" '__reduce_ex__',\n",
" '__repr__',\n",
" '__setattr__',\n",
" '__sizeof__',\n",
" '__str__',\n",
" '__subclasshook__',\n",
" '__weakref__',\n",
" '_background',\n",
" '_ctx',\n",
" '_filename',\n",
" '_is_dirty',\n",
" '_need_tmpfile',\n",
" '_objects',\n",
" '_palette',\n",
" '_surface',\n",
" '_surface_was_created',\n",
" '_windows_hacks',\n",
" 'add',\n",
" 'background',\n",
" 'bbox',\n",
" 'bounding_box',\n",
" 'height',\n",
" 'mark_dirty',\n",
" 'redraw',\n",
" 'remove',\n",
" 'save',\n",
" 'show',\n",
" 'surface',\n",
" 'width']"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dir(x)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit 3725046

Please sign in to comment.