History of freshmen
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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 823aabf..2f6c89f 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -34,7 +34,7 @@ The networks have the following properties (the vertex attributes were collected
tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://doi.org/10.1023/A:1009683123448')]
-icon_hash = '595b2427549f067e0263b551'
+date_added = '2020-08-11'
upstream_prefix = 'https://www.stats.ox.ac.uk/~snijders/siena'
files = [(('DataEvelien_98_99.zip:stu98t0.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't0', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t2.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't2', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t3.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't3', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t5.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't5', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t6.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't6', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}}))]
[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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 33f5d86..823aabf 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -25,12 +25,12 @@ Each network is a complete directed graph with self-loops, in which the edge $(i
The networks have the following properties (the vertex attributes were collected at `t0`):
-- `id`: the student's ID.
-- `gender`: 1 = male, 2 = female.
-- `age`: age in years (99 = missing).
-- `program`: 1 = regular four-year program, 2 = two-year program (for students who previously completed higher vocational training; these are typically older).
-- `smoking`: 1 = no, 2 = yes, at parties, 3 = 1-3 cigarettes per day, 4 = 4-10 per day, 5 = more than 10 per day, 99 = missing.
-- `weight` (edges): the rating of $j$ by $i$: 1 = best friendship, 2 = friendship, 3 = friendly relationship, 4 = neutral relationship, 5 = troubled relationship, 6 = item non-response (according to the data providers, also often used to express "unknown person", for which the code 0 is otherwise reserved), 8 = diagonal (after `t0`), 9 = actor non-response."""
+- (Node) `id`: the student's ID.
+- (Node) `gender`: 1 = male, 2 = female.
+- (Node) `age`: age in years (99 = missing).
+- (Node) `program`: 1 = regular four-year program, 2 = two-year program (for students who previously completed higher vocational training; these are typically older).
+- (Node) `smoking`: 1 = no, 2 = yes, at parties, 3 = 1-3 cigarettes per day, 4 = 4-10 per day, 5 = more than 10 per day, 99 = missing.
+- (Edge) `weight` (edges): the rating of $j$ by $i$: 1 = best friendship, 2 = friendship, 3 = friendly relationship, 4 = neutral relationship, 5 = troubled relationship, 6 = item non-response (according to the data providers, also often used to express "unknown person", for which the code 0 is otherwise reserved), 8 = diagonal (after `t0`), 9 = actor non-response."""
tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://doi.org/10.1023/A:1009683123448')]
[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/freshmen/__init__.py b/entries/freshmen/__init__.py
index f3f26a9..33f5d86 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -46,7 +46,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] 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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 6cc1720..f3f26a9 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -19,8 +19,18 @@
from .. import *
title = "Zeggelink's freshmen (1999)"
-description = """Snapshots of friendships among freshmen majoring in Sociology at the University of Groningen, collected five times over the 1998-1999 year. The direction of an edge indicates that student i is friends with student j, and the edge weight gives their friendship level from 1 (best friend) to 5 (troubled relation). Metadata include gender, age, program type, and smoking behavior.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = r"""Friendship ratings among the 34 freshmen majoring in Sociology at the University of Groningen (Netherlands) in the academic year 1998-1999, collected by E. Zeggelink in collaboration with G. van de Bunt with questionnaires. Except for a few prior acquaintances, the students did not know each other at the start. Each student rated their relationship with every other student on a scale from best friendship to troubled relationship. The data were collected at seven time points, of which five are available: `t0`, at the start of the year (during an introduction period), and `t2`, `t3`, `t5` and `t6`, about 6, 9, 21 and 27 weeks later. There is increasing nonresponse at the later time points.
+
+Each network is a complete directed graph with self-loops, in which the edge $(i, j)$ stores the rating given by student $i$ to student $j$; therefore, edges should be selected according to their `weight` values.
+
+The networks have the following properties (the vertex attributes were collected at `t0`):
+
+- `id`: the student's ID.
+- `gender`: 1 = male, 2 = female.
+- `age`: age in years (99 = missing).
+- `program`: 1 = regular four-year program, 2 = two-year program (for students who previously completed higher vocational training; these are typically older).
+- `smoking`: 1 = no, 2 = yes, at parties, 3 = 1-3 cigarettes per day, 4 = 4-10 per day, 5 = more than 10 per day, 99 = missing.
+- `weight` (edges): the rating of $j$ by $i$: 1 = best friendship, 2 = friendship, 3 = friendly relationship, 4 = neutral relationship, 5 = troubled relationship, 6 = item non-response (according to the data providers, also often used to express "unknown person", for which the code 0 is otherwise reserved), 8 = diagonal (after `t0`), 9 = actor non-response."""
tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://doi.org/10.1023/A:1009683123448')]
Update copyright information 73a4f0d
diff --git a/entries/freshmen/__init__.py b/entries/freshmen/__init__.py
index 9c5643b..6cc1720 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__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/freshmen/__init__.py b/entries/freshmen/__init__.py
index f7b42ff..9c5643b 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 66260d2..f7b42ff 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 02158fc..66260d2 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__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/freshmen/__init__.py b/entries/freshmen/__init__.py
index fa19bdc..02158fc 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -23,7 +23,7 @@ description = """Snapshots of friendships among freshmen majoring in Sociology a
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
-citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://link.springer.com/article/10.1023%2FA%3A1009683123448?LI=true')]
+citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://doi.org/10.1023/A:1009683123448')]
icon_hash = '595b2427549f067e0263b551'
upstream_prefix = 'https://www.stats.ox.ac.uk/~snijders/siena'
files = [(('DataEvelien_98_99.zip:stu98t0.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't0', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t2.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't2', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t3.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't3', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t5.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't5', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t6.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't6', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}}))]
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/freshmen/__init__.py b/entries/freshmen/__init__.py
index 8ec9eaf..fa19bdc 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__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/freshmen/__init__.py b/entries/freshmen/__init__.py
index 3417c66..8ec9eaf 100644
--- a/entries/freshmen/__init__.py
+++ b/entries/freshmen/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "Zeggelink's freshmen (1999)"
-description = "Snapshots of friendships among freshmen majoring in Sociology at the University of Groningen, collected five times over the 1998-1999 year. The direction of an edge indicates that student i is friends with student j, and the edge weight gives their friendship level from 1 (best friend) to 5 (troubled relation). Metadata include gender, age, program type, and smoking behavior."
+description = """Snapshots of friendships among freshmen majoring in Sociology at the University of Groningen, collected five times over the 1998-1999 year. The direction of an edge indicates that student i is friends with student j, and the edge weight gives their friendship level from 1 (best friend) to 5 (troubled relation). Metadata include gender, age, program type, and smoking behavior.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://link.springer.com/article/10.1023%2FA%3A1009683123448?LI=true')]
Initial commit cc85872
diff --git a/entries/freshmen/__init__.py b/entries/freshmen/__init__.py
new file mode 100644
index 0000000..3417c66
--- /dev/null
+++ b/entries/freshmen/__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 = "Zeggelink's freshmen (1999)"
+description = "Snapshots of friendships among freshmen majoring in Sociology at the University of Groningen, collected five times over the 1998-1999 year. The direction of an edge indicates that student i is friends with student j, and the edge weight gives their friendship level from 1 (best friend) to 5 (troubled relation). Metadata include gender, age, program type, and smoking behavior."
+tags = ['Social', 'Offline', 'Weighted', 'Temporal', 'Metadata']
+url = 'http://www.stats.ox.ac.uk/~snijders/siena/Zeggelink_data.htm'
+citation = [('G. Van de Bunt, M. Van Duijn, and T. Snijders. "Friendship networks through time: An actor-oriented dynamic statistical network model." Computational & Mathematical Organization Theory 5.2. 167-192. (1999).', 'https://link.springer.com/article/10.1023%2FA%3A1009683123448?LI=true')]
+icon_hash = '595b2427549f067e0263b551'
+upstream_prefix = 'https://www.stats.ox.ac.uk/~snijders/siena'
+files = [(('DataEvelien_98_99.zip:stu98t0.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't0', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t2.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't2', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t3.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't3', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t5.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't5', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}})), (('DataEvelien_98_99.zip:stu98t6.txt', 'DataEvelien_98_99.zip:stud98.txt'), 't6', ('matrix', {'vprops': {'fmt': 'txt', 'names': ['id', 'gender', 'age', 'program', 'smoking']}}))]
+
+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