logo Netzschleuder network catalog, repository, and centrifuge

History of sa_companies

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] 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/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 6ced2de..e505da1 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -30,7 +30,7 @@ The network has the following properties:
 tags = ['Social', 'Affiliation', 'Bipartite', 'Unweighted', 'Metadata']
 url = 'https://github.com/corybrunson/bitriad'
 citation = [('J. A. Hobson, "The Evolution of Modern Capitalism: A Study of Machine Production." New and revised edition, The Walter Scott Publishing Co. (1906)', 'https://archive.org/details/evolutionofmoder00hobsuoft')]
-icon_hash = '57341df9461efe0c7a6782fb'
+date_added = '2020-08-11'
 upstream_license = ('GNU General Public License v2 (bitriad R package)', 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.html')
 upstream_prefix = 'https://raw.githubusercontent.com/corybrunson/bitriad/6f0b3346ec53855cf5afab841080a47cb6190d07/data-raw'
 files = [('Hobson-directors.csv', None, None)]
[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/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 874a5da..6ced2de 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -25,7 +25,8 @@ Nodes are persons and companies, and an edge connects a person to a company of w
 
 The network has the following properties:
 
-- Nodes: `name`, the name of the person (surname and initials, as in the bitriad package; Hobson gives J. C. Wernher and J. R. Maguire) or of the company; `is_company`, whether the node is a company."""
+- (Node) `name`: the name of the person (surname and initials, as in the bitriad package; Hobson gives J. C. Wernher and J. R. Maguire) or of the company.
+- (Node) `is_company`: whether the node is a company."""
 tags = ['Social', 'Affiliation', 'Bipartite', 'Unweighted', 'Metadata']
 url = 'https://github.com/corybrunson/bitriad'
 citation = [('J. A. Hobson, "The Evolution of Modern Capitalism: A Study of Machine Production." New and revised edition, The Walter Scott Publishing Co. (1906)', 'https://archive.org/details/evolutionofmoder00hobsuoft')]
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 2c69f19
Unneeded "global files" statements, unused imports and variables,
f-strings without placeholders, duplicate keys in foodweb_little_rock
(keeping the order and the values used), and the second definition of
get_lines() in twitter_higgs. Nothing changes in the networks or
descriptions.

Changed: none
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 3073297..874a5da 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -42,7 +42,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fname, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] Move contact, convote_mentions, douban, email_company, epinions, flixster, football_league_results, hyves, lastfm, libimseti, livemocha, reuters, sa_companies, sister_cities, tripadvisor_ratings, wikilens_ratings and wikipedia_discussions_de to their original sources by Tiago de Paula Peixoto 8f097de
These entries downloaded KONECT's copies of the data. They now download
the original data (live, from pinned Wayback Machine snapshots, or by
re-extracting from public dumps), gaining the metadata KONECT dropped
(names, identifiers, timestamps, attributes), with descriptions and
citations rewritten from the original sources and factual errors fixed
(years and periods of contact, email_company, douban, flixster,
libimseti, sa_companies; the rated objects of epinions; the sign of
convote_mentions; songs merged by title alone in lastfm).

New networks: the trust network of epinions, the links of
wikilens_ratings, the JSON crawl of tripadvisor_ratings, and current
versions of sister_cities and wikipedia_discussions_de next to the ones
KONECT used. asu_social_networks only loses its mention of KONECT.

Changed: upstream contact convote_mentions douban email_company epinions flixster football_league_results hyves lastfm libimseti livemocha reuters sa_companies sister_cities tripadvisor_ratings wikilens_ratings wikipedia_discussions_de
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 9c7d3ad..3073297 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -18,14 +18,21 @@
 
 from .. import *
 
-title = "South African companies (1919)"
-description = """A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919. Nodes are six persons and five companies (vertex property `is_company`), and an edge connects a person to a company in which the person held a leadership position (KONECT describes the relation as "person–company leadership")."""
-tags = ['Social', 'Affiliation', 'Unweighted']
-url = 'http://konect.cc/networks/brunson_south-africa'
-citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://doi.org/10.4324/9780203552063')]
+title = "South African company directors (1905)"
+description = """A small bipartite network of the directorships held in 1905 by six leading financiers of South Africa in five gold, diamond and finance companies: De Beers Consolidated, the Premier (Transvaal) Diamond Company, Rand Mines, Consolidated Goldfields and the British South Africa Company (the "Chartered Company"). The data are from the chapter on the financier of J. A. Hobson's *The Evolution of Modern Capitalism* (new and revised edition of 1906), which gives a table of the directorships of South African financiers in 1905, constructed from the Directory of Directors and the Stock Exchange Year Book of 1905, and discusses the interlocks it shows among the main companies (pp. 270-271 in the printing of 1919). The network is the subset of that table transcribed in Cory Brunson's bitriad R package (data set `southafrica1905`); the other directors and companies of Hobson's table, and the numbers of directorships it gives, are not included.
+
+Nodes are persons and companies, and an edge connects a person to a company of which they were a director (Wernher and Beit were life governors of De Beers).
+
+The network has the following properties:
+
+- Nodes: `name`, the name of the person (surname and initials, as in the bitriad package; Hobson gives J. C. Wernher and J. R. Maguire) or of the company; `is_company`, whether the node is a company."""
+tags = ['Social', 'Affiliation', 'Bipartite', 'Unweighted', 'Metadata']
+url = 'https://github.com/corybrunson/bitriad'
+citation = [('J. A. Hobson, "The Evolution of Modern Capitalism: A Study of Machine Production." New and revised edition, The Walter Scott Publishing Co. (1906)', 'https://archive.org/details/evolutionofmoder00hobsuoft')]
 icon_hash = '57341df9461efe0c7a6782fb'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.brunson_south-africa.tar.bz2', None, 'konect')]
+upstream_license = ('GNU General Public License v2 (bitriad R package)', 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.html')
+upstream_prefix = 'https://raw.githubusercontent.com/corybrunson/bitriad/6f0b3346ec53855cf5afab841080a47cb6190d07/data-raw'
+files = [('Hobson-directors.csv', None, None)]
 
 def fetch_upstream(force=False):
     return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
@@ -37,12 +44,23 @@ def fetch_upstream(force=False):
 def parse(alts=None):
     global files
     name = __name__.split(".")[-1]
-    for fnames, alt, fmt in files:
+    for fname, alt, fmt in files:
         if alts is not None and alt not in alts:
             continue
-        if isinstance(fnames, str):
-            fnames = [fnames]
-        with ExitStack() as stack:
-            fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
-            g = parse_graph(fs, fmt, directed=True)
+        # Incidence matrix: one row per person, one column per company
+        with open_upstream_file(name, fname, "rb") as f:
+            rows = list(csv.reader(io.StringIO(f.read().decode("utf-8"))))
+        rows = [r for r in rows if r]
+        companies = rows[0][1:]
+        people = [r[0] for r in rows[1:]]
+        g = Graph(directed=False)
+        g.add_vertex(len(people) + len(companies))
+        g.vp.name = g.new_vp("string", vals=people + companies)
+        g.vp.is_company = g.new_vp("bool", vals=[False] * len(people) +
+                                   [True] * len(companies))
+        for i, r in enumerate(rows[1:]):
+            assert len(r) == len(companies) + 1
+            for j, x in enumerate(r[1:]):
+                if int(x) != 0:
+                    g.add_edge(i, len(people) + j)
         yield alt, g
[entries] Fix parse bugs and improve descriptions and metadata by Tiago de Paula Peixoto 6bb6851
- parse fixes from the review of the descriptions, e.g. us_patents
  (directed), celegans_2019 (synapse direction), ecoli_transcription and
  yeast_transcription (regulator to target), bitcoin (direction, phantom
  node), ego_social (Google+ features and circles), scotus_majority,
  arxiv_authors and social_location (as in SNAP), caida_as, dnc, dom,
  mist, reuters and bibsonomy (names on the right nodes), uci_zoo
- every description now states explicitly what the nodes and edges
  represent; corrected titles, years, tags, citations and licences
- the "Hypergraph" tag is removed; very large entries are marked
  `huge = True` (see --skip-huge)
- ICON ids of partial duplicates added (hiv_transmission, congress_bills,
  openflights, dutch_school)
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 1e8303e..9c7d3ad 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -19,8 +19,7 @@
 from .. import *
 
 title = "South African companies (1919)"
-description = """A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = """A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919. Nodes are six persons and five companies (vertex property `is_company`), and an edge connects a person to a company in which the person held a leadership position (KONECT describes the relation as "person–company leadership")."""
 tags = ['Social', 'Affiliation', 'Unweighted']
 url = 'http://konect.cc/networks/brunson_south-africa'
 citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://doi.org/10.4324/9780203552063')]
Update copyright information by Tiago de Paula Peixoto 73a4f0d
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 3903cf5..1e8303e 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
+# 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
Update copyright information by Tiago de Paula Peixoto 3d288ea
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 85c642c..3903cf5 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2024 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
Update copyright information by Tiago de Paula Peixoto 8d005ae
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index c1414e6..85c642c 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2023 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
Update copyright info by Tiago de Paula Peixoto db2efcc
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index eae968f..c1414e6 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2021 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
Un-orphan KONECT datasets by Tiago de Paula Peixoto 894eba5
KONECT has been brought back from the dead for the time being.
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 1696237..eae968f 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/brunson_south-africa'
 citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://doi.org/10.4324/9780203552063')]
 icon_hash = '57341df9461efe0c7a6782fb'
 upstream_prefix = 'http://konect.cc/files'
-orphan = True
 files = [('download.tsv.brunson_south-africa.tar.bz2', None, 'konect')]
 
 def fetch_upstream(force=False):
Update citations to use DOIs by Tiago de Paula Peixoto e878874
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 17491f7..1696237 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -23,7 +23,7 @@ description = """A bipartite network of the affiliations between a small group o
 [^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Social', 'Affiliation', 'Unweighted']
 url = 'http://konect.cc/networks/brunson_south-africa'
-citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://books.google.com/books?id=NVpAAQAAMAAJ&pg=PA271&lpg=PA271&dq="the+small+inner+ring+of+South+African+Finance"')]
+citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://doi.org/10.4324/9780203552063')]
 icon_hash = '57341df9461efe0c7a6782fb'
 upstream_prefix = 'http://konect.cc/files'
 orphan = True
Add support for 'orphan' datasets and tag konect entries by Tiago de Paula Peixoto e330b80
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 6f1d6cf..17491f7 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/brunson_south-africa'
 citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://books.google.com/books?id=NVpAAQAAMAAJ&pg=PA271&lpg=PA271&dq="the+small+inner+ring+of+South+African+Finance"')]
 icon_hash = '57341df9461efe0c7a6782fb'
 upstream_prefix = 'http://konect.cc/files'
+orphan = True
 files = [('download.tsv.brunson_south-africa.tar.bz2', None, 'konect')]
 
 def fetch_upstream(force=False):
Change license from GPLv3 to AGPLv3 by Tiago de Paula Peixoto d754be5
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 34bf155..6f1d6cf 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -3,18 +3,18 @@
 #
 # Copyright (C) 2020 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 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 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 General Public License for more details.
+# 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 General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+# 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 *
 
Add explicit attribution to descriptions obtained from ICON by Tiago de Paula Peixoto 1645314
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
index 7a2d6c7..34bf155 100644
--- a/entries/sa_companies/__init__.py
+++ b/entries/sa_companies/__init__.py
@@ -19,7 +19,8 @@
 from .. import *
 
 title = "South African companies (1919)"
-description = "A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919."
+description = """A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Social', 'Affiliation', 'Unweighted']
 url = 'http://konect.cc/networks/brunson_south-africa'
 citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://books.google.com/books?id=NVpAAQAAMAAJ&pg=PA271&lpg=PA271&dq="the+small+inner+ring+of+South+African+Finance"')]
Initial commit by Tiago de Paula Peixoto cc85872
diff --git a/entries/sa_companies/__init__.py b/entries/sa_companies/__init__.py
new file mode 100644
index 0000000..7a2d6c7
--- /dev/null
+++ b/entries/sa_companies/__init__.py
@@ -0,0 +1,48 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020 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 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "South African companies (1919)"
+description = "A bipartite network of the affiliations between a small group of individuals and five important companies in South African finance, around 1919."
+tags = ['Social', 'Affiliation', 'Unweighted']
+url = 'http://konect.cc/networks/brunson_south-africa'
+citation = [('J. A. Hobson. "The Evolution of Modern Capitalism: A Study of Machine Production." The Walter Scott publishing co., ltd. (1919)', 'https://books.google.com/books?id=NVpAAQAAMAAJ&pg=PA271&lpg=PA271&dq="the+small+inner+ring+of+South+African+Finance"')]
+icon_hash = '57341df9461efe0c7a6782fb'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.brunson_south-africa.tar.bz2', None, 'konect')]
+
+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):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        if isinstance(fnames, str):
+            fnames = [fnames]
+        with ExitStack() as stack:
+            fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
+            g = parse_graph(fs, fmt, directed=True)
+        yield alt, g