History of costa_rica_visits
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] Remove superfluous details of the upstream distribution from the descriptions dc07aa0
The descriptions mentioned incidental details of how the upstream data are made available: the file formats (CSV, JSON, XML, GEXF, SBML, HIF, Pajek, UCINET, ...), file names, where the files were published or obtained from (Zenodo, figshare, Kaggle, the Pajek datasets page, the Internet Archive), and that some networks are only available in the gt format. These are left out; caveats about the data themselves are kept, referring to "the data" instead of "the file". The description of sp_baboons now lists its properties instead of the upstream columns, and says that events without a recipient are left out.
diff --git a/entries/costa_rica_visits/__init__.py b/entries/costa_rica_visits/__init__.py
index 77f9d51..8856cde 100644
--- a/entries/costa_rica_visits/__init__.py
+++ b/entries/costa_rica_visits/__init__.py
@@ -19,16 +19,16 @@
from .. import *
title = 'Visiting ties among families in Turrialba, Costa Rica (1948)'
-description = """Visiting relations among families in two rural neighborhoods (Attiro and San Juan Sur) of the Turrialba region in Costa Rica, from a large field study performed in 1948 by C. P. Loomis and collaborators on the impact of formal and informal social systems on social change. Nodes are families, and a directed edge represents frequent visits from one family to another (the number of visits was not recorded), classified as ordinary visits, visits among kin, or visits among ritual kin (between godparent and godchild). For San Juan Sur, there is also a network of the answers of the (heads of) families to the question "In case of a death in the family, whom would you notify first?". The investigators classified the families into family-friendship groupings on substantive (ethnographic) criteria. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.[^icon]
+description = """Visiting relations among families in two rural neighborhoods (Attiro and San Juan Sur) of the Turrialba region in Costa Rica, from a large field study performed in 1948 by C. P. Loomis and collaborators on the impact of formal and informal social systems on social change. Nodes are families, and a directed edge represents frequent visits from one family to another (the number of visits was not recorded), classified as ordinary visits, visits among kin, or visits among ritual kin (between godparent and godchild). For San Juan Sur, there is also a network of the answers of the (heads of) families to the question "In case of a death in the family, whom would you notify first?". The investigators classified the families into family-friendship groupings on substantive (ethnographic) criteria.[^icon]
- `attiro`: visiting ties among 60 families in Attiro.
- `san_juan_sur`: visiting ties among 75 families in San Juan Sur.
-- `san_juan_sur_death`: the families notified first in case of a death, among the same 75 families in San Juan Sur (one edge appears twice in the source); an edge presumably points from a family to a family it named in reply to the question (the direction is not documented in the source files).
+- `san_juan_sur_death`: the families notified first in case of a death, among the same 75 families in San Juan Sur (one edge appears twice in the source); an edge presumably points from a family to a family it named in reply to the question (the direction is not documented).
The networks have the following properties:
- (Node) `name`: the identifier of the family.
-- (Node) `grouping`: the ethnographic family-friendship grouping (San Juan Sur: nine groupings, numbered 1 to 9; Attiro: the documentation describes six groupings numbered 1 to 6, but the values in the source file are 0, 1, 4, 5, 7 and 10).
+- (Node) `grouping`: the ethnographic family-friendship grouping (San Juan Sur: nine groupings, numbered 1 to 9; Attiro: the documentation describes six groupings numbered 1 to 6, but the values in the data are 0, 1, 4, 5, 7 and 10).
- (Node) `status` (San Juan Sur only): the social status group of the family, from 1 to 14, indicating the average importance of its members (higher values represent higher status).
- (Node) `leader` (San Juan Sur only): whether the family contains a prestige leader, i.e. a person who received more than 10 nominations within the community to the question "Which persons would you pick to represent you and the people of this place on a commission?".
- (Edge) `kind` (visiting networks only): the kind of visit (1: ordinary, 2: among kin, 3: among ritual kin).
[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/costa_rica_visits/__init__.py b/entries/costa_rica_visits/__init__.py
index 9ae29ae..77f9d51 100644
--- a/entries/costa_rica_visits/__init__.py
+++ b/entries/costa_rica_visits/__init__.py
@@ -38,7 +38,7 @@ tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040706125140/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/visits.htm'
citation = [('C. P. Loomis, J. O. Morales, R. A. Clifford, O. E. Leonard, "Turrialba: Social Systems and the Introduction of Change." The Free Press, Glencoe, Illinois (1953)', 'https://web.archive.org/web/20040706125140/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/visits.htm'),
('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
-icon_hash = '58b2598ca411221d0e7c6823'
+date_added = '2026-10-25'
upstream_license = None
# The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
# files are obtained from the Internet Archive.
[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/costa_rica_visits/__init__.py b/entries/costa_rica_visits/__init__.py
index 3cf5cce..9ae29ae 100644
--- a/entries/costa_rica_visits/__init__.py
+++ b/entries/costa_rica_visits/__init__.py
@@ -27,8 +27,11 @@ description = """Visiting relations among families in two rural neighborhoods (A
The networks have the following properties:
-- Nodes: `name`, the identifier of the family; `grouping`, the ethnographic family-friendship grouping (San Juan Sur: nine groupings, numbered 1 to 9; Attiro: the documentation describes six groupings numbered 1 to 6, but the values in the source file are 0, 1, 4, 5, 7 and 10); `status` (San Juan Sur only), the social status group of the family, from 1 to 14, indicating the average importance of its members (higher values represent higher status); `leader` (San Juan Sur only), whether the family contains a prestige leader, i.e. a person who received more than 10 nominations within the community to the question "Which persons would you pick to represent you and the people of this place on a commission?".
-- Edges: `kind` (visiting networks only), the kind of visit (1: ordinary, 2: among kin, 3: among ritual kin).
+- (Node) `name`: the identifier of the family.
+- (Node) `grouping`: the ethnographic family-friendship grouping (San Juan Sur: nine groupings, numbered 1 to 9; Attiro: the documentation describes six groupings numbered 1 to 6, but the values in the source file are 0, 1, 4, 5, 7 and 10).
+- (Node) `status` (San Juan Sur only): the social status group of the family, from 1 to 14, indicating the average importance of its members (higher values represent higher status).
+- (Node) `leader` (San Juan Sur only): whether the family contains a prestige leader, i.e. a person who received more than 10 nominations within the community to the question "Which persons would you pick to represent you and the people of this place on a commission?".
+- (Edge) `kind` (visiting networks only): the kind of visit (1: ordinary, 2: among kin, 3: among ritual kin).
[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
[entries] costa_rica_visits, garfield_citations: list each network once ab10972
Both listed some networks once per upstream file they read (san_juan_sur; small_griffith and zewail), so that they were handled twice, e.g. by relayout.py, whose second replacement of the network file found the backup of the first one and failed, and appeared twice on the site. Each network is now listed once, with all its files; the networks are unchanged.
diff --git a/entries/costa_rica_visits/__init__.py b/entries/costa_rica_visits/__init__.py
index 9ba2ffa..3cf5cce 100644
--- a/entries/costa_rica_visits/__init__.py
+++ b/entries/costa_rica_visits/__init__.py
@@ -40,10 +40,12 @@ upstream_license = None
# The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
# files are obtained from the Internet Archive.
upstream_prefix = 'https://web.archive.org/web/20051030093948id_/http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+# (both San Juan Sur networks take partitions from both files)
files = [('attiro.zip:Attiro.paj', 'attiro', None),
- ('SanJuanSur.zip:SanJuanSur.paj', 'san_juan_sur', None),
- ('SanJuanSur.zip:SanJuanSur.paj', 'san_juan_sur_death', None),
- ('SanJuanSur2.zip:SanJuanSur2.paj', 'san_juan_sur', None)]
+ (('SanJuanSur.zip:SanJuanSur.paj', 'SanJuanSur2.zip:SanJuanSur2.paj'),
+ 'san_juan_sur', None),
+ (('SanJuanSur.zip:SanJuanSur.paj', 'SanJuanSur2.zip:SanJuanSur2.paj'),
+ 'san_juan_sur_death', None)]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
[entries] New entry: costa_rica_visits 1c9368e
diff --git a/entries/costa_rica_visits/__init__.py b/entries/costa_rica_visits/__init__.py
new file mode 100644
index 0000000..9ba2ffa
--- /dev/null
+++ b/entries/costa_rica_visits/__init__.py
@@ -0,0 +1,72 @@
+#! /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 = 'Visiting ties among families in Turrialba, Costa Rica (1948)'
+description = """Visiting relations among families in two rural neighborhoods (Attiro and San Juan Sur) of the Turrialba region in Costa Rica, from a large field study performed in 1948 by C. P. Loomis and collaborators on the impact of formal and informal social systems on social change. Nodes are families, and a directed edge represents frequent visits from one family to another (the number of visits was not recorded), classified as ordinary visits, visits among kin, or visits among ritual kin (between godparent and godchild). For San Juan Sur, there is also a network of the answers of the (heads of) families to the question "In case of a death in the family, whom would you notify first?". The investigators classified the families into family-friendship groupings on substantive (ethnographic) criteria. The data were distributed on the Pajek datasets page of the book *Exploratory Social Network Analysis with Pajek* (de Nooy, Mrvar and Batagelj), from which this version was obtained.[^icon]
+
+- `attiro`: visiting ties among 60 families in Attiro.
+- `san_juan_sur`: visiting ties among 75 families in San Juan Sur.
+- `san_juan_sur_death`: the families notified first in case of a death, among the same 75 families in San Juan Sur (one edge appears twice in the source); an edge presumably points from a family to a family it named in reply to the question (the direction is not documented in the source files).
+
+The networks have the following properties:
+
+- Nodes: `name`, the identifier of the family; `grouping`, the ethnographic family-friendship grouping (San Juan Sur: nine groupings, numbered 1 to 9; Attiro: the documentation describes six groupings numbered 1 to 6, but the values in the source file are 0, 1, 4, 5, 7 and 10); `status` (San Juan Sur only), the social status group of the family, from 1 to 14, indicating the average importance of its members (higher values represent higher status); `leader` (San Juan Sur only), whether the family contains a prestige leader, i.e. a person who received more than 10 nominations within the community to the question "Which persons would you pick to represent you and the people of this place on a commission?".
+- Edges: `kind` (visiting networks only), the kind of visit (1: ordinary, 2: among kin, 3: among ritual kin).
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Social', 'Offline', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20040706125140/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/visits.htm'
+citation = [('C. P. Loomis, J. O. Morales, R. A. Clifford, O. E. Leonard, "Turrialba: Social Systems and the Introduction of Change." The Free Press, Glencoe, Illinois (1953)', 'https://web.archive.org/web/20040706125140/http://vlado.fmf.uni-lj.si/pub/networks/data/esna/visits.htm'),
+ ('W. de Nooy, A. Mrvar, V. Batagelj, "Exploratory Social Network Analysis with Pajek." Cambridge University Press (2005)', 'https://doi.org/10.1017/CBO9780511806452')]
+icon_hash = '58b2598ca411221d0e7c6823'
+upstream_license = None
+# The Pajek data site (vlado.fmf.uni-lj.si) is no longer reachable, so the
+# files are obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/20051030093948id_/http://vlado.fmf.uni-lj.si/pub/networks/data/esna'
+files = [('attiro.zip:Attiro.paj', 'attiro', None),
+ ('SanJuanSur.zip:SanJuanSur.paj', 'san_juan_sur', None),
+ ('SanJuanSur.zip:SanJuanSur.paj', 'san_juan_sur_death', None),
+ ('SanJuanSur2.zip:SanJuanSur2.paj', 'san_juan_sur', 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):
+ name = __name__.split(".")[-1]
+ if alts is None or "attiro" in alts:
+ items = load_pajek(name, "attiro.zip:Attiro.paj")
+ g = pajek_graph(get_pajek_item(items, "network", "Attiro.net"), weight="kind")
+ set_pajek_partition(g, get_pajek_item(items, "partition", "Attiro_grouping.clu"), "grouping")
+ yield "attiro", g
+ items = load_pajek(name, "SanJuanSur.zip:SanJuanSur.paj")
+ items2 = load_pajek(name, "SanJuanSur2.zip:SanJuanSur2.paj")
+ for alt, net, kw in [("san_juan_sur", "SanJuanSur.net", "kind"),
+ ("san_juan_sur_death", "SanJuanSur_deathmessage.net", None)]:
+ if alts is not None and alt not in alts:
+ continue
+ g = pajek_graph(get_pajek_item(items, "network", net), weight=kw)
+ set_pajek_partition(g, get_pajek_item(items, "partition", "SanJuanSur_grouping.clu"), "grouping")
+ set_pajek_partition(g, get_pajek_item(items2, "partition", "SanJuanSur_status.clu"), "status")
+ set_pajek_partition(g, get_pajek_item(items2, "partition", "SanJuanSur_leaders.clu"), "leader", "bool")
+ yield alt, g