History of dblp_cite
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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 6078937..7690dac 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -34,7 +34,7 @@ tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
url = ['https://doi.org/10.4230/dblp.xml', 'https://web.archive.org/web/20170612152202/http://dblp.org/xml/release/']
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1'),
('dblp Team, "dblp computer science bibliography – Monthly Snapshot XML Release of October 2026." Schloss Dagstuhl – Leibniz Center for Informatics (2026)', 'https://doi.org/10.4230/dblp.xml.2026-10-03')]
-icon_hash = '575749bebd3e93b53c69555b'
+date_added = '2020-08-11'
upstream_license = ("Open Data Commons Attribution License (ODC-BY 1.0) for the release of 2017; Creative Commons Zero (CC0 1.0) for the release of 2026",
"https://creativecommons.org/publicdomain/zero/1.0/")
# The dblp release of 2017-05-02 (md5 cc92847c789bf2467d085ccf4948422f), which
[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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index eb1ace8..6078937 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -25,11 +25,11 @@ description = r"""Citations among publications in the dblp computer science bibl
The network has the following properties:
-- `name`: the dblp key of the publication.
-- `title`: the title of the publication.
-- `year`: the year of publication (-1 if missing).
-- `type`: the record type of the publication (see above).
-- `venue`: the journal (for articles) or the proceedings or book title (for papers in proceedings and book chapters); empty for other types."""
+- (Node) `name`: the dblp key of the publication.
+- (Node) `title`: the title of the publication.
+- (Node) `year`: the year of publication (-1 if missing).
+- (Node) `type`: the record type of the publication (see above).
+- (Node) `venue`: the journal (for articles) or the proceedings or book title (for papers in proceedings and book chapters); empty for other types."""
tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
url = ['https://doi.org/10.4230/dblp.xml', 'https://web.archive.org/web/20170612152202/http://dblp.org/xml/release/']
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1'),
[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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 6f8dbf2..eb1ace8 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -17,7 +17,6 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
from .. import *
-import array
import html.entities
import xml.etree.ElementTree as ET
@@ -128,7 +127,6 @@ def _new_pub_props(g):
@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] Add networks to existing entries 3023ce5
- digg_votes: the Digg friendship network (`friends`, next to `votes`) - facebook_wall: the friendship links (`friends`, next to `wall`) - interactome_vidal: CCSB's HI-I-05 interactions (`HI-I-05`, next to `maayan`) - trackers: ssc.io's tracker embedding network (`trackers`, next to KONECT's `third_parties`), with corrected description and citations - dblp_author_paper, dblp_cite, dblp_coauthor: the dblp release of 2026-10-03 (`2026-10`, next to `2017`) - fullerene_structures: year, licence and description
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index b51a92e..6f8dbf2 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -21,8 +21,8 @@ import array
import html.entities
import xml.etree.ElementTree as ET
-title = 'DBLP citations (2017)'
-description = r"""Citations among publications in the dblp computer science bibliography. The data are from the monthly release of 2 May 2017 of the XML dump of dblp, the computer science bibliography maintained by the University of Trier and Schloss Dagstuhl, which lists publications from journals, conference proceedings, books, theses and the arXiv Computing Research Repository (CoRR). Each record of the dump is a publication of one of the types `article` (journal articles and CoRR preprints), `inproceedings` (conference papers), `proceedings` (edited proceedings volumes), `book`, `incollection` (book chapters), `phdthesis` or `mastersthesis`; the person records (homepages) of the dump are not used. Authors are identified by their dblp name, which dblp disambiguates by hand where it can (homonymous authors are distinguished by a numeric suffix, e.g. "Wei Wang 0001"), but some of which may still refer to several persons. Some of the records list the dblp keys of the publications they cite; these citation data are sparse, cover only a small number of publications (mostly in databases, and published until the early 2000s), and are no longer maintained by dblp. Nodes are publications, and a directed edge from publication $i$ to publication $j$ means that $i$ cites $j$; only publications that cite or are cited by another one are included, and a few citations listed more than once are included only once. Some publications cite themselves, so that the network contains self-loops. A few of the cited items are web pages (records of type `www`, which have no year).
+title = 'DBLP citations (2017-2026)'
+description = r"""Citations among publications in the dblp computer science bibliography. The data are from the XML dump of dblp, the computer science bibliography maintained by the University of Trier and Schloss Dagstuhl, which lists publications from journals, conference proceedings, books, theses and the arXiv Computing Research Repository (CoRR). The collection contains one network for each of two monthly releases of the dump: `2017`, from the release of 2 May 2017, and `2026-10`, from the release of 3 October 2026. Each record of the dump is a publication of one of the types `article` (journal articles and CoRR preprints), `inproceedings` (conference papers), `proceedings` (edited proceedings volumes), `book`, `incollection` (book chapters), `phdthesis` or `mastersthesis`, and, in the release of 2026, also `data` (research data and artifacts); the person records (homepages) of the dump are not used. Authors are identified by their dblp name, which dblp disambiguates by hand where it can (homonymous authors are distinguished by a numeric suffix, e.g. "Wei Wang 0001"), but some of which may still refer to several persons. Some of the records list the dblp keys of the publications they cite; these citation data are sparse, cover only a small number of publications (mostly in databases, and published until the early 2000s), and are no longer maintained by dblp. Nodes are publications, and a directed edge from publication $i$ to publication $j$ means that $i$ cites $j$; only publications that cite or are cited by another one are included, and a few citations listed more than once are included only once. Some publications cite themselves, so that the network contains self-loops. A few of the cited items are web pages (records of type `www`, which have no year).
The network has the following properties:
@@ -32,19 +32,24 @@ The network has the following properties:
- `type`: the record type of the publication (see above).
- `venue`: the journal (for articles) or the proceedings or book title (for papers in proceedings and book chapters); empty for other types."""
tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
-url = 'https://dblp.org/xml/release/'
-citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1')]
+url = ['https://doi.org/10.4230/dblp.xml', 'https://web.archive.org/web/20170612152202/http://dblp.org/xml/release/']
+citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1'),
+ ('dblp Team, "dblp computer science bibliography – Monthly Snapshot XML Release of October 2026." Schloss Dagstuhl – Leibniz Center for Informatics (2026)', 'https://doi.org/10.4230/dblp.xml.2026-10-03')]
icon_hash = '575749bebd3e93b53c69555b'
-upstream_license = ("Open Data Commons Attribution License (ODC-BY 1.0)",
- "https://opendatacommons.org/licenses/by/1-0/")
+upstream_license = ("Open Data Commons Attribution License (ODC-BY 1.0) for the release of 2017; Creative Commons Zero (CC0 1.0) for the release of 2026",
+ "https://creativecommons.org/publicdomain/zero/1.0/")
# The dblp release of 2017-05-02 (md5 cc92847c789bf2467d085ccf4948422f), which
-# is no longer on dblp.org, from the Internet Archive
+# is no longer on dblp.org, from the Internet Archive, and the release of
+# 2026-10-03 (md5 cbd329100ea1bbb2873fa2f6d414ea00) from DROPS
upstream_prefix = 'https://web.archive.org/web/20170612152202id_/http://dblp.org/xml/release'
-files = [('dblp-2017-05-02.xml.gz', None, None)]
+drops_prefix = 'https://drops.dagstuhl.de/storage/artifacts/dblp/xml/2026'
+files = [('dblp-2017-05-02.xml.gz', '2017', None),
+ ('dblp-2026-10-03.xml.gz', '2026-10', None)]
def fetch_upstream(force=False):
- return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
- force)
+ name = __name__.split(".")[-1]
+ fetch_upstream_files(name, upstream_prefix, files[:1], force)
+ fetch_upstream_files(name, drops_prefix, files[1:], force)
class _DBLPTarget:
"""XML parser target that collects the records of the dblp dump (the
[entries] Move more KONECT-derived entries to their original sources bf9dc0e
The entries now download the data from where KONECT obtained them (live, or via the Wayback Machine), using the same release as KONECT where it is still available, and gain the metadata KONECT dropped; descriptions and citations are rewritten from the original sources: - Linton Freeman's UCINET data page: bible_nouns, bison, cattle, hens, highschool, kangaroo, macaques, moreno_sheep, physician_trust (the three relations and the physicians' attributes), rhesus_monkey, train_terrorists, windsurfers (now the networks `interaction` and `closeness`), college_freshmen, crime, interactome_yeast (from the primary source), moreno_taro (undirected), residence_hall, zebras - other pages, archived: contiguous_usa, advogato, google, github, digg_reply, twitter, bookcrossing, dbtropes_feature (without KONECT's spurious "ItemName" tropes) - movielens_100k (in fact the MovieLens 10M tag assignments) - dblp release 2017-05-02: dblp_author_paper, dblp_cite, dblp_coauthor - DBpedia 3.9: dbpedia_country, dbpedia_genre, dbpedia_location, dbpedia_occupation, dbpedia_producer, dbpedia_recordlabel, dbpedia_starring, dbpedia_team, dbpedia_writer, dbpedia_all, dbpedia_link - Discogs releases dump of October 2015: discogs_affiliation, discogs_genre and discogs_label (now with genre and style networks)
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 242fa3a..b51a92e 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -17,33 +17,141 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
from .. import *
+import array
+import html.entities
+import xml.etree.ElementTree as ET
-title = "DBLP citations (2014)"
-description = """Citations among papers contained in the DBLP computer science bibliography. If a paper i cites a paper j also in this data set, then a directed edge connects i to j. (Papers not in the data set are excluded.) Self-loops may be present. This snapshot from May 2014.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
-tags = ['Informational', 'Citation', 'Unweighted']
-url = 'http://konect.cc/networks/dblp-cite'
+title = 'DBLP citations (2017)'
+description = r"""Citations among publications in the dblp computer science bibliography. The data are from the monthly release of 2 May 2017 of the XML dump of dblp, the computer science bibliography maintained by the University of Trier and Schloss Dagstuhl, which lists publications from journals, conference proceedings, books, theses and the arXiv Computing Research Repository (CoRR). Each record of the dump is a publication of one of the types `article` (journal articles and CoRR preprints), `inproceedings` (conference papers), `proceedings` (edited proceedings volumes), `book`, `incollection` (book chapters), `phdthesis` or `mastersthesis`; the person records (homepages) of the dump are not used. Authors are identified by their dblp name, which dblp disambiguates by hand where it can (homonymous authors are distinguished by a numeric suffix, e.g. "Wei Wang 0001"), but some of which may still refer to several persons. Some of the records list the dblp keys of the publications they cite; these citation data are sparse, cover only a small number of publications (mostly in databases, and published until the early 2000s), and are no longer maintained by dblp. Nodes are publications, and a directed edge from publication $i$ to publication $j$ means that $i$ cites $j$; only publications that cite or are cited by another one are included, and a few citations listed more than once are included only once. Some publications cite themselves, so that the network contains self-loops. A few of the cited items are web pages (records of type `www`, which have no year).
+
+The network has the following properties:
+
+- `name`: the dblp key of the publication.
+- `title`: the title of the publication.
+- `year`: the year of publication (-1 if missing).
+- `type`: the record type of the publication (see above).
+- `venue`: the journal (for articles) or the proceedings or book title (for papers in proceedings and book chapters); empty for other types."""
+tags = ['Informational', 'Citation', 'Unweighted', 'Metadata']
+url = 'https://dblp.org/xml/release/'
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1')]
icon_hash = '575749bebd3e93b53c69555b'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.dblp-cite.tar.bz2', None, 'konect')]
+upstream_license = ("Open Data Commons Attribution License (ODC-BY 1.0)",
+ "https://opendatacommons.org/licenses/by/1-0/")
+# The dblp release of 2017-05-02 (md5 cc92847c789bf2467d085ccf4948422f), which
+# is no longer on dblp.org, from the Internet Archive
+upstream_prefix = 'https://web.archive.org/web/20170612152202id_/http://dblp.org/xml/release'
+files = [('dblp-2017-05-02.xml.gz', None, None)]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
force)
+class _DBLPTarget:
+ """XML parser target that collects the records of the dblp dump (the
+ children of the root element), as dicts with the record type, the key,
+ and the lists of the texts of the given fields."""
+ def __init__(self, fields):
+ self.fields = fields
+ self.depth = 0
+ self.records = []
+ self.rec = None
+ self.buf = None
+ def start(self, tag, attrib):
+ self.depth += 1
+ if self.depth == 2:
+ self.rec = {"type": tag, "key": attrib.get("key", "")}
+ elif self.depth == 3 and tag in self.fields:
+ self.buf = []
+ def data(self, text):
+ if self.buf is not None:
+ self.buf.append(text)
+ def end(self, tag):
+ if self.depth == 3 and self.buf is not None:
+ self.rec.setdefault(tag, []).append("".join(self.buf).strip())
+ self.buf = None
+ elif self.depth == 2:
+ self.records.append(self.rec)
+ self.rec = None
+ self.depth -= 1
+ def close(self):
+ pass
+
+def read_dblp(f, fields, skip_www=True):
+ """Iterate over the records of the dblp XML dump, read in a streaming
+ fashion. The records of type "www" (mostly person records) are skipped if
+ skip_www is True."""
+ target = _DBLPTarget(set(fields))
+ parser = ET.XMLParser(target=target)
+ # The character entities are defined in the DTD, which is not read
+ parser.entity.update((k, chr(v)) for k, v in
+ html.entities.name2codepoint.items())
+ while True:
+ chunk = f.read(1 << 22)
+ if chunk:
+ parser.feed(chunk)
+ else:
+ parser.close()
+ recs, target.records = target.records, []
+ for r in recs:
+ if not skip_www or r["type"] != "www":
+ yield r
+ if not chunk:
+ break
+
+def _year(r):
+ try:
+ return int(r["year"][0])
+ except (KeyError, ValueError):
+ return -1
+
+def _venue(r):
+ return (r.get("journal") or r.get("booktitle") or [""])[0]
+
+def _set_pub_props(g, v, r):
+ g.vp.title[v] = (r.get("title") or [""])[0]
+ g.vp.year[v] = _year(r)
+ g.vp.type[v] = r["type"]
+ g.vp.venue[v] = _venue(r)
+
+def _new_pub_props(g):
+ g.vp.title = g.new_vp("string")
+ g.vp.year = g.new_vp("int", val=-1)
+ g.vp.type = g.new_vp("string")
+ g.vp.venue = g.new_vp("string")
+
@cache_network()
@coerce_props()
@annotate()
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)
+ # First pass: the citations (the cited keys are the texts of the
+ # "cite" fields; "..." marks an unknown reference)
+ cites = {}
+ with open_upstream_file(name, fname, "rb") as f:
+ for r in read_dblp(f, ["cite"]):
+ for c in r.get("cite", []):
+ if c not in ("", "..."):
+ cites[(r["key"], c)] = None
+ g = Graph(directed=True)
+ vs = {}
+ for s, t in cites:
+ for k in (s, t):
+ if k not in vs:
+ vs[k] = len(vs)
+ g.add_vertex(len(vs))
+ g.add_edge_list([(vs[s], vs[t]) for s, t in cites])
+ g.vp.name = g.new_vp("string", vals=list(vs.keys()))
+ _new_pub_props(g)
+ # Second pass: the metadata of the publications in the network
+ with open_upstream_file(name, fname, "rb") as f:
+ for r in read_dblp(f, ["title", "year", "journal", "booktitle"],
+ skip_www=False):
+ v = vs.get(r["key"])
+ if v is not None:
+ _set_pub_props(g, g.vertex(v), r)
yield alt, g
+
Update copyright information 73a4f0d
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 3c827f8..242fa3a 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index a8adde5..3c827f8 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 10898db..a8adde5 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 2c17177..10898db 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 7efd87a..2c17177 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/dblp-cite'
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1')]
icon_hash = '575749bebd3e93b53c69555b'
upstream_prefix = 'http://konect.cc/files'
-orphan = True
files = [('download.tsv.dblp-cite.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Update citations to use DOIs e878874
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index e522f60..7efd87a 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -23,7 +23,7 @@ description = """Citations among papers contained in the DBLP computer science b
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Informational', 'Citation', 'Unweighted']
url = 'http://konect.cc/networks/dblp-cite'
-citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'http://dl.acm.org/citation.cfm?id=694954')]
+citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'https://doi.org/10.1007/3-540-45735-6_1')]
icon_hash = '575749bebd3e93b53c69555b'
upstream_prefix = 'http://konect.cc/files'
orphan = True
Add support for 'orphan' datasets and tag konect entries e330b80
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 3b7e2c2..e522f60 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/dblp-cite'
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'http://dl.acm.org/citation.cfm?id=694954')]
icon_hash = '575749bebd3e93b53c69555b'
upstream_prefix = 'http://konect.cc/files'
+orphan = True
files = [('download.tsv.dblp-cite.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 1339378..3b7e2c2 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__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/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
index 1eb6f6c..1339378 100644
--- a/entries/dblp_cite/__init__.py
+++ b/entries/dblp_cite/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "DBLP citations (2014)"
-description = "Citations among papers contained in the DBLP computer science bibliography. If a paper i cites a paper j also in this data set, then a directed edge connects i to j. (Papers not in the data set are excluded.) Self-loops may be present. This snapshot from May 2014."
+description = """Citations among papers contained in the DBLP computer science bibliography. If a paper i cites a paper j also in this data set, then a directed edge connects i to j. (Papers not in the data set are excluded.) Self-loops may be present. This snapshot from May 2014.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Informational', 'Citation', 'Unweighted']
url = 'http://konect.cc/networks/dblp-cite'
citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'http://dl.acm.org/citation.cfm?id=694954')]
Initial commit cc85872
diff --git a/entries/dblp_cite/__init__.py b/entries/dblp_cite/__init__.py
new file mode 100644
index 0000000..1eb6f6c
--- /dev/null
+++ b/entries/dblp_cite/__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 = "DBLP citations (2014)"
+description = "Citations among papers contained in the DBLP computer science bibliography. If a paper i cites a paper j also in this data set, then a directed edge connects i to j. (Papers not in the data set are excluded.) Self-loops may be present. This snapshot from May 2014."
+tags = ['Informational', 'Citation', 'Unweighted']
+url = 'http://konect.cc/networks/dblp-cite'
+citation = [('M. Ley, "The DBLP computer science bibliography: Evolution, research issues, perspectives." Proc. of the 9th Int. Symposium on String Processing and Information Retrieval (SPIRE), 1-10 (2002)', 'http://dl.acm.org/citation.cfm?id=694954')]
+icon_hash = '575749bebd3e93b53c69555b'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.dblp-cite.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