History of microsoft_concept
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] Move unavailable upstream sources to verified alternatives 2137af6
The upstream sources of these entries are gone, moved, or refuse automated downloads; each now downloads the same data (byte-identical to the cached files, or for board_directors, identical apart from line endings) from: - add_health: the Wayback Machine (Moreno's site, as its sibling entries) - board_directors: T. Opsahl's site (opsahl.co.uk) - copenhagen, cow_signed_relations, fullerene_structures, german_power_grid: figshare's API (its downloader refuses the server) - drosophila_flybi: the same address, without a doubled slash - dutch_criticism: V. Batagelj's repository of Pajek data on GitHub - fly_larva: the copy of the supplementary files in Europe PMC - foursquare: the authors' Google Drive file - game_thrones, microsoft_concept, un_migrations: pinned Wayback Machine snapshots - internet_top_pop: the Topology Zoo repository on GitHub - scotus_majority: Harvard Dataverse and Wayback Machine snapshots
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index de9ab88..a9f6ab8 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__init__.py
@@ -28,16 +28,22 @@ The network has the following properties:
- `name`: the text of the concept or instance.
- `count`: the number of times the IsA relation was extracted from the web corpus."""
tags = ['Informational', 'Relatedness', 'Weighted']
-url = 'https://concept.research.microsoft.com/Home/Download'
+url = 'https://web.archive.org/web/20220122082444/https://concept.research.microsoft.com/Home/Download'
citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://doi.org/10.1145/2806416.2806533')]
icon_hash = '581a03518cf714f319c3ee25'
upstream_license = None
upstream_prefix = 'https://concept.research.microsoft.com/Home'
files = [('StartDownload:zip:data-concept/data-concept-instance-relations.txt', None, None)]
+# The Microsoft Concept Graph site is no longer online; the archive (served
+# by the site's StartDownload link, which redirected to a DownloadData URL)
+# is fetched from a pinned Internet Archive snapshot.
+archived_urls = {
+ 'StartDownload': 'https://web.archive.org/web/20210625232451id_/https://concept.research.microsoft.com/Home/DownloadData?key=fDfaBgIgsY71boTU4C1ep3DJQFAfl9U1&h=465128522'}
+
def fetch_upstream(force=False):
- return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
- force, bad_ssl=True)
+ return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+ tries=4)
@cache_network()
#@coerce_props()
[entries] Fix parse bugs and improve the metadata of existing entries c996a0e
From a review of the dataset descriptions against the upstream sources and papers, and from user reports: - parse fixes (wrong edge direction or directedness, shifted or misnamed properties, merged node identities, duplicated or missing edges and nodes, wrong types), e.g. arxiv_citation (the HepTh dates were a copy of the HepPh ones; now from the KDD Cup 2003 data), eu_procurements, foursquare_global, hiv_transmission, genetic_multiplex, gnutella (adds the 05 snapshot), roadnet, macaque_neural, python_dependency - descriptions rewritten from the upstream sources, documenting every property - corrected titles, citations and DOIs, licences (ustream_license typo, the data's own terms), tags and ICON ids - url lists for entries with several sources or dataset pages - SocioPatterns entries moved to the site's new data location, with the daily networks of sp_infectious and sp_primary_school - the Michael Fire entries marked as orphans (served from the mirror) - redundant type forcings removed after the graph-tool coercion fixes
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index 4410f5e..de9ab88 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__init__.py
@@ -19,13 +19,19 @@
from .. import *
title = "Microsoft Concept Graph"
-description = """A bipartite network of relations among \"instances\" and \"concepts,\" like named entities, actions, objects, etc., mined from the World Wide Web and assembled using statistical techniques into a database called Probase. Edge weights represent the frequency of association between a concept and an instance. Access to data must be requested; this version is the \"core IsA\" graph.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = """Network of "IsA" relations between concepts and instances from the Microsoft Concept Graph, released by Microsoft Research in 2016. The data derive from Probase, a knowledge base that was built by automatically extracting IsA relations from a corpus of billions of web pages with syntactic patterns, and their frequencies. This is the core IsA data set of the public release, containing 33,377,320 relations between 5,376,526 concepts and 12,501,527 instances (named entities, objects, actions, attributes, etc.).
+
+An edge connects a concept to an instance of it, with a weight equal to the number of times the relation was extracted. Nodes are identified by their (lowercase) text, so a term that appears both as a concept and as an instance is represented by a single node; therefore the network is not strictly bipartite. Edges are undirected, and the direction of the relation is not stored.
+
+The network has the following properties:
+
+- `name`: the text of the concept or instance.
+- `count`: the number of times the IsA relation was extracted from the web corpus."""
tags = ['Informational', 'Relatedness', 'Weighted']
url = 'https://concept.research.microsoft.com/Home/Download'
citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://doi.org/10.1145/2806416.2806533')]
icon_hash = '581a03518cf714f319c3ee25'
-ustream_license = None
+upstream_license = None
upstream_prefix = 'https://concept.research.microsoft.com/Home'
files = [('StartDownload:zip:data-concept/data-concept-instance-relations.txt', None, None)]
Update copyright information 73a4f0d
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index 3c35074..4410f5e 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__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/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index dd1e951..3c35074 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__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/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index 509a219..dd1e951 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__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/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index 482b32f..509a219 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__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
Update citations to use DOIs e878874
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index c90645d..482b32f 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__init__.py
@@ -23,7 +23,7 @@ description = """A bipartite network of relations among \"instances\" and \"conc
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Informational', 'Relatedness', 'Weighted']
url = 'https://concept.research.microsoft.com/Home/Download'
-citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://www.microsoft.com/en-us/research/publication/contextual-text-understanding-in-distributional-semantic-space/')]
+citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://doi.org/10.1145/2806416.2806533')]
icon_hash = '581a03518cf714f319c3ee25'
ustream_license = None
upstream_prefix = 'https://concept.research.microsoft.com/Home'
microsoft_concept: fix bad ssl error 5f8f77b
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index 0be686a..c90645d 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__init__.py
@@ -31,7 +31,7 @@ files = [('StartDownload:zip:data-concept/data-concept-instance-relations.txt',
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
- force)
+ force, bad_ssl=True)
@cache_network()
#@coerce_props()
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index ef2c7e7..0be686a 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__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/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
index d87e056..ef2c7e7 100644
--- a/entries/microsoft_concept/__init__.py
+++ b/entries/microsoft_concept/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "Microsoft Concept Graph"
-description = "A bipartite network of relations among \"instances\" and \"concepts,\" like named entities, actions, objects, etc., mined from the World Wide Web and assembled using statistical techniques into a database called Probase. Edge weights represent the frequency of association between a concept and an instance. Access to data must be requested; this version is the \"core IsA\" graph."
+description = """A bipartite network of relations among \"instances\" and \"concepts,\" like named entities, actions, objects, etc., mined from the World Wide Web and assembled using statistical techniques into a database called Probase. Edge weights represent the frequency of association between a concept and an instance. Access to data must be requested; this version is the \"core IsA\" graph.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Informational', 'Relatedness', 'Weighted']
url = 'https://concept.research.microsoft.com/Home/Download'
citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://www.microsoft.com/en-us/research/publication/contextual-text-understanding-in-distributional-semantic-space/')]
Initial commit cc85872
diff --git a/entries/microsoft_concept/__init__.py b/entries/microsoft_concept/__init__.py
new file mode 100644
index 0000000..d87e056
--- /dev/null
+++ b/entries/microsoft_concept/__init__.py
@@ -0,0 +1,53 @@
+#! /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 = "Microsoft Concept Graph"
+description = "A bipartite network of relations among \"instances\" and \"concepts,\" like named entities, actions, objects, etc., mined from the World Wide Web and assembled using statistical techniques into a database called Probase. Edge weights represent the frequency of association between a concept and an instance. Access to data must be requested; this version is the \"core IsA\" graph."
+tags = ['Informational', 'Relatedness', 'Weighted']
+url = 'https://concept.research.microsoft.com/Home/Download'
+citation = [('Z. Wang et al., "An Inference Approach to Basic Level of Categorization." Proc. ACM Internat. Conf. on Info. and Know. Management (CIKM 2015)', 'https://www.microsoft.com/en-us/research/publication/contextual-text-understanding-in-distributional-semantic-space/')]
+icon_hash = '581a03518cf714f319c3ee25'
+ustream_license = None
+upstream_prefix = 'https://concept.research.microsoft.com/Home'
+files = [('StartDownload:zip:data-concept/data-concept-instance-relations.txt', None, 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):
+ global files
+ name = __name__.split(".")[-1]
+ for fname, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ with open_upstream_file(name, fname, "r") as f:
+ g = Graph(directed=False)
+ g.ep.count = g.new_ep("int")
+ def get_lines():
+ for line in f:
+ vals = line.split("\t")
+ yield vals
+ g.vp.name = g.add_edge_list(get_lines(), hashed=True,
+ hash_type="string", eprops=[g.ep.count])
+ yield alt, g