History of foldoc
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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 4be033a..a687423 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -31,7 +31,7 @@ tags = ['Informational', 'Web graph', 'Weighted', 'Metadata']
url = 'https://web.archive.org/web/20040331022112/http://vlado.fmf.uni-lj.si/pub/networks/data/dic/foldoc/foldoc.htm'
citation = [('V. Batagelj, A. Mrvar, M. Zaveršnik, "Network analysis of texts." Proceedings of the 5th International Multi-Conference Information Society - Language Technologies, 143-148, Ljubljana (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf'),
('D. Howe (Ed.), "FOLDOC: The Free On-line Dictionary of Computing" (2002)', 'https://foldoc.org/')]
-icon_hash = '57eaddd08cf714f319c38e45'
+date_added = '2020-08-11'
upstream_license = ('GNU Free Documentation License, Version 1.1 or later', 'https://www.gnu.org/licenses/fdl-1.3.html')
# vlado.fmf.uni-lj.si is unreliable; the file is 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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 1b6df55..4be033a 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -25,8 +25,8 @@ Nodes are dictionary terms, and a directed edge $(X, Y)$ exists if the term $Y$
The network has the following properties:
-- Nodes: `name`, the dictionary term.
-- Edges: `weight`, the multiplicity of the edge (as given in the source)."""
+- (Node) `name`: the dictionary term.
+- (Edge) `weight`: the multiplicity of the edge (as given in the source)."""
tags = ['Informational', 'Web graph', 'Weighted', 'Metadata']
url = 'https://web.archive.org/web/20040331022112/http://vlado.fmf.uni-lj.si/pub/networks/data/dic/foldoc/foldoc.htm'
citation = [('V. Batagelj, A. Mrvar, M. Zaveršnik, "Network analysis of texts." Proceedings of the 5th International Multi-Conference Information Society - Language Technologies, 143-148, Ljubljana (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf'),
[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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 4325422..1b6df55 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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 fname, alt, fmt in files:
if alts is not None and alt not in alts:
[entries] Move KONECT-derived entries to their original sources 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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 496f9d6..4325422 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -19,14 +19,24 @@
from .. import *
title = "FOLDOC entries (2002)"
-description = """A network of hyperlinks among entries in the Free On-line Dictionary of Computing (FOLDOC, www.foldoc.org), an online dictionary of acronyms and technical terms for computers. An edge points from i to j if the term j is referred to in the entry for term i. Edge weight denotes number of uses of the same term.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
-tags = ['Informational', 'Web graph', 'Weighted']
-url = 'http://konect.cc/networks/foldoc'
-citation = [('V. Batagelj, A. Orvar, & M. Zaversnik, "Network analysis of texts.” Language Technologies, 143-148 (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf')]
+description = """A network of cross-references among the terms of the Free On-line Dictionary of Computing (FOLDOC), a searchable dictionary of acronyms, jargon, programming languages, tools, architecture, operating systems, networking, theory, standards, companies, products and history, and in fact anything to do with computing, edited by Denis Howe since 1985 with contributions from hundreds of people. The network was extracted from the dictionary and cleaned by Vladimir Batagelj and Andrej Mrvar in February/June 2002, and distributed in their Pajek data repository.
+
+Nodes are dictionary terms, and a directed edge $(X, Y)$ exists if the term $Y$ is used in the dictionary to describe the meaning of the term $X$. The Pajek repository page describes a network with 13,380 nodes and 120,700 edges, while the distributed file contains 13,356 nodes and 120,238 edges.
+
+The network has the following properties:
+
+- Nodes: `name`, the dictionary term.
+- Edges: `weight`, the multiplicity of the edge (as given in the source)."""
+tags = ['Informational', 'Web graph', 'Weighted', 'Metadata']
+url = 'https://web.archive.org/web/20040331022112/http://vlado.fmf.uni-lj.si/pub/networks/data/dic/foldoc/foldoc.htm'
+citation = [('V. Batagelj, A. Mrvar, M. Zaveršnik, "Network analysis of texts." Proceedings of the 5th International Multi-Conference Information Society - Language Technologies, 143-148, Ljubljana (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf'),
+ ('D. Howe (Ed.), "FOLDOC: The Free On-line Dictionary of Computing" (2002)', 'https://foldoc.org/')]
icon_hash = '57eaddd08cf714f319c38e45'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.foldoc.tar.bz2', None, 'konect')]
+upstream_license = ('GNU Free Documentation License, Version 1.1 or later', 'https://www.gnu.org/licenses/fdl-1.3.html')
+# vlado.fmf.uni-lj.si is unreliable; the file is obtained from the Internet
+# Archive.
+upstream_prefix = 'https://web.archive.org/web/20201118122652id_/http://vlado.fmf.uni-lj.si/pub/networks/data/dic/foldoc'
+files = [('foldoc.zip:foldoc.net', None, 'pajek')]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
@@ -38,12 +48,9 @@ def fetch_upstream(force=False):
def parse(alts=None):
global files
name = __name__.split(".")[-1]
- for fnames, alt, fmt in files:
+ for fname, 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)
+ net = get_pajek_item(load_pajek(name, fname), "network")
+ g = pajek_graph(net, directed=True)
yield alt, g
Update copyright information 73a4f0d
diff --git a/entries/foldoc/__init__.py b/entries/foldoc/__init__.py
index ccadc76..496f9d6 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 393aca6..ccadc76 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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/foldoc/__init__.py b/entries/foldoc/__init__.py
index 327b385..393aca6 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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/foldoc/__init__.py b/entries/foldoc/__init__.py
index ca39c3e..327b385 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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 894eba5
KONECT has been brought back from the dead for the time being.
diff --git a/entries/foldoc/__init__.py b/entries/foldoc/__init__.py
index 5cf2d2b..ca39c3e 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/foldoc'
citation = [('V. Batagelj, A. Orvar, & M. Zaversnik, "Network analysis of texts.” Language Technologies, 143-148 (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf')]
icon_hash = '57eaddd08cf714f319c38e45'
upstream_prefix = 'http://konect.cc/files'
-orphan = True
files = [('download.tsv.foldoc.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Add support for 'orphan' datasets and tag konect entries e330b80
diff --git a/entries/foldoc/__init__.py b/entries/foldoc/__init__.py
index ca39c3e..5cf2d2b 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/foldoc'
citation = [('V. Batagelj, A. Orvar, & M. Zaversnik, "Network analysis of texts.” Language Technologies, 143-148 (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf')]
icon_hash = '57eaddd08cf714f319c38e45'
upstream_prefix = 'http://konect.cc/files'
+orphan = True
files = [('download.tsv.foldoc.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/foldoc/__init__.py b/entries/foldoc/__init__.py
index 5489674..ca39c3e 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__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/foldoc/__init__.py b/entries/foldoc/__init__.py
index e23ec5d..5489674 100644
--- a/entries/foldoc/__init__.py
+++ b/entries/foldoc/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "FOLDOC entries (2002)"
-description = "A network of hyperlinks among entries in the Free On-line Dictionary of Computing (FOLDOC, www.foldoc.org), an online dictionary of acronyms and technical terms for computers. An edge points from i to j if the term j is referred to in the entry for term i. Edge weight denotes number of uses of the same term."
+description = """A network of hyperlinks among entries in the Free On-line Dictionary of Computing (FOLDOC, www.foldoc.org), an online dictionary of acronyms and technical terms for computers. An edge points from i to j if the term j is referred to in the entry for term i. Edge weight denotes number of uses of the same term.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Informational', 'Web graph', 'Weighted']
url = 'http://konect.cc/networks/foldoc'
citation = [('V. Batagelj, A. Orvar, & M. Zaversnik, "Network analysis of texts.” Language Technologies, 143-148 (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf')]
Initial commit cc85872
diff --git a/entries/foldoc/__init__.py b/entries/foldoc/__init__.py
new file mode 100644
index 0000000..e23ec5d
--- /dev/null
+++ b/entries/foldoc/__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 = "FOLDOC entries (2002)"
+description = "A network of hyperlinks among entries in the Free On-line Dictionary of Computing (FOLDOC, www.foldoc.org), an online dictionary of acronyms and technical terms for computers. An edge points from i to j if the term j is referred to in the entry for term i. Edge weight denotes number of uses of the same term."
+tags = ['Informational', 'Web graph', 'Weighted']
+url = 'http://konect.cc/networks/foldoc'
+citation = [('V. Batagelj, A. Orvar, & M. Zaversnik, "Network analysis of texts.” Language Technologies, 143-148 (2002)', 'https://www.researchgate.net/profile/Vladimir_Batagelj/publication/246927225_Network_analysis_of_texts/links/540453ac0cf23d9765a619e5.pdf')]
+icon_hash = '57eaddd08cf714f319c38e45'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.foldoc.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