History of board_directors
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 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/board_directors/__init__.py b/entries/board_directors/__init__.py
index 33626e5..75a8c4b 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -38,8 +38,7 @@ The networks have the following properties:
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
url = 'http://www.opsahl.co.uk/boardsandgender/data.php'
citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'https://doi.org/10.1016/j.scaman.2010.10.002')]
-icon_hash = ['5733fa4b461efe0c7a678010',
- '56a85c8e26855e083a2f78e9']
+date_added = '2020-08-11'
upstream_license = None
# The original site (boardsandgender.com) is no longer online; the same data
# (with Windows line endings) is on T. Opsahl's site
[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/board_directors/__init__.py b/entries/board_directors/__init__.py
index 4b0f80d..33626e5 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -29,8 +29,12 @@ description = """Monthly snapshots of the boards of directors of Norwegian publi
The networks have the following properties:
-- Nodes: `vid`, the identifier of the director (or company) in the source data, consistent across snapshots; `name`, the name of the director or company; `gender`, the gender of the director (1: male, 2: female; 0 for companies).
-- Companies (`net2m` only): `is_company`, whether the node is a company (otherwise a director); `organization`, the company's registration number in the Norwegian Business Register; `location`, the postal code and city of the company."""
+- (Node) `vid`: the identifier of the director (or company) in the source data, consistent across snapshots.
+- (Node) `name`: the name of the director or company.
+- (Node) `gender`: the gender of the director (1: male, 2: female; 0 for companies).
+- (Node) `is_company` (`net2m` only): whether the node is a company (otherwise a director).
+- (Node) `organization` (companies, `net2m` only): the company's registration number in the Norwegian Business Register.
+- (Node) `location` (companies, `net2m` only): the postal code and city of the company."""
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
url = 'http://www.opsahl.co.uk/boardsandgender/data.php'
citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'https://doi.org/10.1016/j.scaman.2010.10.002')]
[entries] Remove unneeded code from the entries 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/board_directors/__init__.py b/entries/board_directors/__init__.py
index 80c7158..4b0f80d 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -58,7 +58,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:
@@ -92,7 +91,6 @@ def parse(alts=None):
g.vp.name = g.new_vp("string")
g.vp.gender = g.new_vp("int")
- vertices = {g.vp.vid[v] : v for v in g.vertices()}
for v in g.vertices():
vid = g.vp.vid[v]
[entries] Move unavailable upstream sources to verified alternatives 2137af6
The upstream sources of these entries are gone, moved, or refuse automated downloads; each now downloads the same data (byte-identical to the cached files, or for board_directors, identical apart from line endings) from: - add_health: the Wayback Machine (Moreno's site, as its sibling entries) - board_directors: T. Opsahl's site (opsahl.co.uk) - copenhagen, cow_signed_relations, fullerene_structures, german_power_grid: figshare's API (its downloader refuses the server) - drosophila_flybi: the same address, without a doubled slash - dutch_criticism: V. Batagelj's repository of Pajek data on GitHub - fly_larva: the copy of the supplementary files in Europe PMC - foursquare: the authors' Google Drive file - game_thrones, microsoft_concept, un_migrations: pinned Wayback Machine snapshots - internet_top_pop: the Topology Zoo repository on GitHub - scotus_majority: Harvard Dataverse and Wayback Machine snapshots
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index dd10124..80c7158 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -32,12 +32,14 @@ The networks have the following properties:
- Nodes: `vid`, the identifier of the director (or company) in the source data, consistent across snapshots; `name`, the name of the director or company; `gender`, the gender of the director (1: male, 2: female; 0 for companies).
- Companies (`net2m` only): `is_company`, whether the node is a company (otherwise a director); `organization`, the company's registration number in the Norwegian Business Register; `location`, the postal code and city of the company."""
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
-url = 'http://www.boardsandgender.com/data.php'
+url = 'http://www.opsahl.co.uk/boardsandgender/data.php'
citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'https://doi.org/10.1016/j.scaman.2010.10.002')]
icon_hash = ['5733fa4b461efe0c7a678010',
'56a85c8e26855e083a2f78e9']
upstream_license = None
-upstream_prefix = 'http://www.boardsandgender.com/data/'
+# The original site (boardsandgender.com) is no longer online; the same data
+# (with Windows line endings) is on T. Opsahl's site
+upstream_prefix = 'http://www.opsahl.co.uk/boardsandgender/data'
files = []
date = date(year=2002, day=1, month=5)
for dt in rrule.rrule(rrule.MONTHLY, dtstart=date,
[entries] Fix parse bugs and improve the metadata of existing entries c996a0e
From a review of the dataset descriptions against the upstream sources and papers, and from user reports: - parse fixes (wrong edge direction or directedness, shifted or misnamed properties, merged node identities, duplicated or missing edges and nodes, wrong types), e.g. arxiv_citation (the HepTh dates were a copy of the HepPh ones; now from the KDD Cup 2003 data), eu_procurements, foursquare_global, hiv_transmission, genetic_multiplex, gnutella (adds the 05 snapshot), roadnet, macaque_neural, python_dependency - descriptions rewritten from the upstream sources, documenting every property - corrected titles, citations and DOIs, licences (ustream_license typo, the data's own terms), tags and ICON ids - url lists for entries with several sources or dataset pages - SocioPatterns entries moved to the site's new data location, with the daily networks of sp_infectious and sp_primary_school - the Michael Fire entries marked as orphans (served from the mirror) - redundant type forcings removed after the graph-tool coercion fixes
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index 905f890..dd10124 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -22,13 +22,21 @@ from datetime import date, timedelta
import shlex
title = "Norwegian Boards of Directors (2002-2011)"
-description = """224 networks of the affiliations among board directors due to sitting on common boards of Norwegian public limited companies (as of 5 August 2009), from May 2002 onward, in monthly snapshots through August 2011. Some metadata is included, such as director and company names, city and postal code for companies, and gender for directors. The 'net2m' data are bipartite company-director networks, while the 'net1m' are one-mode projections containing co-memberships among directors.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = """Monthly snapshots of the boards of directors of Norwegian public limited companies (allmennaksjeselskap, ASA), from May 2002 to August 2011, compiled by C. Seierstad and T. Opsahl from the Norwegian Business Register. The period covers the introduction of the Norwegian law requiring at least 40% of the board members of public limited companies to be women. For each month there are two undirected networks (112 months, 224 networks in total), named by the date of the snapshot:
+
+- `net2m_YYYY-MM-01`: a bipartite network of companies and directors, in which an edge connects a director to each company on whose board they sit.
+- `net1m_YYYY-MM-01`: the one-mode projection onto the directors, in which two directors are connected if they sit on at least one common board (unweighted).
+
+The networks have the following properties:
+
+- Nodes: `vid`, the identifier of the director (or company) in the source data, consistent across snapshots; `name`, the name of the director or company; `gender`, the gender of the director (1: male, 2: female; 0 for companies).
+- Companies (`net2m` only): `is_company`, whether the node is a company (otherwise a director); `organization`, the company's registration number in the Norwegian Business Register; `location`, the postal code and city of the company."""
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
url = 'http://www.boardsandgender.com/data.php'
citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'https://doi.org/10.1016/j.scaman.2010.10.002')]
-icon_hash = '5733fa4b461efe0c7a678010'
-ustream_license = None
+icon_hash = ['5733fa4b461efe0c7a678010',
+ '56a85c8e26855e083a2f78e9']
+upstream_license = None
upstream_prefix = 'http://www.boardsandgender.com/data/'
files = []
date = date(year=2002, day=1, month=5)
@@ -77,6 +85,7 @@ def parse(alts=None):
edges[:,1] += N # indexes are repeated
g.vp.organization = g.new_vp("int64_t")
g.vp.location = g.new_vp("string")
+ g.vp.is_company = g.new_vp("bool")
g.vp.vid = g.add_edge_list(edges, hashed=True)
g.vp.name = g.new_vp("string")
g.vp.gender = g.new_vp("int")
@@ -93,6 +102,7 @@ def parse(alts=None):
g.vp.name[v] = companies[vid][1]
g.vp.organization[v] = companies[vid][0]
g.vp.location[v] = companies[vid][2]
+ g.vp.is_company[v] = True
remove_parallel_edges(g)
Update copyright information 73a4f0d
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index fc3bc38..905f890 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__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 3d288ea
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index b23e975..fc3bc38 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__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 8d005ae
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index 4db461f..b23e975 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__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 db2efcc
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index dc1ed0d..4db461f 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__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
Update citations to use DOIs e878874
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index d95143f..dc1ed0d 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -26,7 +26,7 @@ description = """224 networks of the affiliations among board directors due to s
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
url = 'http://www.boardsandgender.com/data.php'
-citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'http://toreopsahl.com/2010/09/30/article-for-the-few-not-the-many-the-effects-of-affirmative-action-on-presence-prominence-and-social-capital-of-women-directors-in-norway/')]
+citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'https://doi.org/10.1016/j.scaman.2010.10.002')]
icon_hash = '5733fa4b461efe0c7a678010'
ustream_license = None
upstream_prefix = 'http://www.boardsandgender.com/data/'
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index d264747..d95143f 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__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 *
from dateutil import rrule
Add explicit attribution to descriptions obtained from ICON 1645314
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
index 2be1a0d..d264747 100644
--- a/entries/board_directors/__init__.py
+++ b/entries/board_directors/__init__.py
@@ -22,7 +22,8 @@ from datetime import date, timedelta
import shlex
title = "Norwegian Boards of Directors (2002-2011)"
-description = "224 networks of the affiliations among board directors due to sitting on common boards of Norwegian public limited companies (as of 5 August 2009), from May 2002 onward, in monthly snapshots through August 2011. Some metadata is included, such as director and company names, city and postal code for companies, and gender for directors. The 'net2m' data are bipartite company-director networks, while the 'net1m' are one-mode projections containing co-memberships among directors."
+description = """224 networks of the affiliations among board directors due to sitting on common boards of Norwegian public limited companies (as of 5 August 2009), from May 2002 onward, in monthly snapshots through August 2011. Some metadata is included, such as director and company names, city and postal code for companies, and gender for directors. The 'net2m' data are bipartite company-director networks, while the 'net1m' are one-mode projections containing co-memberships among directors.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
url = 'http://www.boardsandgender.com/data.php'
citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'http://toreopsahl.com/2010/09/30/article-for-the-few-not-the-many-the-effects-of-affirmative-action-on-presence-prominence-and-social-capital-of-women-directors-in-norway/')]
Initial commit cc85872
diff --git a/entries/board_directors/__init__.py b/entries/board_directors/__init__.py
new file mode 100644
index 0000000..2be1a0d
--- /dev/null
+++ b/entries/board_directors/__init__.py
@@ -0,0 +1,98 @@
+#! /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 *
+from dateutil import rrule
+from datetime import date, timedelta
+import shlex
+
+title = "Norwegian Boards of Directors (2002-2011)"
+description = "224 networks of the affiliations among board directors due to sitting on common boards of Norwegian public limited companies (as of 5 August 2009), from May 2002 onward, in monthly snapshots through August 2011. Some metadata is included, such as director and company names, city and postal code for companies, and gender for directors. The 'net2m' data are bipartite company-director networks, while the 'net1m' are one-mode projections containing co-memberships among directors."
+tags = ['Social', 'Affiliation', 'Unweighted', 'Projection', 'Temporal', 'Metadata']
+url = 'http://www.boardsandgender.com/data.php'
+citation = [('C. Seierstad and T. Opsahl, "For the few not the many? The effects of affirmative action on presence, prominence, and social capital of women directors in Norway." Scand. J. Manag. 27(1), 44-54 (2011).', 'http://toreopsahl.com/2010/09/30/article-for-the-few-not-the-many-the-effects-of-affirmative-action-on-presence-prominence-and-social-capital-of-women-directors-in-norway/')]
+icon_hash = '5733fa4b461efe0c7a678010'
+ustream_license = None
+upstream_prefix = 'http://www.boardsandgender.com/data/'
+files = []
+date = date(year=2002, day=1, month=5)
+for dt in rrule.rrule(rrule.MONTHLY, dtstart=date,
+ until=date + timedelta(days=30 * 113)):
+ s = "%d-%02d-%02d" % (dt.year, dt.month, dt.day)
+ files.append(((f"net2m/net2m_{s}.txt", "data_people.txt", "data_companies.txt"),
+ f"net2m_{s}", None))
+ files.append(((f"net1m/net1m_{s}.txt", "data_people.txt", "data_companies.txt"),
+ f"net1m_{s}", 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
+ if isinstance(fnames, str):
+ fnames = [fnames]
+ with ExitStack() as stack:
+ fs = [stack.enter_context(open_upstream_file(name, fn, "r",
+ encoding="ISO-8859-1"))
+ for fn in fnames]
+ edges = numpy.loadtxt(fs[0], dtype="int")
+ next(fs[1])
+ directors = {}
+ for line in fs[1]:
+ vals = shlex.split(line)
+ directors[int(vals[0])] = vals[1:]
+ companies = {}
+ for line in fs[2]:
+ vals = shlex.split(line)
+ companies[int(vals[0])] = vals[1:]
+
+ g = Graph(directed=False)
+ N = 0
+ if "net2m" in fnames[0]:
+ N = edges[:,0].max()
+ edges[:,1] += N # indexes are repeated
+ g.vp.organization = g.new_vp("int64_t")
+ g.vp.location = g.new_vp("string")
+ g.vp.vid = g.add_edge_list(edges, hashed=True)
+ g.vp.name = g.new_vp("string")
+ g.vp.gender = g.new_vp("int")
+
+ vertices = {g.vp.vid[v] : v for v in g.vertices()}
+
+ for v in g.vertices():
+ vid = g.vp.vid[v]
+ if vid > N:
+ g.vp.name[v] = directors[vid-N][0]
+ g.vp.gender[v] = directors[vid-N][1]
+ g.vp.vid[v] -= N
+ else:
+ g.vp.name[v] = companies[vid][1]
+ g.vp.organization[v] = companies[vid][0]
+ g.vp.location[v] = companies[vid][2]
+
+ remove_parallel_edges(g)
+
+ yield alt, g