logo Netzschleuder network catalog, repository, and centrifuge

History of bks_interactions

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] Remove superfluous details of the upstream distribution from the descriptions by Tiago de Paula Peixoto dc07aa0
The descriptions mentioned incidental details of how the upstream data
are made available: the file formats (CSV, JSON, XML, GEXF, SBML, HIF,
Pajek, UCINET, ...), file names, where the files were published or
obtained from (Zenodo, figshare, Kaggle, the Pajek datasets page, the
Internet Archive), and that some networks are only available in the gt
format. These are left out; caveats about the data themselves are kept,
referring to "the data" instead of "the file". The description of
sp_baboons now lists its properties instead of the upstream columns,
and says that events without a recipient are left out.
diff --git a/entries/bks_interactions/__init__.py b/entries/bks_interactions/__init__.py
index a8ac33c..5a92555 100644
--- a/entries/bks_interactions/__init__.py
+++ b/entries/bks_interactions/__init__.py
@@ -19,7 +19,7 @@
 from .. import *
 
 title = 'Bernard-Killworth-Sailer informant accuracy networks (1976-1980)'
-description = """Social interactions in bounded groups, collected by H. R. Bernard, P. D. Killworth and L. Sailer in their studies of the accuracy of informants' recall of their interactions. For each group, they obtained a behavioral measure of the interactions among all actors, and rankings based on the subjects' memory of those interactions (cognitive data). 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.
+description = """Social interactions in bounded groups, collected by H. R. Bernard, P. D. Killworth and L. Sailer in their studies of the accuracy of informants' recall of their interactions. For each group, they obtained a behavioral measure of the interactions among all actors, and rankings based on the subjects' memory of those interactions (cognitive data).
 
 - `frat_behavioral`, `frat_cognitive`: a fraternity at a West Virginia college (58 students who had lived in the fraternity from three months to three years); the behavioral data are the number of times a pair of students were seen in conversation by an unobtrusive observer, who walked through the public areas of the building every fifteen minutes, 21 hours a day, for five days.
 - `ham_behavioral`, `ham_cognitive`: 44 amateur (HAM) radio operators; the behavioral data are the radio calls made over a one-month period, as monitored by a voice-activated recording device.
[entries] Add the date when each entry was added, and remove icon_hash by Tiago de Paula Peixoto beff7c9
The dates are those of the commits that first added the entries' files
(2020-08-11 for the entries of the initial commit); renamed entries keep
the date of their first name.

Changed: none
diff --git a/entries/bks_interactions/__init__.py b/entries/bks_interactions/__init__.py
index ad740a2..a8ac33c 100644
--- a/entries/bks_interactions/__init__.py
+++ b/entries/bks_interactions/__init__.py
@@ -36,7 +36,7 @@ url = 'https://web.archive.org/web/20020312110633/http://vlado.fmf.uni-lj.si/pub
 citation = [('P. D. Killworth, H. R. Bernard, "Informant Accuracy in Social Network Data." Human Organization 35(3), 269-286 (1976)', 'https://doi.org/10.17730/humo.35.3.10215j2m359266n2'),
             ('H. R. Bernard, P. D. Killworth, L. Sailer, "Informant accuracy in social network data IV: a comparison of clique-level structure in behavioral and cognitive network data." Social Networks 2(3), 191-218 (1979)', 'https://doi.org/10.1016/0378-8733(79)90014-5'),
             ('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 = '58499de68cf714f319c48f8d'
+date_added = '2026-10-25'
 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.
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) by Tiago de Paula Peixoto bc3dbbd
The lists of properties at the end of the descriptions marked edge
properties with "Edge" but left node properties unmarked, or grouped
them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property
was often unclear. Every item now starts with (Node), (Edge) or (Graph),
followed by the property names, a colon and the explanation, one item
per property or group of properties; qualifications (kinds of nodes,
networks) follow the names in parentheses. Properties that were only
named got a short explanation, and a few items that named the wrong
kind of property were corrected.
diff --git a/entries/bks_interactions/__init__.py b/entries/bks_interactions/__init__.py
index a7e819a..ad740a2 100644
--- a/entries/bks_interactions/__init__.py
+++ b/entries/bks_interactions/__init__.py
@@ -30,7 +30,7 @@ In the behavioral networks (undirected), two actors are connected if they were o
 
 The networks have the following properties:
 
-- Edges: `weight`, the number of observed interactions (behavioral networks) or the ranking given by the subject (cognitive networks)."""
+- (Edge) `weight`: the number of observed interactions (behavioral networks) or the ranking given by the subject (cognitive networks)."""
 tags = ['Social', 'Offline', 'Weighted']
 url = 'https://web.archive.org/web/20020312110633/http://vlado.fmf.uni-lj.si/pub/networks/data/UciNet/UciData.htm'
 citation = [('P. D. Killworth, H. R. Bernard, "Informant Accuracy in Social Network Data." Human Organization 35(3), 269-286 (1976)', 'https://doi.org/10.17730/humo.35.3.10215j2m359266n2'),
[entries] New entry: bks_interactions by Tiago de Paula Peixoto e9ecb35
diff --git a/entries/bks_interactions/__init__.py b/entries/bks_interactions/__init__.py
new file mode 100644
index 0000000..a7e819a
--- /dev/null
+++ b/entries/bks_interactions/__init__.py
@@ -0,0 +1,70 @@
+#! /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 = 'Bernard-Killworth-Sailer informant accuracy networks (1976-1980)'
+description = """Social interactions in bounded groups, collected by H. R. Bernard, P. D. Killworth and L. Sailer in their studies of the accuracy of informants' recall of their interactions. For each group, they obtained a behavioral measure of the interactions among all actors, and rankings based on the subjects' memory of those interactions (cognitive data). 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.
+
+- `frat_behavioral`, `frat_cognitive`: a fraternity at a West Virginia college (58 students who had lived in the fraternity from three months to three years); the behavioral data are the number of times a pair of students were seen in conversation by an unobtrusive observer, who walked through the public areas of the building every fifteen minutes, 21 hours a day, for five days.
+- `ham_behavioral`, `ham_cognitive`: 44 amateur (HAM) radio operators; the behavioral data are the radio calls made over a one-month period, as monitored by a voice-activated recording device.
+- `off_behavioral`, `off_cognitive`: 40 employees of a small business office; the behavioral data are the observed frequencies of interactions, recorded by an unobtrusive observer who patrolled a fixed route through the office every fifteen minutes during two four-day periods.
+- `tec_behavioral`, `tec_cognitive`: 34 members of a technical research group at a West Virginia university; the behavioral data are the interactions recorded by an observer every half-hour during one five-day work week.
+
+In the behavioral networks (undirected), two actors are connected if they were observed interacting, and the edge is weighted by the number of observed interactions. In the cognitive networks (directed), an edge points from the subject to another actor, and is weighted by the subject's ranking of how frequently they interacted in the observation period (the scale of the rankings differs between groups).
+
+The networks have the following properties:
+
+- Edges: `weight`, the number of observed interactions (behavioral networks) or the ranking given by the subject (cognitive networks)."""
+tags = ['Social', 'Offline', 'Weighted']
+url = 'https://web.archive.org/web/20020312110633/http://vlado.fmf.uni-lj.si/pub/networks/data/UciNet/UciData.htm'
+citation = [('P. D. Killworth, H. R. Bernard, "Informant Accuracy in Social Network Data." Human Organization 35(3), 269-286 (1976)', 'https://doi.org/10.17730/humo.35.3.10215j2m359266n2'),
+            ('H. R. Bernard, P. D. Killworth, L. Sailer, "Informant accuracy in social network data IV: a comparison of clique-level structure in behavioral and cognitive network data." Social Networks 2(3), 191-218 (1979)', 'https://doi.org/10.1016/0378-8733(79)90014-5'),
+            ('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 = '58499de68cf714f319c48f8d'
+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/20070102222320id_/http://vlado.fmf.uni-lj.si/pub/networks/data/Ucinet'
+files = [('bkfrat.dat', 'frat_behavioral', None),
+         ('bkfrat.dat', 'frat_cognitive', None),
+         ('bkham.dat', 'ham_behavioral', None),
+         ('bkham.dat', 'ham_cognitive', None),
+         ('bkoff.dat', 'off_behavioral', None),
+         ('bkoff.dat', 'off_cognitive', None),
+         ('bktec.dat', 'tec_behavioral', None),
+         ('bktec.dat', 'tec_cognitive', 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]
+    for fname, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with open_upstream_file(name, fname, "rb") as f:
+            Ms = read_dl(f)["data"]
+        if alt.endswith("behavioral"):
+            yield alt, adjacency_graph(Ms[0], directed=False)
+        else:
+            yield alt, adjacency_graph(Ms[1], directed=True)