Skip to content

YAGO3 10 Cookbook

Simon Ott edited this page Jun 20, 2022 · 1 revision
  1. Clone repository git clone https://github.com/OpenBioLink/Explorer.git
  2. Download yago310_max.db and copy it to ~/Explorer/server/db
  3. Insert the YAGO RDF graph containing metadata (labels, descriptions, ...) into the blazegraph database. We provide a simple script for that, just run python setup.py --datasets yago310 from ~/Explorer/blazegraph
~/Explorer/blazegraph> python setup.py --datasets yago310
https://github.com/OpenBioLink/Utilities/raw/main/data/dataset-metadata-graphs/YAGO3-10/data.zip
[██████████████████████████████████████████████████]
DELETE http://localhost:9999/blazegraph/namespace/yago310
Status: 404
No namespace to delete
CREATE http://localhost:9999/blazegraph/namespace/yago310
Status: 201
Text: CREATED: yago310
UPLOAD http://localhost:9999/blazegraph/namespace/yago310
Text: <?xml version="1.0"?><data modified="2656058" milliseconds="280027"/>
  1. Create/replace the file index.json in ~/Explorer/server/db and populate it with the following content:
{
    "Dataset": [
		{
            "ID": "yago310",
            "Endpoint": "http://blazegraph:9999/blazegraph/namespace/yago310/sparql",
            "Name": "YAGO3-10",
            "Version":	"",
            "Description":	"YAGO3-10 is benchmark dataset for knowledge base completion. It is a subset of YAGO3 (which itself is an extension of YAGO) that contains entities associated with at least ten different relations. In total, YAGO3-10 has 123,182 entities and 37 relations, and most of the triples describe attributes of persons such as citizenship, gender, and profession. [https://paperswithcode.com/dataset/yago3-10]",
			"Explanation": [
				{
					"ID": "max",
					"Label": "MAX",
					"Date": 1624529144,
					"Comment": "These results were retrieved by applying the MaxPlus (AnyBURL default) aggregation method to the YAGO3-10 dataset based on rules learned in 1000 seconds.",
					"Method": "max",
					"RuleConfig": "SNAPSHOTS_AT = 1000\nWORKER_THREADS = 22\nPOLICY = 2\nREWARD = 5\nEPSILON = 0.1\nTHRESHOLD_CONFIDENCE = 0.0001\nMAX_LENGTH_CYCLIC = 3\nMAX_LENGTH_ACYCLIC = 1",
					"ClusteringConfig": ""
				}
			]
        }
    ]
}
  1. Run docker-compose up --build from ~/Explorer
  2. Open http://localhost:5000
Clone this wiki locally