History of thurman_office
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] New entry: thurman_office 18c4754
diff --git a/entries/thurman_office/__init__.py b/entries/thurman_office/__init__.py
new file mode 100644
index 0000000..c7cc191
--- /dev/null
+++ b/entries/thurman_office/__init__.py
@@ -0,0 +1,57 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = 'Thurman office networks (1979)'
+description = """Relations among 15 employees of the overseas office of a large international corporation, observed by B. Thurman during 16 months, in which two major disputes erupted in this subgroup. Thurman analyzed the outcome of the disputes in terms of the network of formal and informal associations among those involved. The data were distributed in UCINET format (from the UCINET data collection of S. P. Borgatti, M. G. Everett and L. C. Freeman) on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+
+- `formal`: the formal organizational chart (THURA), as directed edges between employees (from the row to the column of the source matrix). The direction is not documented, but the edges appear to go from a superior to a subordinate (e.g. the president has an edge to every other employee).
+- `multiplex`: the employees linked by multiplex (informal) ties (THURM).
+
+The networks have the following properties:
+
+- Nodes: `name`, the (pseudonymous) name or position of the employee."""
+tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20020312110633/http://vlado.fmf.uni-lj.si/pub/networks/data/UciNet/UciData.htm'
+citation = [('B. Thurman, "In the office: Networks and coalitions." Social Networks 2(1), 47-63 (1979)', 'https://doi.org/10.1016/0378-8733(79)90010-8'),
+ ('S. P. Borgatti, M. G. Everett, L. C. Freeman, "UCINET for Windows: Software for Social Network Analysis." Analytic Technologies, Harvard, MA (2002)', 'https://web.archive.org/web/20020312110633/http://vlado.fmf.uni-lj.si/pub/networks/data/UciNet/UciData.htm')]
+icon_hash = '590beb1b62da632511877ee6'
+upstream_license = None
+# The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
+# files are obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/20070102222231id_/http://vlado.fmf.uni-lj.si/pub/networks/data/Ucinet'
+files = [('thuroff.dat', 'formal', None),
+ ('thuroff.dat', 'multiplex', None)]
+
+def fetch_upstream(force=False):
+ return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+ force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ name = __name__.split(".")[-1]
+ with open_upstream_file(name, "thuroff.dat", "rb") as f:
+ d = read_dl(f)
+ labels, Ms = d["rows"], d["data"]
+ if alts is None or "formal" in alts:
+ yield "formal", adjacency_graph(Ms[0], directed=True, labels=labels)
+ if alts is None or "multiplex" in alts:
+ yield "multiplex", adjacency_graph(Ms[1], directed=False, labels=labels)