logo Netzschleuder network catalog, repository, and centrifuge

History of unicodelang

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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 46e8b6d..a0fc7aa 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -35,7 +35,7 @@ The network has the following properties:
 tags = ['Informational', 'Relatedness', 'Weighted', 'Metadata']
 url = 'https://cldr.unicode.org/index/downloads'
 citation = [('Unicode Consortium, "Unicode Common Locale Data Repository (CLDR), version 27." (2015)', 'https://www.unicode.org/Public/cldr/27/')]
-icon_hash = '5759ce42bd3e93b53c6955ee'
+date_added = '2020-08-11'
 upstream_license = ("Unicode License Agreement", "https://www.unicode.org/license.txt")
 upstream_prefix = 'https://unicode.org/Public/cldr/27'
 files = [(('core.zip:common/supplemental/supplementalData.xml',
[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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 0b0412b..46e8b6d 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -25,8 +25,13 @@ description = """A bipartite network of territories (countries and other territo
 
 The network has the following properties:
 
-- Nodes: `is_language`, whether the node is a language (otherwise it is a territory); `code`, the CLDR code of the language or territory; `name`, its English name, from the CLDR English locale data; `population`, `gdp` and `literacy_percent`, the population, the gross domestic product (in US dollars) and the literacy rate (in percent) of the territory, as given in the CLDR (territories only; NaN for languages).
-- Edges: `population_percent`, the percentage of the territory's population using the language; `writing_percent`, the percentage of these that also write the language, where given (NaN otherwise); `official_status`, the official status of the language in the territory (`official`, `de_facto_official`, `official_regional`, or empty if none)."""
+- (Node) `is_language`: whether the node is a language (otherwise it is a territory).
+- (Node) `code`: the CLDR code of the language or territory.
+- (Node) `name`: its English name, from the CLDR English locale data.
+- (Node) `population`, `gdp` and `literacy_percent`: the population, the gross domestic product (in US dollars) and the literacy rate (in percent) of the territory, as given in the CLDR (territories only; NaN for languages).
+- (Edge) `population_percent`: the percentage of the territory's population using the language.
+- (Edge) `writing_percent`: the percentage of these that also write the language, where given (NaN otherwise).
+- (Edge) `official_status`: the official status of the language in the territory (`official`, `de_facto_official`, `official_regional`, or empty if none)."""
 tags = ['Informational', 'Relatedness', 'Weighted', 'Metadata']
 url = 'https://cldr.unicode.org/index/downloads'
 citation = [('Unicode Consortium, "Unicode Common Locale Data Repository (CLDR), version 27." (2015)', 'https://www.unicode.org/Public/cldr/27/')]
[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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index ee90920..0b0412b 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -47,7 +47,6 @@ def fetch_upstream(force=False):
                       "writing_percent": "double"})
 @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] Remove the mentions of KONECT from the descriptions of edit_wikibooks, edit_wikinews, edit_wikipedia, edit_wikiquote, edit_wiktionary, linux, prosper, reactome, unicodelang, wiki_categories, wiki_link_dyn, wikipedia_link and wordnet by Tiago de Paula Peixoto 2216557
These entries were originally taken from KONECT and now download
their data from the original sources, so their descriptions no longer
refer to KONECT.
diff --git a/entries/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 94db21d..ee90920 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -21,7 +21,7 @@ from .. import *
 import xml.etree.ElementTree as ET
 
 title = "Languages spoken by country (2015)"
-description = """A bipartite network of territories (countries and other territories with their own ISO 3166 code) and the languages spoken in them, from the territory–language information of the Unicode Common Locale Data Repository (CLDR), version 27 (released in March 2015, the version used by KONECT). The CLDR collects these figures, with references to their sources, to estimate the number of users of each language in each territory; it aims at approximate figures for the literate, functional population of each language, i.e. the people able to read and write the language and comfortable enough to use it with computers. Each edge connects a territory with a language and is weighted by the percentage of the population of the territory that uses the language. Languages are identified by their CLDR (BCP 47) codes; where the data distinguish the scripts in which a language is written (e.g. `uz_Arab` and `uz` for Uzbek in Arabic and in the default script), these are separate nodes. The pseudo-territory "Unknown Region" (`ZZ`), which has no data, is not included, and Antarctica and Bouvet Island are connected only to the "unknown language" node (`und`).
+description = """A bipartite network of territories (countries and other territories with their own ISO 3166 code) and the languages spoken in them, from the territory–language information of the Unicode Common Locale Data Repository (CLDR), version 27 (released in March 2015). The CLDR collects these figures, with references to their sources, to estimate the number of users of each language in each territory; it aims at approximate figures for the literate, functional population of each language, i.e. the people able to read and write the language and comfortable enough to use it with computers. Each edge connects a territory with a language and is weighted by the percentage of the population of the territory that uses the language. Languages are identified by their CLDR (BCP 47) codes; where the data distinguish the scripts in which a language is written (e.g. `uz_Arab` and `uz` for Uzbek in Arabic and in the default script), these are separate nodes. The pseudo-territory "Unknown Region" (`ZZ`), which has no data, is not included, and Antarctica and Bouvet Island are connected only to the "unknown language" node (`und`).
 
 The network has the following properties:
 
[entries] Move KONECT-derived entries to their original sources by Tiago de Paula Peixoto 45943ea
The entries now download the data from where KONECT obtained them (live
or via the Wayback Machine), gaining the metadata KONECT dropped (names,
identifiers, timestamps, attributes), with descriptions and citations
rewritten from the original sources:

- Ma'ayan lab collection: faa_routes, foodweb_little_rock (taxon names
  were assigned to the wrong nodes), interactome_pdz, interactome_figeys,
  interactome_stelzl, interactome_vidal
- Pajek collection and primary sources: word_assoc (from the Edinburgh
  Associative Thesaurus; KONECT dropped all counts >= 10), foldoc,
  new_guinea_tribes
- bitriad: elite, ceo_club (adds the CEO KONECT's copy lacked)
- Lovro Subelj: cora, euroroad (adds isolated cities and parallel roads)
- SNAP: elec (all votes, with elections and nominators)
- Zenodo: wiki_talk (user ids and roles)
- MPI-SWS: flickr_growth, facebook_wall (edges now point from poster to
  wall owner, as documented), wikipedia_growth (full timestamps)
- Other sources: prosper, jester, reactome (the 2014
  release KONECT used), unicodelang (CLDR 27), wordnet (WordNet 3.1),
  chicago_road (TNTP ChicagoRegional)
diff --git a/entries/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index b846902..94db21d 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -18,22 +18,33 @@
 
 from .. import *
 
+import xml.etree.ElementTree as ET
+
 title = "Languages spoken by country (2015)"
-description = """A bipartite network of languages and the countries in which they are spoken, as estimated by Unicode. Edges are weighted by the proportion of the given country's population that is literate in a particular language.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
-tags = ['Informational', 'Relatedness', 'Weighted']
-url = 'http://konect.cc/networks/unicodelang'
-citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'https://doi.org/10.1145/2487788.2488173')]
+description = """A bipartite network of territories (countries and other territories with their own ISO 3166 code) and the languages spoken in them, from the territory–language information of the Unicode Common Locale Data Repository (CLDR), version 27 (released in March 2015, the version used by KONECT). The CLDR collects these figures, with references to their sources, to estimate the number of users of each language in each territory; it aims at approximate figures for the literate, functional population of each language, i.e. the people able to read and write the language and comfortable enough to use it with computers. Each edge connects a territory with a language and is weighted by the percentage of the population of the territory that uses the language. Languages are identified by their CLDR (BCP 47) codes; where the data distinguish the scripts in which a language is written (e.g. `uz_Arab` and `uz` for Uzbek in Arabic and in the default script), these are separate nodes. The pseudo-territory "Unknown Region" (`ZZ`), which has no data, is not included, and Antarctica and Bouvet Island are connected only to the "unknown language" node (`und`).
+
+The network has the following properties:
+
+- Nodes: `is_language`, whether the node is a language (otherwise it is a territory); `code`, the CLDR code of the language or territory; `name`, its English name, from the CLDR English locale data; `population`, `gdp` and `literacy_percent`, the population, the gross domestic product (in US dollars) and the literacy rate (in percent) of the territory, as given in the CLDR (territories only; NaN for languages).
+- Edges: `population_percent`, the percentage of the territory's population using the language; `writing_percent`, the percentage of these that also write the language, where given (NaN otherwise); `official_status`, the official status of the language in the territory (`official`, `de_facto_official`, `official_regional`, or empty if none)."""
+tags = ['Informational', 'Relatedness', 'Weighted', 'Metadata']
+url = 'https://cldr.unicode.org/index/downloads'
+citation = [('Unicode Consortium, "Unicode Common Locale Data Repository (CLDR), version 27." (2015)', 'https://www.unicode.org/Public/cldr/27/')]
 icon_hash = '5759ce42bd3e93b53c6955ee'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.unicodelang.tar.bz2', None, 'konect')]
+upstream_license = ("Unicode License Agreement", "https://www.unicode.org/license.txt")
+upstream_prefix = 'https://unicode.org/Public/cldr/27'
+files = [(('core.zip:common/supplemental/supplementalData.xml',
+           'core.zip:common/main/en.xml'), None, None)]
 
 def fetch_upstream(force=False):
     return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
                                 force)
 
 @cache_network()
-@coerce_props()
+@coerce_props(vforce={"population": "double", "gdp": "double",
+                      "literacy_percent": "double"},
+              eforce={"population_percent": "double",
+                      "writing_percent": "double"})
 @annotate()
 def parse(alts=None):
     global files
@@ -41,9 +52,66 @@ 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=False)
+        with open_upstream_file(name, fnames[0], "rb") as f:
+            # keep the comments, which give the English names
+            parser = ET.XMLParser(target=ET.TreeBuilder(insert_comments=True))
+            sup = ET.parse(f, parser=parser).getroot()
+        with open_upstream_file(name, fnames[1], "rb") as f:
+            en = ET.parse(f).getroot()
+        names = {}
+        for kind in ("language", "script", "territory"):
+            for x in en.iter(kind):
+                if x.get("alt") is None and x.get("type") is not None:
+                    names[(kind, x.get("type"))] = x.text
+        def lang_name(code, comment):
+            if ("language", code) in names:
+                return names[("language", code)]
+            if "_" in code:
+                base, script = code.split("_", 1)
+                if ("language", base) in names and ("script", script) in names:
+                    return f"{names[('language', base)]} ({names[('script', script)]})"
+            # otherwise, the name given in the comment that follows the entry
+            return comment
+
+        g = Graph(directed=False)
+        g.vp.is_language = g.new_vp("bool")
+        g.vp.code = g.new_vp("string")
+        g.vp.name = g.new_vp("string")
+        g.vp.population = g.new_vp("double")
+        g.vp.gdp = g.new_vp("double")
+        g.vp.literacy_percent = g.new_vp("double")
+        g.ep.population_percent = g.new_ep("double")
+        g.ep.writing_percent = g.new_ep("double")
+        g.ep.official_status = g.new_ep("string")
+        langs = {}
+        for t in sup.find("territoryInfo").findall("territory"):
+            if t.find("languagePopulation") is None:
+                continue        # ZZ, "Unknown Region", without data
+            u = g.add_vertex()
+            code = t.get("type")
+            g.vp.code[u] = code
+            g.vp.name[u] = names[("territory", code)]
+            g.vp.population[u] = float(t.get("population"))
+            g.vp.gdp[u] = float(t.get("gdp"))
+            g.vp.literacy_percent[u] = float(t.get("literacyPercent"))
+            children = list(t)
+            for i, lp in enumerate(children):
+                if lp.tag != "languagePopulation":
+                    continue
+                comment = ""
+                if i + 1 < len(children) and children[i + 1].tag is ET.Comment:
+                    comment = children[i + 1].text.strip()
+                lcode = lp.get("type")
+                if lcode not in langs:
+                    v = langs[lcode] = g.add_vertex()
+                    g.vp.is_language[v] = True
+                    g.vp.code[v] = lcode
+                    g.vp.name[v] = lang_name(lcode, comment)
+                    g.vp.population[v] = numpy.nan
+                    g.vp.gdp[v] = numpy.nan
+                    g.vp.literacy_percent[v] = numpy.nan
+                e = g.add_edge(u, langs[lcode])
+                g.ep.population_percent[e] = float(lp.get("populationPercent"))
+                g.ep.writing_percent[e] = float(lp.get("writingPercent", "nan"))
+                g.ep.official_status[e] = lp.get("officialStatus", "")
         yield alt, g
Update copyright information by Tiago de Paula Peixoto 73a4f0d
diff --git a/entries/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 3a4c55a..b846902 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 40ee829..3a4c55a 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 8886428..40ee829 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 3779f1c..8886428 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index c071bc3..3779f1c 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/unicodelang'
 citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'https://doi.org/10.1145/2487788.2488173')]
 icon_hash = '5759ce42bd3e93b53c6955ee'
 upstream_prefix = 'http://konect.cc/files'
-orphan = True
 files = [('download.tsv.unicodelang.tar.bz2', None, 'konect')]
 
 def fetch_upstream(force=False):
Update citations to use DOIs by Tiago de Paula Peixoto e878874
diff --git a/entries/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 40e99cc..c071bc3 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -23,7 +23,7 @@ description = """A bipartite network of languages and the countries in which the
 [^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Informational', 'Relatedness', 'Weighted']
 url = 'http://konect.cc/networks/unicodelang'
-citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'http://konect.cc/networks/unicodelang')]
+citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'https://doi.org/10.1145/2487788.2488173')]
 icon_hash = '5759ce42bd3e93b53c6955ee'
 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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 7f30ac0..40e99cc 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/unicodelang'
 citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'http://konect.cc/networks/unicodelang')]
 icon_hash = '5759ce42bd3e93b53c6955ee'
 upstream_prefix = 'http://konect.cc/files'
+orphan = True
 files = [('download.tsv.unicodelang.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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index 7688c2a..7f30ac0 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__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/unicodelang/__init__.py b/entries/unicodelang/__init__.py
index ebfbae4..7688c2a 100644
--- a/entries/unicodelang/__init__.py
+++ b/entries/unicodelang/__init__.py
@@ -19,7 +19,8 @@
 from .. import *
 
 title = "Languages spoken by country (2015)"
-description = "A bipartite network of languages and the countries in which they are spoken, as estimated by Unicode. Edges are weighted by the proportion of the given country's population that is literate in a particular language."
+description = """A bipartite network of languages and the countries in which they are spoken, as estimated by Unicode. Edges are weighted by the proportion of the given country's population that is literate in a particular language.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Informational', 'Relatedness', 'Weighted']
 url = 'http://konect.cc/networks/unicodelang'
 citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'http://konect.cc/networks/unicodelang')]
Initial commit by Tiago de Paula Peixoto cc85872
diff --git a/entries/unicodelang/__init__.py b/entries/unicodelang/__init__.py
new file mode 100644
index 0000000..ebfbae4
--- /dev/null
+++ b/entries/unicodelang/__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 = "Languages spoken by country (2015)"
+description = "A bipartite network of languages and the countries in which they are spoken, as estimated by Unicode. Edges are weighted by the proportion of the given country's population that is literate in a particular language."
+tags = ['Informational', 'Relatedness', 'Weighted']
+url = 'http://konect.cc/networks/unicodelang'
+citation = [('J. Kunegis "Unicode languages network dataset" KONECT (2016)', 'http://konect.cc/networks/unicodelang')]
+icon_hash = '5759ce42bd3e93b53c6955ee'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.unicodelang.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=False)
+        yield alt, g