History of sampson_monastery
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 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/sampson_monastery/__init__.py b/entries/sampson_monastery/__init__.py
index 9b46506..b278806 100644
--- a/entries/sampson_monastery/__init__.py
+++ b/entries/sampson_monastery/__init__.py
@@ -19,7 +19,7 @@
from .. import *
title = "Sampson's monastery (1968)"
-description = """Affect relations among a group of novices preparing to join a monastic order in a New England monastery, from the ethnographic study of S. F. Sampson. The novices were asked to name the three peers they liked most and the three they liked least (first, second and third choices). The relations were measured at five moments in time; the fourth measurement (T4) took place one week before four of the novices were expelled from the monastery. Based on his observations, Sampson divided the novices into four groups: the Young Turks, who arrived in a period of change and questioned the practices of the monastery; the Loyal Opposition, who entered the monastery first and defended those practices; the Outcasts, who were not accepted in the group; and an interstitial group that did not take sides. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.[^icon]
+description = """Affect relations among a group of novices preparing to join a monastic order in a New England monastery, from the ethnographic study of S. F. Sampson. The novices were asked to name the three peers they liked most and the three they liked least (first, second and third choices). The relations were measured at five moments in time; the fourth measurement (T4) took place one week before four of the novices were expelled from the monastery. Based on his observations, Sampson divided the novices into four groups: the Young Turks, who arrived in a period of change and questioned the practices of the monastery; the Loyal Opposition, who entered the monastery first and defended those practices; the Outcasts, who were not accepted in the group; and an interstitial group that did not take sides.[^icon]
- `longitudinal`: the choices of 25 novices at the five time points. Each edge points from the novice making the choice to the chosen peer, with one edge per time point at which the choice was made.
- `T4`: the most and least liked peer of each of the 18 novices present at the fourth measurement, with edges pointing from the novice making the choice to the chosen peer.
@@ -28,7 +28,7 @@ The networks have the following properties:
- (Node) `name`: the name of the novice.
- (Node) `cloisterville`: whether the novice attended the minor seminary of "Cloisterville" before coming to the monastery.
-- (Node) `faction` (`T4` only): Sampson's classification into factions (1: Young Turks, 2: Loyal Opposition, 3: Outcasts, 4: interstitial group). The presence intervals given for some novices in the source file are not included.
+- (Node) `faction` (`T4` only): Sampson's classification into factions (1: Young Turks, 2: Loyal Opposition, 3: Outcasts, 4: interstitial group). The presence intervals given for some novices in the data are not included.
- (Edge) `weight`: the signed rank of the choice (`longitudinal`: 3, 2 and 1 for the first, second and third most liked peer, and -3, -2 and -1 for the first, second and third least liked; `T4`: 1 for the most liked and -1 for the least liked peer).
- (Edge) `time` (`longitudinal` only): the time point (1 to 5) of the choice.
[entries] Add the date when each entry was added, and remove icon_hash 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/sampson_monastery/__init__.py b/entries/sampson_monastery/__init__.py
index 9763a68..9b46506 100644
--- a/entries/sampson_monastery/__init__.py
+++ b/entries/sampson_monastery/__init__.py
@@ -37,7 +37,7 @@ tags = ['Social', 'Offline', 'Signed', 'Weighted', 'Timestamps', 'Metadata']
url = 'https://web.archive.org/web/20040706122656/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/sampson.htm'
citation = [('S. F. Sampson, "A Novitiate in a Period of Change: An Experimental and Case Study of Social Relationships." PhD thesis, Cornell University (1968)', 'https://web.archive.org/web/20040706122656/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/sampson.htm'),
('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
-icon_hash = '56a85c8e26855e083a2f78ef'
+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) 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/sampson_monastery/__init__.py b/entries/sampson_monastery/__init__.py
index 974c056..9763a68 100644
--- a/entries/sampson_monastery/__init__.py
+++ b/entries/sampson_monastery/__init__.py
@@ -26,8 +26,11 @@ description = """Affect relations among a group of novices preparing to join a m
The networks have the following properties:
-- Nodes: `name`, the name of the novice; `cloisterville`, whether the novice attended the minor seminary of "Cloisterville" before coming to the monastery; `faction` (`T4` only), Sampson's classification into factions (1: Young Turks, 2: Loyal Opposition, 3: Outcasts, 4: interstitial group). The presence intervals given for some novices in the source file are not included.
-- Edges: `weight`, the signed rank of the choice (`longitudinal`: 3, 2 and 1 for the first, second and third most liked peer, and -3, -2 and -1 for the first, second and third least liked; `T4`: 1 for the most liked and -1 for the least liked peer); `time` (`longitudinal` only), the time point (1 to 5) of the choice.
+- (Node) `name`: the name of the novice.
+- (Node) `cloisterville`: whether the novice attended the minor seminary of "Cloisterville" before coming to the monastery.
+- (Node) `faction` (`T4` only): Sampson's classification into factions (1: Young Turks, 2: Loyal Opposition, 3: Outcasts, 4: interstitial group). The presence intervals given for some novices in the source file are not included.
+- (Edge) `weight`: the signed rank of the choice (`longitudinal`: 3, 2 and 1 for the first, second and third most liked peer, and -3, -2 and -1 for the first, second and third least liked; `T4`: 1 for the most liked and -1 for the least liked peer).
+- (Edge) `time` (`longitudinal` only): the time point (1 to 5) of the choice.
[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Signed', 'Weighted', 'Timestamps', 'Metadata']
[entries] New entry: sampson_monastery 80c3206
diff --git a/entries/sampson_monastery/__init__.py b/entries/sampson_monastery/__init__.py
new file mode 100644
index 0000000..974c056
--- /dev/null
+++ b/entries/sampson_monastery/__init__.py
@@ -0,0 +1,63 @@
+#! /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 = "Sampson's monastery (1968)"
+description = """Affect relations among a group of novices preparing to join a monastic order in a New England monastery, from the ethnographic study of S. F. Sampson. The novices were asked to name the three peers they liked most and the three they liked least (first, second and third choices). The relations were measured at five moments in time; the fourth measurement (T4) took place one week before four of the novices were expelled from the monastery. Based on his observations, Sampson divided the novices into four groups: the Young Turks, who arrived in a period of change and questioned the practices of the monastery; the Loyal Opposition, who entered the monastery first and defended those practices; the Outcasts, who were not accepted in the group; and an interstitial group that did not take sides. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.[^icon]
+
+- `longitudinal`: the choices of 25 novices at the five time points. Each edge points from the novice making the choice to the chosen peer, with one edge per time point at which the choice was made.
+- `T4`: the most and least liked peer of each of the 18 novices present at the fourth measurement, with edges pointing from the novice making the choice to the chosen peer.
+
+The networks have the following properties:
+
+- Nodes: `name`, the name of the novice; `cloisterville`, whether the novice attended the minor seminary of "Cloisterville" before coming to the monastery; `faction` (`T4` only), Sampson's classification into factions (1: Young Turks, 2: Loyal Opposition, 3: Outcasts, 4: interstitial group). The presence intervals given for some novices in the source file are not included.
+- Edges: `weight`, the signed rank of the choice (`longitudinal`: 3, 2 and 1 for the first, second and third most liked peer, and -3, -2 and -1 for the first, second and third least liked; `T4`: 1 for the most liked and -1 for the least liked peer); `time` (`longitudinal` only), the time point (1 to 5) of the choice.
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Social', 'Offline', 'Signed', 'Weighted', 'Timestamps', 'Metadata']
+url = 'https://web.archive.org/web/20040706122656/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/sampson.htm'
+citation = [('S. F. Sampson, "A Novitiate in a Period of Change: An Experimental and Case Study of Social Relationships." PhD thesis, Cornell University (1968)', 'https://web.archive.org/web/20040706122656/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/sampson.htm'),
+ ('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
+icon_hash = '56a85c8e26855e083a2f78ef'
+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/20051030091253id_/http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+files = [('Sampson.zip:Sampson.paj', 'longitudinal', None),
+ ('Sampson.zip:Sampson.paj', 'T4', 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]
+ items = load_pajek(name, 'Sampson.zip:Sampson.paj')
+ if alts is None or 'longitudinal' in alts:
+ g = pajek_graph(get_pajek_item(items, "network", 'Sampson'), expand_times="time")
+ set_pajek_partition(g, get_pajek_item(items, "partition", "Sampson_cloisterville"), "cloisterville", "bool")
+ yield 'longitudinal', g
+ if alts is None or 'T4' in alts:
+ g = pajek_graph(get_pajek_item(items, "network", 'Sampson_T4'))
+ set_pajek_partition(g, get_pajek_item(items, "partition", "Sampson_cloisterville_T4"), "cloisterville", "bool")
+ set_pajek_partition(g, get_pajek_item(items, "partition", "Sampson_factions_T4"), "faction")
+ yield 'T4', g