logo Netzschleuder network catalog, repository, and centrifuge

History of libimseti

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 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/libimseti/__init__.py b/entries/libimseti/__init__.py
index 7310454..e50630d 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -31,7 +31,7 @@ The network has the following properties:
 tags = ['Social', 'Online', 'Weighted', 'Metadata']
 url = 'https://web.archive.org/web/20200901085122/http://www.occamslab.com/petricek/data/'
 citation = [('L. Brozovsky, V. Petricek, "Recommender System for Online Dating Service." Proceedings of Conference Znalosti 2007, Ostrava (2007)', 'https://doi.org/10.48550/arXiv.cs/0703042')]
-icon_hash = '583226a48cf714f319c427a5'
+date_added = '2020-08-11'
 upstream_license = ("Research use only; no redistribution without separate permission; no commercial use without permission from LibimSeTi.cz",
                     'https://web.archive.org/web/20200901085122/http://www.occamslab.com/petricek/data/')
 # The site of the data (www.occamslab.com/petricek/data/) is offline; the
[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/libimseti/__init__.py b/entries/libimseti/__init__.py
index 1ebb265..7310454 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -26,8 +26,8 @@ The data contain 17,359,346 ratings of 168,791 profiles by 135,359 users; all 22
 
 The network has the following properties:
 
-- `gender`: the gender of the user, `F` (female), `M` (male) or `U` (unknown).
-- Edge `weight`: the rating, from 1 to 10."""
+- (Node) `gender`: the gender of the user, `F` (female), `M` (male) or `U` (unknown).
+- (Edge) `weight`: the rating, from 1 to 10."""
 tags = ['Social', 'Online', 'Weighted', 'Metadata']
 url = 'https://web.archive.org/web/20200901085122/http://www.occamslab.com/petricek/data/'
 citation = [('L. Brozovsky, V. Petricek, "Recommender System for Online Dating Service." Proceedings of Conference Znalosti 2007, Ostrava (2007)', 'https://doi.org/10.48550/arXiv.cs/0703042')]
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 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/libimseti/__init__.py b/entries/libimseti/__init__.py
index 5d86eae..1ebb265 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -57,7 +57,6 @@ _check_rows = None
 @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 contact, convote_mentions, douban, email_company, epinions, flixster, football_league_results, hyves, lastfm, libimseti, livemocha, reuters, sa_companies, sister_cities, tripadvisor_ratings, wikilens_ratings and wikipedia_discussions_de to their original sources by Tiago de Paula Peixoto 8f097de
These entries downloaded KONECT's copies of the data. They now download
the original data (live, from pinned Wayback Machine snapshots, or by
re-extracting from public dumps), gaining the metadata KONECT dropped
(names, identifiers, timestamps, attributes), with descriptions and
citations rewritten from the original sources and factual errors fixed
(years and periods of contact, email_company, douban, flixster,
libimseti, sa_companies; the rated objects of epinions; the sign of
convote_mentions; songs merged by title alone in lastfm).

New networks: the trust network of epinions, the links of
wikilens_ratings, the JSON crawl of tripadvisor_ratings, and current
versions of sister_cities and wikipedia_discussions_de next to the ones
KONECT used. asu_social_networks only loses its mention of KONECT.

Changed: upstream contact convote_mentions douban email_company epinions flixster football_league_results hyves lastfm libimseti livemocha reuters sa_companies sister_cities tripadvisor_ratings wikilens_ratings wikipedia_discussions_de
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index efe2c7b..5d86eae 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -17,20 +17,41 @@
 # with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from .. import *
+import pandas
 
-title = "Libimseti.cz social network (2012)"
-description = """A network of ratings given between users at Libimseti.cz, a Czech online dating website. A directed edge (i,j) means that user i rate user j, and the corresponding edge weight is the given rating, on a scale of 1-10.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
-tags = ['Social', 'Online', 'Weighted']
-url = 'http://konect.cc/networks/libimseti'
-citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'https://doi.org/10.1145/2365934.2365942')]
+title = "Libimseti.cz dating ratings (2006)"
+description = """Ratings of user profiles by the users of LibimSeTi.cz, a Czech online dating website, as dumped on April 4, 2006. The data were provided by O. Neuberger (LibimSeTi.cz) and prepared by L. Brozovsky and V. Petricek (Charles University in Prague) for their study of recommender systems for online dating. Nodes are users, and a directed edge $i \\to j$ is a rating of the profile of user $j$ by user $i$, on a scale from 1 to 10 (10 is best; integer ratings only).
+
+The data contain 17,359,346 ratings of 168,791 profiles by 135,359 users; all 220,970 users rate or are rated. Only users who gave at least 20 ratings are included as raters, and users who gave constant ratings were excluded (by the source).
+
+The network has the following properties:
+
+- `gender`: the gender of the user, `F` (female), `M` (male) or `U` (unknown).
+- Edge `weight`: the rating, from 1 to 10."""
+tags = ['Social', 'Online', 'Weighted', 'Metadata']
+url = 'https://web.archive.org/web/20200901085122/http://www.occamslab.com/petricek/data/'
+citation = [('L. Brozovsky, V. Petricek, "Recommender System for Online Dating Service." Proceedings of Conference Znalosti 2007, Ostrava (2007)', 'https://doi.org/10.48550/arXiv.cs/0703042')]
 icon_hash = '583226a48cf714f319c427a5'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.libimseti.tar.bz2', None, 'konect')]
+upstream_license = ("Research use only; no redistribution without separate permission; no commercial use without permission from LibimSeTi.cz",
+                    'https://web.archive.org/web/20200901085122/http://www.occamslab.com/petricek/data/')
+# The site of the data (www.occamslab.com/petricek/data/) is offline; the
+# archive of the ratings and genders (the same data as the separate files
+# ratings.dat and gender.dat offered there, with Unix line endings) is
+# obtained from the Internet Archive
+upstream_prefix = 'https://web.archive.org/web'
+_zip = 'libimseti-complete.zip'
+files = [((f'{_zip}:libimseti/ratings.dat', f'{_zip}:libimseti/gender.dat'),
+          None, None)]
+archived_urls = {
+    _zip: 'https://web.archive.org/web/20151130002651id_/http://www.occamslab.com/petricek/data/libimseti-complete.zip',
+}
 
 def fetch_upstream(force=False):
-    return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
-                                force)
+    return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+                                tries=5, timeout=600)
+
+# For checks only: if set, only this many ratings (rows) are read
+_check_rows = None
 
 @cache_network()
 @coerce_props()
@@ -41,9 +62,20 @@ def parse(alts=None):
     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)
+        # "UserID,Gender" for all the users, numbered from 1 to n in order
+        with open_upstream_file(name, fnames[1], "rb") as f:
+            gender = pandas.read_csv(f, header=None, names=["id", "gender"],
+                                     dtype={"id": "int64", "gender": "str"})
+        assert (gender["id"].values == numpy.arange(1, len(gender) + 1)).all()
+        # "UserID,ProfileID,Rating"
+        with open_upstream_file(name, fnames[0], "rb") as f:
+            E = pandas.read_csv(f, header=None, dtype="int64",
+                                nrows=_check_rows).values
+        assert E[:, :2].min() >= 1 and E[:, :2].max() <= len(gender)
+        E[:, :2] -= 1
+        g = Graph(directed=True)
+        g.add_vertex(len(gender))
+        g.ep.weight = g.new_ep("int16_t")
+        g.add_edge_list(E, eprops=[g.ep.weight])
+        g.vp.gender = g.new_vp("string", vals=gender["gender"].values)
         yield alt, g
Update copyright information by Tiago de Paula Peixoto 73a4f0d
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 2dd20a8..efe2c7b 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__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 by Tiago de Paula Peixoto 3d288ea
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 2cacaec..2dd20a8 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__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 by Tiago de Paula Peixoto 8d005ae
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 929897c..2cacaec 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__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 by Tiago de Paula Peixoto db2efcc
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 3df6c87..929897c 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__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
Un-orphan KONECT datasets by Tiago de Paula Peixoto 894eba5
KONECT has been brought back from the dead for the time being.
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index aecd439..3df6c87 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/libimseti'
 citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'https://doi.org/10.1145/2365934.2365942')]
 icon_hash = '583226a48cf714f319c427a5'
 upstream_prefix = 'http://konect.cc/files'
-orphan = True
 files = [('download.tsv.libimseti.tar.bz2', None, 'konect')]
 
 def fetch_upstream(force=False):
Update citations to use DOIs by Tiago de Paula Peixoto e878874
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 2a4d49d..aecd439 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -23,7 +23,7 @@ description = """A network of ratings given between users at Libimseti.cz, a Cze
 [^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Social', 'Online', 'Weighted']
 url = 'http://konect.cc/networks/libimseti'
-citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'http://dl.acm.org/citation.cfm?id=2365942')]
+citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'https://doi.org/10.1145/2365934.2365942')]
 icon_hash = '583226a48cf714f319c427a5'
 upstream_prefix = 'http://konect.cc/files'
 orphan = True
Add support for 'orphan' datasets and tag konect entries by Tiago de Paula Peixoto e330b80
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 2ba488d..2a4d49d 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/libimseti'
 citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'http://dl.acm.org/citation.cfm?id=2365942')]
 icon_hash = '583226a48cf714f319c427a5'
 upstream_prefix = 'http://konect.cc/files'
+orphan = True
 files = [('download.tsv.libimseti.tar.bz2', None, 'konect')]
 
 def fetch_upstream(force=False):
Change license from GPLv3 to AGPLv3 by Tiago de Paula Peixoto d754be5
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 145f798..2ba488d 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__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 by Tiago de Paula Peixoto 1645314
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
index 0ef81aa..145f798 100644
--- a/entries/libimseti/__init__.py
+++ b/entries/libimseti/__init__.py
@@ -19,7 +19,8 @@
 from .. import *
 
 title = "Libimseti.cz social network (2012)"
-description = "A network of ratings given between users at Libimseti.cz, a Czech online dating website. A directed edge (i,j) means that user i rate user j, and the corresponding edge weight is the given rating, on a scale of 1-10."
+description = """A network of ratings given between users at Libimseti.cz, a Czech online dating website. A directed edge (i,j) means that user i rate user j, and the corresponding edge weight is the given rating, on a scale of 1-10.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Social', 'Online', 'Weighted']
 url = 'http://konect.cc/networks/libimseti'
 citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'http://dl.acm.org/citation.cfm?id=2365942')]
Initial commit by Tiago de Paula Peixoto cc85872
diff --git a/entries/libimseti/__init__.py b/entries/libimseti/__init__.py
new file mode 100644
index 0000000..0ef81aa
--- /dev/null
+++ b/entries/libimseti/__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 = "Libimseti.cz social network (2012)"
+description = "A network of ratings given between users at Libimseti.cz, a Czech online dating website. A directed edge (i,j) means that user i rate user j, and the corresponding edge weight is the given rating, on a scale of 1-10."
+tags = ['Social', 'Online', 'Weighted']
+url = 'http://konect.cc/networks/libimseti'
+citation = [('J. Kunegis, G Gröner, and T Gottron. "Online dating recommender systems: The split-complex number approach." Proc. 4th ACM RecSys Workshop on Recommender Systems and the Social Web (2012)', 'http://dl.acm.org/citation.cfm?id=2365942')]
+icon_hash = '583226a48cf714f319c427a5'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.libimseti.tar.bz2', None, 'konect')]
+
+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