logo Netzschleuder network catalog, repository, and centrifuge

History of collins_philosophers

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/collins_philosophers/__init__.py b/entries/collins_philosophers/__init__.py
index 63e19d1..416e71a 100644
--- a/entries/collins_philosophers/__init__.py
+++ b/entries/collins_philosophers/__init__.py
@@ -42,7 +42,7 @@ The data are distributed as a relational database; de Nooy notes that in case of
 tags = ['Social', 'Offline', 'Signed', 'Metadata']
 url = 'https://web.archive.org/web/20161115212841/http://www.uva.nl/over-de-uva/organisatie/medewerkers/content/n/o/w.denooy/w.denooy.html'
 citation = [('R. Collins, "The Sociology of Philosophies: A Global Theory of Intellectual Change." Belknap Press of Harvard University Press, Cambridge, MA (1998)', 'https://www.hup.harvard.edu/books/9780674001879')]
-icon_hash = '57d4766567351c5e0ccd9011'
+date_added = '2026-10-25'
 upstream_license = None
 # Wouter de Nooy's page at the University of Amsterdam is no longer
 # available; the file is 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/collins_philosophers/__init__.py b/entries/collins_philosophers/__init__.py
index 0a11c16..63e19d1 100644
--- a/entries/collins_philosophers/__init__.py
+++ b/entries/collins_philosophers/__init__.py
@@ -30,11 +30,11 @@ Ties are signed: the edge property `value` is 2 for a positive tie, 1 for a prob
 
 The nodes have the following properties:
 
-- `name`: the label of the person, as coded (e.g. "CONFUCIUS", "1 Teng Hsi").
-- `info`: a short description of the person (e.g. "Confucian", "lawyer/debater").
-- `date`: the date of the person's generation, as a year (negative for BCE; NaN if not coded).
-- `stature`: the stature of the person (1: major philosopher, 2: secondary philosopher, 3: minor philosopher, 4: non-philosopher, 5: major non-philosopher; -1 if not coded).
-- `school`: the school or group of the person (e.g. "Confucian school", "Mohists"), empty if none is coded.
+- (Node) `name`: the label of the person, as coded (e.g. "CONFUCIUS", "1 Teng Hsi").
+- (Node) `info`: a short description of the person (e.g. "Confucian", "lawyer/debater").
+- (Node) `date`: the date of the person's generation, as a year (negative for BCE; NaN if not coded).
+- (Node) `stature`: the stature of the person (1: major philosopher, 2: secondary philosopher, 3: minor philosopher, 4: non-philosopher, 5: major non-philosopher; -1 if not coded).
+- (Node) `school`: the school or group of the person (e.g. "Confucian school", "Mohists"), empty if none is coded.
 
 The data are distributed as a relational database; de Nooy notes that in case of doubt about the codes, one should consult the diagrams in the book.[^icon]
 
[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/collins_philosophers/__init__.py b/entries/collins_philosophers/__init__.py
index 1e68a63..0a11c16 100644
--- a/entries/collins_philosophers/__init__.py
+++ b/entries/collins_philosophers/__init__.py
@@ -66,7 +66,6 @@ def _rows(name, fname):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, directed in files:
         if alts is not None and alt not in alts:
[entries] New entry: collins_philosophers by Tiago de Paula Peixoto aee08e2
diff --git a/entries/collins_philosophers/__init__.py b/entries/collins_philosophers/__init__.py
new file mode 100644
index 0000000..1e68a63
--- /dev/null
+++ b/entries/collins_philosophers/__init__.py
@@ -0,0 +1,95 @@
+#! /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 *
+import io
+
+title = "Collins philosopher networks (1998)"
+description = """Networks of personal relationships among philosophers and other intellectuals throughout world history, as coded by W. de Nooy from the diagrams of R. Collins's book "The Sociology of Philosophies: A Global Theory of Intellectual Change" (1998). The book traces intellectual networks in China, India, Japan, the Islamic world, Jewish thought, Greece and Europe, from antiquity to the twentieth century. Nodes are philosophers (and some non-philosophers, such as politicians or patrons, who appear in the diagrams), and there are two networks with the same nodes:
+
+- `acquaintance`: an undirected edge connects two persons who knew each other (acquaintanceship ties).
+- `master_pupil`: a directed edge from $i$ to $j$ means that $i$ was a master (teacher) of $j$.
+
+Ties are signed: the edge property `value` is 2 for a positive tie, 1 for a probable tie, and -2 for a negative tie (a conflictual relationship), as coded in the source (see the book's diagrams for the meaning of the codes). Three master-pupil ties that refer to persons missing from the list of philosophers are omitted.
+
+The nodes have the following properties:
+
+- `name`: the label of the person, as coded (e.g. "CONFUCIUS", "1 Teng Hsi").
+- `info`: a short description of the person (e.g. "Confucian", "lawyer/debater").
+- `date`: the date of the person's generation, as a year (negative for BCE; NaN if not coded).
+- `stature`: the stature of the person (1: major philosopher, 2: secondary philosopher, 3: minor philosopher, 4: non-philosopher, 5: major non-philosopher; -1 if not coded).
+- `school`: the school or group of the person (e.g. "Confucian school", "Mohists"), empty if none is coded.
+
+The data are distributed as a relational database; de Nooy notes that in case of doubt about the codes, one should consult the diagrams in the book.[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Social', 'Offline', 'Signed', 'Metadata']
+url = 'https://web.archive.org/web/20161115212841/http://www.uva.nl/over-de-uva/organisatie/medewerkers/content/n/o/w.denooy/w.denooy.html'
+citation = [('R. Collins, "The Sociology of Philosophies: A Global Theory of Intellectual Change." Belknap Press of Harvard University Press, Cambridge, MA (1998)', 'https://www.hup.harvard.edu/books/9780674001879')]
+icon_hash = '57d4766567351c5e0ccd9011'
+upstream_license = None
+# Wouter de Nooy's page at the University of Amsterdam is no longer
+# available; the file is obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web'
+files = [(('philosophers.zip:Philosophers.csv', 'philosophers.zip:School.csv',
+           'philosophers.zip:Acquaintance.csv'), 'acquaintance', False),
+         (('philosophers.zip:Philosophers.csv', 'philosophers.zip:School.csv',
+           'philosophers.zip:Master-pupil.csv'), 'master_pupil', True)]
+archived_urls = {
+    'philosophers.zip': 'https://web.archive.org/web/20220125151340id_/https://www.uva.nl/binaries/content/documents/personalpages/n/o/w.denooy/en/tab-two/tab-two/cpitem%5B2%5D/asset?1473405280682'}
+
+def fetch_upstream(force=False):
+    return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+                                tries=4)
+
+def _rows(name, fname):
+    with open_upstream_file(name, fname, "rb") as f:
+        return list(csv.reader(io.TextIOWrapper(f, encoding="latin-1")))[1:]
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, directed in files:
+        if alts is not None and alt not in alts:
+            continue
+        people = _rows(name, fnames[0])
+        schools = {int(r[0]): r[1] for r in _rows(name, fnames[1])}
+        idx = {int(r[0]): i for i, r in enumerate(people)}
+        g = Graph(directed=directed)
+        g.add_vertex(len(people))
+        g.vp.name = g.new_vp("string", vals=[r[1].strip() for r in people])
+        g.vp.info = g.new_vp("string", vals=[r[2].strip() for r in people])
+        g.vp.date = g.new_vp("double", vals=[float(r[3]) if r[3].strip() else numpy.nan
+                                              for r in people])
+        g.vp.stature = g.new_vp("int", vals=[int(float(r[4])) if r[4].strip() else -1
+                                             for r in people])
+        g.vp.school = g.new_vp("string", vals=[schools.get(int(r[5] or 0), "")
+                                               for r in people])
+        edges = []
+        for a, b, val in _rows(name, fnames[2]):
+            a, b = int(a), int(b)
+            if a not in idx or b not in idx:
+                continue
+            edges.append((idx[a], idx[b], int(val)))
+        g.ep.value = g.new_ep("int")
+        g.add_edge_list(edges, eprops=[g.ep.value])
+        yield alt, g