logo Netzschleuder network catalog, repository, and centrifuge

History of yago3_10

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/yago3_10/__init__.py b/entries/yago3_10/__init__.py
index 76d221a..cb1f6ae 100644
--- a/entries/yago3_10/__init__.py
+++ b/entries/yago3_10/__init__.py
@@ -35,7 +35,7 @@ tags = ['Informational', 'Relatedness', 'Unweighted', 'Multigraph', 'Metadata']
 url = 'https://github.com/TimDettmers/ConvE'
 citation = [('T. Dettmers, P. Minervini, P. Stenetorp, S. Riedel, "Convolutional 2D Knowledge Graph Embeddings." Proceedings of the AAAI Conference on Artificial Intelligence 32(1), 1811-1818 (2018)', 'https://doi.org/10.1609/aaai.v32i1.11573'),
             ('F. Mahdisoltani, J. Biega, F. M. Suchanek, "YAGO3: A Knowledge Base from Multilingual Wikipedias." 7th Biennial Conference on Innovative Data Systems Research (CIDR) (2015)', 'https://www.cidrdb.org/cidr2015/Papers/CIDR15_Paper1.pdf')]
-icon_hash = None
+date_added = '2026-10-27'
 upstream_license = ('CC BY 3.0 (YAGO3); MIT (ConvE repository)', 'https://creativecommons.org/licenses/by/3.0/')
 upstream_prefix = 'https://raw.githubusercontent.com/TimDettmers/ConvE/f3c0eb286025410fa5b4c04696c918264163d0ca'
 files = [(tuple(f'YAGO3-10.tar.gz:{s}.txt' for s in ['train', 'valid', 'test']),
[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/yago3_10/__init__.py b/entries/yago3_10/__init__.py
index 3e34af3..76d221a 100644
--- a/entries/yago3_10/__init__.py
+++ b/entries/yago3_10/__init__.py
@@ -28,9 +28,9 @@ The triples are divided into training, validation and test sets (5,000 triples e
 
 The network has the following properties:
 
-- `name`: the name of the entity in YAGO, e.g. `Chatou` or `Boo_Young-tae`.
-- Edge `relation`: the YAGO relation, e.g. `isLocatedIn`.
-- Edge `split`: the set of the benchmark the triple belongs to: `train`, `valid` or `test`."""
+- (Node) `name`: the name of the entity in YAGO, e.g. `Chatou` or `Boo_Young-tae`.
+- (Edge) `relation`: the YAGO relation, e.g. `isLocatedIn`.
+- (Edge) `split`: the set of the benchmark the triple belongs to: `train`, `valid` or `test`."""
 tags = ['Informational', 'Relatedness', 'Unweighted', 'Multigraph', 'Metadata']
 url = 'https://github.com/TimDettmers/ConvE'
 citation = [('T. Dettmers, P. Minervini, P. Stenetorp, S. Riedel, "Convolutional 2D Knowledge Graph Embeddings." Proceedings of the AAAI Conference on Artificial Intelligence 32(1), 1811-1818 (2018)', 'https://doi.org/10.1609/aaai.v32i1.11573'),
[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/yago3_10/__init__.py b/entries/yago3_10/__init__.py
index 592eea7..3e34af3 100644
--- a/entries/yago3_10/__init__.py
+++ b/entries/yago3_10/__init__.py
@@ -49,7 +49,6 @@ def fetch_upstream(force=False):
 @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:
[entries] New entry: yago3_10 by Tiago de Paula Peixoto f0369e0
diff --git a/entries/yago3_10/__init__.py b/entries/yago3_10/__init__.py
new file mode 100644
index 0000000..592eea7
--- /dev/null
+++ b/entries/yago3_10/__init__.py
@@ -0,0 +1,72 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 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 = "YAGO3 knowledge graph benchmark (YAGO3-10, 2018)"
+description = """A subset of the YAGO3 knowledge base, extracted from Wikipedia, WordNet and GeoNames, that is used as a benchmark for knowledge graph completion (link prediction): the YAGO3-10 dataset of Dettmers et al. (2018), with the entities that have at least 10 relations each. Each node is an entity, mostly people, places, organizations and works, named as in YAGO (after the titles of their Wikipedia articles), and a directed edge from entity A to entity B is a triple (A, relation, B) of one of the 37 relations, e.g. that a person `playsFor` a team, `isCitizenOf` a country, or `hasGender` a gender. Pairs of entities may be connected by several edges with different relations.
+
+The triples are divided into training, validation and test sets (5,000 triples each for validation and testing) by the benchmark; all of them are included, and the set is given as an edge property.
+
+The network has the following properties:
+
+- `name`: the name of the entity in YAGO, e.g. `Chatou` or `Boo_Young-tae`.
+- Edge `relation`: the YAGO relation, e.g. `isLocatedIn`.
+- Edge `split`: the set of the benchmark the triple belongs to: `train`, `valid` or `test`."""
+tags = ['Informational', 'Relatedness', 'Unweighted', 'Multigraph', 'Metadata']
+url = 'https://github.com/TimDettmers/ConvE'
+citation = [('T. Dettmers, P. Minervini, P. Stenetorp, S. Riedel, "Convolutional 2D Knowledge Graph Embeddings." Proceedings of the AAAI Conference on Artificial Intelligence 32(1), 1811-1818 (2018)', 'https://doi.org/10.1609/aaai.v32i1.11573'),
+            ('F. Mahdisoltani, J. Biega, F. M. Suchanek, "YAGO3: A Knowledge Base from Multilingual Wikipedias." 7th Biennial Conference on Innovative Data Systems Research (CIDR) (2015)', 'https://www.cidrdb.org/cidr2015/Papers/CIDR15_Paper1.pdf')]
+icon_hash = None
+upstream_license = ('CC BY 3.0 (YAGO3); MIT (ConvE repository)', 'https://creativecommons.org/licenses/by/3.0/')
+upstream_prefix = 'https://raw.githubusercontent.com/TimDettmers/ConvE/f3c0eb286025410fa5b4c04696c918264163d0ca'
+files = [(tuple(f'YAGO3-10.tar.gz:{s}.txt' for s in ['train', 'valid', 'test']),
+          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 fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        triples = []
+        splits = []
+        for fname, split in zip(fnames, ["train", "valid", "test"]):
+            with open_upstream_file(name, fname, "r") as f:
+                for line in f:
+                    if not line.strip():
+                        continue
+                    h, r, t = line.rstrip("\n").split("\t")
+                    triples.append((h, t, r))
+                    splits.append(split)
+        g = Graph(directed=True)
+        g.vp.name = g.add_edge_list(triples, hashed=True,
+                                    eprops=[("relation", "string")])
+        g.ep.relation = g.ep["relation"]
+        g.ep.split = g.new_ep("string", vals=splits)
+        yield alt, g