extract a social network from a history openstreetmap file http://planet.openstreetmap.org/planet/full-history/
1 - download a history planet file http://planet.openstreetmap.org/planet/full-history/
2 - extract the area with osm-history-splitter
3 - create the file osmsna.style with this informations
node,way osm_user text
node,way osm_uid int8
node,way osm_version int8
node,way osm_timestamp text
4 - import the data in postgis
osm2pgsql -P 5432 -U dbuser -W -d dbname -u -m -x -k -S /path/of/osmsna.style file_history.osh
5 - create the graph
python netsosmers.py -s localhost -u dbuser -w dbpassword -d dbname -i -o graphfile -g gexf
note: the "-i" calculate the interactions between user (this need time)
6 - analyze the graph with a tool like gephi
gefx file of the openstreetmap network of Trento - Italy
https://github.com/napo/osmsna/raw/master/examples/trento.gexf
viewer of the network in Trento - Italy
image of the network in Trento - Italy
http://www.slideshare.net/napo/the-collaboration-network-in-osm-the-case-of-italy
the data come from OpenStreetMap for this reason the datasets produced from this software are licensed as ODbL - http://opendatacommons.org/licenses/odbl/