History of garfield_citations
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/garfield_citations/__init__.py b/entries/garfield_citations/__init__.py
index 4f6b3be..4bb3b58 100644
--- a/entries/garfield_citations/__init__.py
+++ b/entries/garfield_citations/__init__.py
@@ -19,7 +19,7 @@
from .. import *
title = "Garfield's HistCite citation networks (1946-2002)"
-description = """Citation networks from E. Garfield's collection of datasets produced with the HistCite software for algorithmic historiography, each obtained from a search in the Web of Science (used with the permission of ISI), and converted into Pajek format by V. Batagelj and A. Mrvar. Nodes are publications, and each directed edge points from a cited publication to the citing one. 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 = """Citation networks from E. Garfield's collection of datasets produced with the HistCite software for algorithmic historiography, each obtained from a search in the Web of Science, and converted into networks by V. Batagelj and A. Mrvar. Nodes are publications, and each directed edge points from a cited publication to the citing one.
- `smallworld`: papers citing S. Milgram's 1967 *Psychology Today* paper on the small world problem, or with "small world" in the title (1967-2002).
- `small_griffith`: citations to H. Small and B. Griffith's 1974 papers on co-citation clustering, and their descendants (1973-2001).
[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/garfield_citations/__init__.py b/entries/garfield_citations/__init__.py
index fe46fd5..4f6b3be 100644
--- a/entries/garfield_citations/__init__.py
+++ b/entries/garfield_citations/__init__.py
@@ -38,7 +38,7 @@ tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040331022411/http://vlado.fmf.uni-lj.si/pub/networks/data/cite/default.htm'
citation = [('E. Garfield, "From Computational Linguistics to Algorithmic Historiography." Symposium in Honor of Casimir Borkowski, University of Pittsburgh (2001)', 'https://garfield.library.upenn.edu/papers/pittsburgh92001.pdf'),
('E. Garfield, "Historiographic Mapping of Knowledge Domains Literature." Journal of Information Science 30(2), 119-145 (2004)', 'https://doi.org/10.1177/0165551504042802')]
-icon_hash = '58b10e58a411221d0e7c6821'
+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/garfield_citations/__init__.py b/entries/garfield_citations/__init__.py
index 65bc660..fe46fd5 100644
--- a/entries/garfield_citations/__init__.py
+++ b/entries/garfield_citations/__init__.py
@@ -30,7 +30,10 @@ description = """Citation networks from E. Garfield's collection of datasets pro
The networks have the following properties:
-- Nodes: `name`, the first author of the publication; `year`, the year of publication; `gcs`, the global citation score of the publication (its number of citations in the whole Web of Science, at the time of the search); `reference` (`small_griffith` and `zewail` only), a short reference to the publication (author, year, volume and page)."""
+- (Node) `name`: the first author of the publication.
+- (Node) `year`: the year of publication.
+- (Node) `gcs`: the global citation score of the publication (its number of citations in the whole Web of Science, at the time of the search).
+- (Node) `reference` (`small_griffith` and `zewail` only): a short reference to the publication (author, year, volume and page)."""
tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
url = 'https://web.archive.org/web/20040331022411/http://vlado.fmf.uni-lj.si/pub/networks/data/cite/default.htm'
citation = [('E. Garfield, "From Computational Linguistics to Algorithmic Historiography." Symposium in Honor of Casimir Borkowski, University of Pittsburgh (2001)', 'https://garfield.library.upenn.edu/papers/pittsburgh92001.pdf'),
[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/garfield_citations/__init__.py b/entries/garfield_citations/__init__.py
index 09c2b9f..65bc660 100644
--- a/entries/garfield_citations/__init__.py
+++ b/entries/garfield_citations/__init__.py
@@ -41,13 +41,11 @@ upstream_license = None
# files are obtained from the Internet Archive.
upstream_prefix = 'https://web.archive.org/web/20051030090325id_/http://vlado.fmf.uni-lj.si/pub/networks/data/cite'
files = [('SmallW.zip:SmallW.paj', 'smallworld', None),
- ('SmaGri.zip:SmaGri.paj', 'small_griffith', None),
+ (('SmaGri.zip:SmaGri.paj', 'SmaGri.zip:SmaGriLong.nam'), 'small_griffith', None),
('SciMet.zip:SciMet.paj', 'scientometrics', None),
('Kohonen.zip:Kohonen.paj', 'kohonen', None),
- ('Zewail.zip:Zewail.paj', 'zewail', None),
- ('Lederberg.zip:Lederberg.paj', 'lederberg', None),
- ('SmaGri.zip:SmaGriLong.nam', 'small_griffith', None),
- ('Zewail.zip:ZewailLong.nam', 'zewail', None)]
+ (('Zewail.zip:Zewail.paj', 'Zewail.zip:ZewailLong.nam'), 'zewail', None),
+ ('Lederberg.zip:Lederberg.paj', 'lederberg', None)]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
@@ -58,20 +56,19 @@ def fetch_upstream(force=False):
@annotate()
def parse(alts=None):
name = __name__.split(".")[-1]
- for fname, alt, fmt in files:
+ for fnames, alt, fmt in files:
if alts is not None and alt not in alts:
continue
- if not fname.endswith(".paj"):
- continue
- items = load_pajek(name, fname)
+ if isinstance(fnames, str):
+ fnames = (fnames,)
+ items = load_pajek(name, fnames[0])
g = pajek_graph(get_pajek_item(items, "network"))
set_pajek_partition(g, get_pajek_item(items, "partition"), "year")
set_pajek_partition(g, get_pajek_item(items, "vector"), "gcs")
- for f2, alt2, fmt2 in files:
- if alt2 == alt and f2.endswith(".nam"):
- # the .nam files have only vertex lines, without a header
- with open_upstream_file(name, f2, "rb") as f:
- refs = [l.split(b'"')[1].decode("latin-1")
- for l in f.read().splitlines() if b'"' in l]
- g.vp.reference = g.new_vp("string", vals=refs)
+ for f2 in fnames[1:]:
+ # the .nam files have only vertex lines, without a header
+ with open_upstream_file(name, f2, "rb") as f:
+ refs = [l.split(b'"')[1].decode("latin-1")
+ for l in f.read().splitlines() if b'"' in l]
+ g.vp.reference = g.new_vp("string", vals=refs)
yield alt, g
[entries] New entry: garfield_citations 7064e3c
diff --git a/entries/garfield_citations/__init__.py b/entries/garfield_citations/__init__.py
new file mode 100644
index 0000000..09c2b9f
--- /dev/null
+++ b/entries/garfield_citations/__init__.py
@@ -0,0 +1,77 @@
+#! /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 = "Garfield's HistCite citation networks (1946-2002)"
+description = """Citation networks from E. Garfield's collection of datasets produced with the HistCite software for algorithmic historiography, each obtained from a search in the Web of Science (used with the permission of ISI), and converted into Pajek format by V. Batagelj and A. Mrvar. Nodes are publications, and each directed edge points from a cited publication to the citing one. The data were distributed in Pajek format on the Pajek datasets page of V. Batagelj and A. Mrvar, from which this version was obtained.
+
+- `smallworld`: papers citing S. Milgram's 1967 *Psychology Today* paper on the small world problem, or with "small world" in the title (1967-2002).
+- `small_griffith`: citations to H. Small and B. Griffith's 1974 papers on co-citation clustering, and their descendants (1973-2001).
+- `scientometrics`: articles from or citing the journal *Scientometrics* (1978-2000).
+- `kohonen`: articles with the topic "self-organizing maps" or with references to T. Kohonen (1963-2002).
+- `zewail`: articles by or citing A. H. Zewail (1970-2002).
+- `lederberg`: articles by or citing J. Lederberg (1946-2002).
+
+The networks have the following properties:
+
+- Nodes: `name`, the first author of the publication; `year`, the year of publication; `gcs`, the global citation score of the publication (its number of citations in the whole Web of Science, at the time of the search); `reference` (`small_griffith` and `zewail` only), a short reference to the publication (author, year, volume and page)."""
+tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/20040331022411/http://vlado.fmf.uni-lj.si/pub/networks/data/cite/default.htm'
+citation = [('E. Garfield, "From Computational Linguistics to Algorithmic Historiography." Symposium in Honor of Casimir Borkowski, University of Pittsburgh (2001)', 'https://garfield.library.upenn.edu/papers/pittsburgh92001.pdf'),
+ ('E. Garfield, "Historiographic Mapping of Knowledge Domains Literature." Journal of Information Science 30(2), 119-145 (2004)', 'https://doi.org/10.1177/0165551504042802')]
+icon_hash = '58b10e58a411221d0e7c6821'
+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/20051030090325id_/http://vlado.fmf.uni-lj.si/pub/networks/data/cite'
+files = [('SmallW.zip:SmallW.paj', 'smallworld', None),
+ ('SmaGri.zip:SmaGri.paj', 'small_griffith', None),
+ ('SciMet.zip:SciMet.paj', 'scientometrics', None),
+ ('Kohonen.zip:Kohonen.paj', 'kohonen', None),
+ ('Zewail.zip:Zewail.paj', 'zewail', None),
+ ('Lederberg.zip:Lederberg.paj', 'lederberg', None),
+ ('SmaGri.zip:SmaGriLong.nam', 'small_griffith', None),
+ ('Zewail.zip:ZewailLong.nam', 'zewail', 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]
+ for fname, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ if not fname.endswith(".paj"):
+ continue
+ items = load_pajek(name, fname)
+ g = pajek_graph(get_pajek_item(items, "network"))
+ set_pajek_partition(g, get_pajek_item(items, "partition"), "year")
+ set_pajek_partition(g, get_pajek_item(items, "vector"), "gcs")
+ for f2, alt2, fmt2 in files:
+ if alt2 == alt and f2.endswith(".nam"):
+ # the .nam files have only vertex lines, without a header
+ with open_upstream_file(name, f2, "rb") as f:
+ refs = [l.split(b'"')[1].decode("latin-1")
+ for l in f.read().splitlines() if b'"' in l]
+ g.vp.reference = g.new_vp("string", vals=refs)
+ yield alt, g