logo Netzschleuder network catalog, repository, and centrifuge

History of slovene_parties

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 by Tiago de Paula Peixoto 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/slovene_parties/__init__.py b/entries/slovene_parties/__init__.py
index 7de9e0c..853b3a8 100644
--- a/entries/slovene_parties/__init__.py
+++ b/entries/slovene_parties/__init__.py
@@ -19,7 +19,7 @@
 from .. import *
 
 title = 'Slovene parliamentary parties (1994)'
-description = """Perceived similarities between the ten Slovene parliamentary political parties in 1994, estimated by members of the Slovene National Parliament, from S. Kropivnik and A. Mrvar. In a questionnaire, the members of parliament were asked to estimate the distance between each pair of parties in the political space, on a scale from -3 (very dissimilar) to +3 (very similar). The estimates were given by 72 of the 90 members of parliament (17 were not available at the time of the interviews, and one refused); 64 respondents estimated all 45 pairs, and missing values were excluded. Nodes are the parties, and in this complete signed network every pair of parties is connected by an edge weighted by the average estimated similarity, multiplied by 100 and rounded. The data were distributed in Pajek format on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+description = """Perceived similarities between the ten Slovene parliamentary political parties in 1994, estimated by members of the Slovene National Parliament, from S. Kropivnik and A. Mrvar. In a questionnaire, the members of parliament were asked to estimate the distance between each pair of parties in the political space, on a scale from -3 (very dissimilar) to +3 (very similar). The estimates were given by 72 of the 90 members of parliament (17 were not available at the time of the interviews, and one refused); 64 respondents estimated all 45 pairs, and missing values were excluded. Nodes are the parties, and in this complete signed network every pair of parties is connected by an edge weighted by the average estimated similarity, multiplied by 100 and rounded.
 
 The network has the following properties:
 
[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/slovene_parties/__init__.py b/entries/slovene_parties/__init__.py
index f1e86e5..7de9e0c 100644
--- a/entries/slovene_parties/__init__.py
+++ b/entries/slovene_parties/__init__.py
@@ -29,7 +29,7 @@ tags = ['Social', 'Political', 'Signed', 'Weighted', 'Metadata']
 url = 'https://web.archive.org/web/20040331022619/http://vlado.fmf.uni-lj.si/pub/networks/data/soc/Samo/Stranke94.htm'
 citation = [('S. Kropivnik, A. Mrvar, "An Analysis of the Slovene Parliamentary Parties Network." In A. Ferligoj, A. Kramberger (eds.), Developments in Statistics and Methodology, Metodološki zvezki 12, FDV, Ljubljana (1996), pp. 209-216', 'https://dk.fdv.uni-lj.si/metodoloskizvezki/Pdfs/Mz12KropivnikMrvar.pdf'),
             ('P. Doreian, A. Mrvar, "A partitioning approach to structural balance." Social Networks 18(2), 149-168 (1996)', 'https://doi.org/10.1016/0378-8733(95)00259-6')]
-icon_hash = '58adc722a411221d0e7c67f2'
+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) 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/slovene_parties/__init__.py b/entries/slovene_parties/__init__.py
index 93260ff..f1e86e5 100644
--- a/entries/slovene_parties/__init__.py
+++ b/entries/slovene_parties/__init__.py
@@ -23,8 +23,8 @@ description = """Perceived similarities between the ten Slovene parliamentary po
 
 The network has the following properties:
 
-- Nodes: `name`, the abbreviation of the party (SKD: Slovene Christian Democrats; ZLSD: Associated List of Social Democrats; SDSS: Social Democratic Party of Slovenia; LDS: Liberal Democratic Party; ZS-ESS: the first of two Green parties separated after the 1992 elections; ZS: the second Green party, which had no representatives in parliament at the time of the interviews; DS: Democratic Party; SLS: Slovene People's Party; SNS: Slovene National Party; SPS: a group of deputies, former members of SNS, separated after the 1992 elections).
-- Edges: `weight`, the average estimated similarity of the two parties, multiplied by 100 (from -300 to 300)."""
+- (Node) `name`: the abbreviation of the party (SKD: Slovene Christian Democrats; ZLSD: Associated List of Social Democrats; SDSS: Social Democratic Party of Slovenia; LDS: Liberal Democratic Party; ZS-ESS: the first of two Green parties separated after the 1992 elections; ZS: the second Green party, which had no representatives in parliament at the time of the interviews; DS: Democratic Party; SLS: Slovene People's Party; SNS: Slovene National Party; SPS: a group of deputies, former members of SNS, separated after the 1992 elections).
+- (Edge) `weight`: the average estimated similarity of the two parties, multiplied by 100 (from -300 to 300)."""
 tags = ['Social', 'Political', 'Signed', 'Weighted', 'Metadata']
 url = 'https://web.archive.org/web/20040331022619/http://vlado.fmf.uni-lj.si/pub/networks/data/soc/Samo/Stranke94.htm'
 citation = [('S. Kropivnik, A. Mrvar, "An Analysis of the Slovene Parliamentary Parties Network." In A. Ferligoj, A. Kramberger (eds.), Developments in Statistics and Methodology, Metodološki zvezki 12, FDV, Ljubljana (1996), pp. 209-216', 'https://dk.fdv.uni-lj.si/metodoloskizvezki/Pdfs/Mz12KropivnikMrvar.pdf'),
[entries] New entry: slovene_parties by Tiago de Paula Peixoto 8e25dae
diff --git a/entries/slovene_parties/__init__.py b/entries/slovene_parties/__init__.py
new file mode 100644
index 0000000..93260ff
--- /dev/null
+++ b/entries/slovene_parties/__init__.py
@@ -0,0 +1,50 @@
+#! /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 = 'Slovene parliamentary parties (1994)'
+description = """Perceived similarities between the ten Slovene parliamentary political parties in 1994, estimated by members of the Slovene National Parliament, from S. Kropivnik and A. Mrvar. In a questionnaire, the members of parliament were asked to estimate the distance between each pair of parties in the political space, on a scale from -3 (very dissimilar) to +3 (very similar). The estimates were given by 72 of the 90 members of parliament (17 were not available at the time of the interviews, and one refused); 64 respondents estimated all 45 pairs, and missing values were excluded. Nodes are the parties, and in this complete signed network every pair of parties is connected by an edge weighted by the average estimated similarity, multiplied by 100 and rounded. The data were distributed in Pajek format on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+
+The network has the following properties:
+
+- Nodes: `name`, the abbreviation of the party (SKD: Slovene Christian Democrats; ZLSD: Associated List of Social Democrats; SDSS: Social Democratic Party of Slovenia; LDS: Liberal Democratic Party; ZS-ESS: the first of two Green parties separated after the 1992 elections; ZS: the second Green party, which had no representatives in parliament at the time of the interviews; DS: Democratic Party; SLS: Slovene People's Party; SNS: Slovene National Party; SPS: a group of deputies, former members of SNS, separated after the 1992 elections).
+- Edges: `weight`, the average estimated similarity of the two parties, multiplied by 100 (from -300 to 300)."""
+tags = ['Social', 'Political', 'Signed', 'Weighted', 'Metadata']
+url = 'https://web.archive.org/web/20040331022619/http://vlado.fmf.uni-lj.si/pub/networks/data/soc/Samo/Stranke94.htm'
+citation = [('S. Kropivnik, A. Mrvar, "An Analysis of the Slovene Parliamentary Parties Network." In A. Ferligoj, A. Kramberger (eds.), Developments in Statistics and Methodology, Metodološki zvezki 12, FDV, Ljubljana (1996), pp. 209-216', 'https://dk.fdv.uni-lj.si/metodoloskizvezki/Pdfs/Mz12KropivnikMrvar.pdf'),
+            ('P. Doreian, A. Mrvar, "A partitioning approach to structural balance." Social Networks 18(2), 149-168 (1996)', 'https://doi.org/10.1016/0378-8733(95)00259-6')]
+icon_hash = '58adc722a411221d0e7c67f2'
+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/20041223164743id_/http://vlado.fmf.uni-lj.si/pub/networks/data/soc/Samo'
+files = [('Stranke94.net', 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):
+    name = __name__.split(".")[-1]
+    items = load_pajek(name, 'Stranke94.net')
+    g = pajek_graph(get_pajek_item(items, "network"), symmetrize=True)
+    yield None, g