History of dutch_criticism
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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index ea79c60..2168ee2 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -29,7 +29,7 @@ The network has the following properties:
tags = ['Social', 'Offline', 'Unweighted']
url = 'https://github.com/bavla/Nets/blob/master/data/Pajek/esna/literature.md'
citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'https://doi.org/10.1016/s0304-422x(99)00009-1')]
-icon_hash = '58ef763f62da63251186890d'
+date_added = '2020-08-11'
# The original Pajek data site is no longer online; the same archive is in
# V. Batagelj's repository on GitHub (pinned to a commit)
upstream_prefix = 'https://raw.githubusercontent.com/bavla/Nets/6c79afa6ebd14364f03d4a79357a6ee17f5e22df/data/Pajek/esna'
[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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 31528f1..ea79c60 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -23,8 +23,9 @@ description = """A network of literary criticism among 35 Dutch literary authors
The network has the following properties:
-- Nodes: `name` and `id`, the name of the person ("Surname, First name"); `x`, `y` and `z`, the node coordinates in the Pajek source file (their meaning is not documented).
-- Edges: `weight`, which is always 1."""
+- (Node) `name` and `id`: the name of the person ("Surname, First name").
+- (Node) `x`, `y` and `z`: the node coordinates in the Pajek source file (their meaning is not documented).
+- (Edge) `weight`: which is always 1."""
tags = ['Social', 'Offline', 'Unweighted']
url = 'https://github.com/bavla/Nets/blob/master/data/Pajek/esna/literature.md'
citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'https://doi.org/10.1016/s0304-422x(99)00009-1')]
[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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 6d70281..31528f1 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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] 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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index cc0353f..6d70281 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -26,10 +26,12 @@ The network has the following properties:
- Nodes: `name` and `id`, the name of the person ("Surname, First name"); `x`, `y` and `z`, the node coordinates in the Pajek source file (their meaning is not documented).
- Edges: `weight`, which is always 1."""
tags = ['Social', 'Offline', 'Unweighted']
-url = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna/literature.htm'
+url = 'https://github.com/bavla/Nets/blob/master/data/Pajek/esna/literature.md'
citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'https://doi.org/10.1016/s0304-422x(99)00009-1')]
icon_hash = '58ef763f62da63251186890d'
-upstream_prefix = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+# The original Pajek data site is no longer online; the same archive is in
+# V. Batagelj's repository on GitHub (pinned to a commit)
+upstream_prefix = 'https://raw.githubusercontent.com/bavla/Nets/6c79afa6ebd14364f03d4a79357a6ee17f5e22df/data/Pajek/esna'
files = [('literature.zip:literature_1976.net', None, 'pajek')]
def fetch_upstream(force=False):
[entries] Fix parse bugs and improve descriptions and metadata 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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 1b736c8..cc0353f 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -18,9 +18,13 @@
from .. import *
-title = "Dutch literacy criticism (1976)"
-description = """A network of criticisms among Dutch literary authors in 1976. The directed edge (i,j) denotes that an author i passed judgment on author j's work in an interview or review.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+title = "Dutch literary criticism (1976)"
+description = """A network of literary criticism among 35 Dutch literary authors and critics in 1976, compiled by W. de Nooy for his study of balance theory in literary criticism, and used as an example in the book "Exploratory Social Network Analysis with Pajek" by W. de Nooy, A. Mrvar and V. Batagelj. Nodes are persons (authors and critics), and a directed edge $i \\to j$ means that $i$ passed judgment on the work of $j$ in an interview or a review published in 1976.
+
+The network has the following properties:
+
+- Nodes: `name` and `id`, the name of the person ("Surname, First name"); `x`, `y` and `z`, the node coordinates in the Pajek source file (their meaning is not documented).
+- Edges: `weight`, which is always 1."""
tags = ['Social', 'Offline', 'Unweighted']
url = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna/literature.htm'
citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'https://doi.org/10.1016/s0304-422x(99)00009-1')]
@@ -45,5 +49,20 @@ def parse(alts=None):
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)
+ # the file ends with an empty "*Edges" section after the "*Arcs"
+ # section, which makes igraph read the network as undirected
+ data = fs[0].read().rstrip()
+ assert data.endswith(b"*Edges")
+ data = data[:-len(b"*Edges")]
+ g = parse_graph([io.BytesIO(data)], fmt, directed=True)
+ assert g.is_directed()
+ # recent igraph versions do not export the "id" attribute, and
+ # add internal graphml ids
+ if "id" not in g.vp:
+ g.vp.id = g.vp.name.copy()
+ for k in ["_graphml_vertex_id", "_pos"]:
+ if k in g.vp:
+ del g.vp[k]
+ if "_graphml_edge_id" in g.ep:
+ del g.ep["_graphml_edge_id"]
yield alt, g
Update copyright information 73a4f0d
diff --git a/entries/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 01c3144..1b736c8 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 488af0e..01c3144 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 8f40a41..488af0e 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 7d30d86..8f40a41 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 14998a6..7d30d86 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -23,7 +23,7 @@ description = """A network of criticisms among Dutch literary authors in 1976. T
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Unweighted']
url = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna/literature.htm'
-citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'http://www.sciencedirect.com/science/article/pii/S0304422X99000091')]
+citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'https://doi.org/10.1016/s0304-422x(99)00009-1')]
icon_hash = '58ef763f62da63251186890d'
upstream_prefix = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
files = [('literature.zip:literature_1976.net', None, 'pajek')]
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 09733e3..14998a6 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__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 1645314
diff --git a/entries/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
index 11195ff..09733e3 100644
--- a/entries/dutch_criticism/__init__.py
+++ b/entries/dutch_criticism/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "Dutch literacy criticism (1976)"
-description = "A network of criticisms among Dutch literary authors in 1976. The directed edge (i,j) denotes that an author i passed judgment on author j's work in an interview or review."
+description = """A network of criticisms among Dutch literary authors in 1976. The directed edge (i,j) denotes that an author i passed judgment on author j's work in an interview or review.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Unweighted']
url = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna/literature.htm'
citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'http://www.sciencedirect.com/science/article/pii/S0304422X99000091')]
Initial commit cc85872
diff --git a/entries/dutch_criticism/__init__.py b/entries/dutch_criticism/__init__.py
new file mode 100644
index 0000000..11195ff
--- /dev/null
+++ b/entries/dutch_criticism/__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 = "Dutch literacy criticism (1976)"
+description = "A network of criticisms among Dutch literary authors in 1976. The directed edge (i,j) denotes that an author i passed judgment on author j's work in an interview or review."
+tags = ['Social', 'Offline', 'Unweighted']
+url = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna/literature.htm'
+citation = [('W. De Nooy, "A literary playground: Literary criticism and balance theory." Poetics 26 (5-6), 385-404 (1999).', 'http://www.sciencedirect.com/science/article/pii/S0304422X99000091')]
+icon_hash = '58ef763f62da63251186890d'
+upstream_prefix = 'http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+files = [('literature.zip:literature_1976.net', None, 'pajek')]
+
+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