DOI: 10.5281/zenodo.7919820
title: The Yelp Collaborative Knowledge Graph

description: This is the The Yelp Collaborative Knowledge Graph (YCKG) - a transformation of the Yelp Open Dataset into RDF format using Y2KG. <strong>Paper Abstract</strong> The Yelp Open Dataset (YOD) contains data about businesses, reviews, and users from the Yelp website and is available for research purposes. This dataset has been widely used to develop and test Recommender Systems (RS), especially those using Knowledge Graphs (KGs), e.g., integrating taxonomies, product categories, business locations, and social network information. Unfortunately, researchers applied naive or wrong mappings while converting YOD in KGs, consequently obtaining unrealistic results. Among the various issues, the conversion processes usually do not follow state-of-the-art methodologies, fail to properly link to other KGs and reuse existing vocabularies. In this work, we overcome these issues by introducing Y2KG, a utility to convert the Yelp dataset into a KG. Y2KG consists of two components. The first is a dataset including (1) a vocabulary that extends Schema.org with properties to describe the concepts in YOD and (2) mappings between the Yelp entities and Wikidata. The second component is a set of scripts to transform YOD in RDF and obtain the Yelp Collaborative Knowledge Graph (YCKG). The design of Y2KG was driven by 16 core competency questions. YCKG includes 150k businesses and 16.9M reviews from 1.9M distinct real users, resulting in over 244 million triples (with 144 distinct predicates) for about 72 million resources, with an average in-degree and out-degree of 3.3 and 12.2, respectively. <strong>Links</strong> Latest GitHub release: https://github.com/MadsCorfixen/The-Yelp-Collaborative-Knowledge-Graph/releases/latest PURL domain: https://purl.archive.org/domain/yckg <strong>Files</strong> Graph Data Triple Files One sample file for each of the Yelp domains (Businesses, Users, Reviews, Tips and Checkins), each containing 20 entities. <code>yelp_schema_mappings.nt.gz</code> containing the mappings from Yelp categories to Schema things. <code>schema_hierarchy.nt.gz</code> containing the full hierarchy of the mapped Schema things. <code>yelp_wiki_mappings.nt.gz</code> containing the mappings from Yelp categories to Wikidata entities. <code>wikidata_location_mappings.nt.gz</code> containing the mappings from Yelp locations to Wikidata entities. Graph Metadata Triple Files <code>yelp_categories.ttl</code> contains metadata for all Yelp categories. <code>yelp_entities.ttl</code> contains metadata regarding the dataset <code>yelp_vocabulary.ttl</code> contains metadata on the created Yelp vocabulary and properties. Utility Files <code>yelp_category_schema_mappings.csv</code>. This file contains the 310 mappings from Yelp categories to Schema types. These mappings have been manually verified to be correct. <code>yelp_predicate_schema_mappings.csv</code>. This file contains the 14 mappings from Yelp attributes to Schema properties. These mappings are manually found. <code>ground_truth_yelp_category_schema_mappings.csv</code>. This file contains the ground truth, based on 200 manually verified mappings from Yelp categories to Schema things. The ground truth mappings were used to calculate precision and recall for the semantic mappings. <code>manually_split_categories.csv</code>. This file contains all Yelp categories containing either a & or /, and their manually split versions. The split versions have been used in the semantic mappings to Schema things.
description: {"references": ["https://www.yelp.com/dataset", "https://github.com/MadsCorfixen/The-Yelp-Collaborative-Knowledge-Graph/releases/latest", "https://purl.archive.org/domain/yckg"]}