logo Netzschleuder network catalog, repository, and centrifuge

History of trumpworld

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/trumpworld/__init__.py b/entries/trumpworld/__init__.py
index bb79e89..94e0d37 100644
--- a/entries/trumpworld/__init__.py
+++ b/entries/trumpworld/__init__.py
@@ -30,7 +30,7 @@ The network has the following properties:
 tags = ['Social', 'Political', 'Unweighted', 'Metadata']
 url = 'https://github.com/BuzzFeedNews/trumpworld'
 citation = [('J. Templon, A. Cormier, A. Campbell, J. Singer-Vine, "Help Us Map TrumpWorld." BuzzFeed News (January 15, 2017)', 'https://www.buzzfeednews.com/article/johntemplon/help-us-map-trumpworld')]
-icon_hash = '5b5151d8dfd5c2fc3b071848'
+date_added = '2026-10-25'
 upstream_license = None
 # BuzzFeedNews/trumpworld repository at a fixed commit
 upstream_prefix = 'https://raw.githubusercontent.com/BuzzFeedNews/trumpworld/aaa31b52eadeea8697650c273f4029941c908a1f/data'
[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/trumpworld/__init__.py b/entries/trumpworld/__init__.py
index e952fff..bb79e89 100644
--- a/entries/trumpworld/__init__.py
+++ b/entries/trumpworld/__init__.py
@@ -23,8 +23,10 @@ description = """Network of people and organizations connected to Donald J. Trum
 
 The network has the following properties:
 
-- Nodes: `name`, the name of the person or organization; `type`, either "Person" or "Organization".
-- Edges: `connection`, a free-text description of the connection (833 distinct values, e.g. "Ownership", "Director", "Investor", "President (as of 2016 FEC filing)", "Business associates"), describing the role of one entity with respect to the other, but not in a consistent direction (e.g. "Partner" in "Robert Lighthizer – Skadden, Arps, Slate, Meagher & Flom LLP" refers to the first entity, while "Subsidiary" in "SCL Group – Cambridge Analytica" refers to the second); the order of the two entities in the source is kept as the source and target of each edge; `sources`, the URL(s) or description(s) of the source(s) documenting the connection, separated by " | " when there are several."""
+- (Node) `name`: the name of the person or organization.
+- (Node) `type`: either "Person" or "Organization".
+- (Edge) `connection`: a free-text description of the connection (833 distinct values, e.g. "Ownership", "Director", "Investor", "President (as of 2016 FEC filing)", "Business associates"), describing the role of one entity with respect to the other, but not in a consistent direction (e.g. "Partner" in "Robert Lighthizer – Skadden, Arps, Slate, Meagher & Flom LLP" refers to the first entity, while "Subsidiary" in "SCL Group – Cambridge Analytica" refers to the second); the order of the two entities in the source is kept as the source and target of each edge.
+- (Edge) `sources`: the URL(s) or description(s) of the source(s) documenting the connection, separated by " | " when there are several."""
 tags = ['Social', 'Political', 'Unweighted', 'Metadata']
 url = 'https://github.com/BuzzFeedNews/trumpworld'
 citation = [('J. Templon, A. Cormier, A. Campbell, J. Singer-Vine, "Help Us Map TrumpWorld." BuzzFeed News (January 15, 2017)', 'https://www.buzzfeednews.com/article/johntemplon/help-us-map-trumpworld')]
[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/trumpworld/__init__.py b/entries/trumpworld/__init__.py
index 365d3e7..e952fff 100644
--- a/entries/trumpworld/__init__.py
+++ b/entries/trumpworld/__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 fnames, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] New entry: trumpworld by Tiago de Paula Peixoto 4ebf53c
diff --git a/entries/trumpworld/__init__.py b/entries/trumpworld/__init__.py
new file mode 100644
index 0000000..365d3e7
--- /dev/null
+++ b/entries/trumpworld/__init__.py
@@ -0,0 +1,71 @@
+#! /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 = "TrumpWorld associations (2017)"
+description = """Network of people and organizations connected to Donald J. Trump and his incoming administration, compiled by BuzzFeed News journalists for the "TrumpWorld" project, published on January 15, 2017, shortly before Trump's inauguration as the 45th President of the United States. The journalists spent two months building the dataset from public records, financial disclosures (such as Trump's 2016 Public Financial Disclosure Report and FEC filings), news reports and other sources on the Trump family, his Cabinet picks, and top advisers; it was later expanded with tips from readers. Each node is a person or an organization, and an edge is a documented connection between two of them (person-organization, person-person, or organization-organization), such as ownership, a position held in an organization, business dealings, investment, membership, family relation, or friendship. As stated by the authors, the underlying sources can contain errors and omissions. This is the final version of the data in the GitHub repository (update of April 24, 2017, which consolidated the earlier person-person, person-organization and organization-organization tables into a single file).
+
+The network has the following properties:
+
+- Nodes: `name`, the name of the person or organization; `type`, either "Person" or "Organization".
+- Edges: `connection`, a free-text description of the connection (833 distinct values, e.g. "Ownership", "Director", "Investor", "President (as of 2016 FEC filing)", "Business associates"), describing the role of one entity with respect to the other, but not in a consistent direction (e.g. "Partner" in "Robert Lighthizer – Skadden, Arps, Slate, Meagher & Flom LLP" refers to the first entity, while "Subsidiary" in "SCL Group – Cambridge Analytica" refers to the second); the order of the two entities in the source is kept as the source and target of each edge; `sources`, the URL(s) or description(s) of the source(s) documenting the connection, separated by " | " when there are several."""
+tags = ['Social', 'Political', 'Unweighted', 'Metadata']
+url = 'https://github.com/BuzzFeedNews/trumpworld'
+citation = [('J. Templon, A. Cormier, A. Campbell, J. Singer-Vine, "Help Us Map TrumpWorld." BuzzFeed News (January 15, 2017)', 'https://www.buzzfeednews.com/article/johntemplon/help-us-map-trumpworld')]
+icon_hash = '5b5151d8dfd5c2fc3b071848'
+upstream_license = None
+# BuzzFeedNews/trumpworld repository at a fixed commit
+upstream_prefix = 'https://raw.githubusercontent.com/BuzzFeedNews/trumpworld/aaa31b52eadeea8697650c273f4029941c908a1f/data'
+files = [('trumpworld.csv', 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):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with open_upstream_file(name, fnames, "rb") as f:
+            rows = list(csv.DictReader(io.TextIOWrapper(f, encoding="utf-8")))
+        g = Graph(directed=False)
+        g.vp.name = g.new_vp("string")
+        g.vp.type = g.new_vp("string")
+        g.ep.connection = g.new_ep("string")
+        g.ep.sources = g.new_ep("string")
+        vs = {}
+        def get_v(n, t):
+            if n not in vs:
+                v = g.add_vertex()
+                vs[n] = v
+                g.vp.name[v] = n
+                g.vp.type[v] = t
+            return vs[n]
+        for row in rows:
+            u = get_v(row["Entity A"], row["Entity A Type"])
+            v = get_v(row["Entity B"], row["Entity B Type"])
+            e = g.add_edge(u, v)
+            g.ep.connection[e] = row["Connection"]
+            g.ep.sources[e] = row["Source(s)"]
+        yield alt, g