History of scotland_interlocks
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/scotland_interlocks/__init__.py b/entries/scotland_interlocks/__init__.py
index 8115ab5..5e60630 100644
--- a/entries/scotland_interlocks/__init__.py
+++ b/entries/scotland_interlocks/__init__.py
@@ -19,7 +19,7 @@
from .. import *
title = 'Scottish corporate interlocks (1904-1905)'
-description = """Interlocking directorates among the 108 largest joint stock companies in Scotland in 1904-1905 (64 non-financial firms, 8 banks, 14 insurance companies and 22 investment and property companies), compiled by W. de Nooy from the appendix of the book *The Anatomy of Scottish Capital* by J. Scott and M. Hughes. The bipartite network connects each of the 136 multiple directors listed there (persons sitting on more than one of these boards) to the boards on which they sit. Sixteen of the companies share no director with the others, and appear as isolated nodes. (The source documentation mentions 356 affiliations, and two directors with a single board, while the data file contains 358 affiliations and no such directors.) 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.
+description = """Interlocking directorates among the 108 largest joint stock companies in Scotland in 1904-1905 (64 non-financial firms, 8 banks, 14 insurance companies and 22 investment and property companies), compiled by W. de Nooy from the appendix of the book *The Anatomy of Scottish Capital* by J. Scott and M. Hughes. The bipartite network connects each of the 136 multiple directors listed there (persons sitting on more than one of these boards) to the boards on which they sit. Sixteen of the companies share no director with the others, and appear as isolated nodes. (The source documentation mentions 356 affiliations, and two directors with a single board, while the data contain 358 affiliations and no such directors.)
The network has the following properties:
[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/scotland_interlocks/__init__.py b/entries/scotland_interlocks/__init__.py
index 75771bb..8115ab5 100644
--- a/entries/scotland_interlocks/__init__.py
+++ b/entries/scotland_interlocks/__init__.py
@@ -31,7 +31,7 @@ tags = ['Economic', 'Affiliation', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.htm'
citation = [('J. Scott, M. Hughes, "The Anatomy of Scottish Capital: Scottish Companies and Scottish Capital, 1900-1979." Croom Helm, London (1980)', 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.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 = '58b25bc1a411221d0e7c6825'
+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/scotland_interlocks/__init__.py b/entries/scotland_interlocks/__init__.py
index 4081a47..75771bb 100644
--- a/entries/scotland_interlocks/__init__.py
+++ b/entries/scotland_interlocks/__init__.py
@@ -23,7 +23,10 @@ description = """Interlocking directorates among the 108 largest joint stock com
The network has the following properties:
-- Nodes: `name`, the name of the company or director; `is_company`, whether the node is a company (otherwise a director); `industry` (companies only, 0 for directors), the industry type of the company (1: oil & mining, 2: railway, 3: engineering & steel, 4: electricity & chemicals, 5: domestic products, 6: banks, 7: insurance, 8: investment); `capital` (companies only, 0 for directors), the total capital or deposits of the company, in thousands of pounds sterling."""
+- (Node) `name`: the name of the company or director.
+- (Node) `is_company`: whether the node is a company (otherwise a director).
+- (Node) `industry` (companies only, 0 for directors): the industry type of the company (1: oil & mining, 2: railway, 3: engineering & steel, 4: electricity & chemicals, 5: domestic products, 6: banks, 7: insurance, 8: investment).
+- (Node) `capital` (companies only, 0 for directors): the total capital or deposits of the company, in thousands of pounds sterling."""
tags = ['Economic', 'Affiliation', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.htm'
citation = [('J. Scott, M. Hughes, "The Anatomy of Scottish Capital: Scottish Companies and Scottish Capital, 1900-1979." Croom Helm, London (1980)', 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.htm'),
[entries] New entry: scotland_interlocks 00608b2
diff --git a/entries/scotland_interlocks/__init__.py b/entries/scotland_interlocks/__init__.py
new file mode 100644
index 0000000..4081a47
--- /dev/null
+++ b/entries/scotland_interlocks/__init__.py
@@ -0,0 +1,53 @@
+#! /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 = 'Scottish corporate interlocks (1904-1905)'
+description = """Interlocking directorates among the 108 largest joint stock companies in Scotland in 1904-1905 (64 non-financial firms, 8 banks, 14 insurance companies and 22 investment and property companies), compiled by W. de Nooy from the appendix of the book *The Anatomy of Scottish Capital* by J. Scott and M. Hughes. The bipartite network connects each of the 136 multiple directors listed there (persons sitting on more than one of these boards) to the boards on which they sit. Sixteen of the companies share no director with the others, and appear as isolated nodes. (The source documentation mentions 356 affiliations, and two directors with a single board, while the data file contains 358 affiliations and no such directors.) 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.
+
+The network has the following properties:
+
+- Nodes: `name`, the name of the company or director; `is_company`, whether the node is a company (otherwise a director); `industry` (companies only, 0 for directors), the industry type of the company (1: oil & mining, 2: railway, 3: engineering & steel, 4: electricity & chemicals, 5: domestic products, 6: banks, 7: insurance, 8: investment); `capital` (companies only, 0 for directors), the total capital or deposits of the company, in thousands of pounds sterling."""
+tags = ['Economic', 'Affiliation', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.htm'
+citation = [('J. Scott, M. Hughes, "The Anatomy of Scottish Capital: Scottish Companies and Scottish Capital, 1900-1979." Croom Helm, London (1980)', 'https://web.archive.org/web/20040706122006/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/scotland.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 = '58b25bc1a411221d0e7c6825'
+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/20070315133233id_/http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+files = [('scotland.zip:Scotland.paj', None, 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, "scotland.zip:Scotland.paj")
+ net = get_pajek_item(items, "network")
+ net["n1"] = 108 # given only in the partition of the source file
+ g = pajek_graph(net, two_mode="is_company")
+ set_pajek_partition(g, get_pajek_item(items, "partition", "Industrial_categories.clu"), "industry", default=0)
+ set_pajek_partition(g, get_pajek_item(items, "vector", "Capital.vec"), "capital", "double", default=0)
+ yield None, g