-
Notifications
You must be signed in to change notification settings - Fork 4
Datasets
This document describes the data used by the Linköping GraphQL Benchmark (LinGBM).
LinGBM is based on a scalable synthetic dataset that can be generated in an unlimited number of different sizes. Instead of designing a new dataset generator from scratch, LinGBM uses the dataset generator of the [the Lehigh University Benchmark (LUBM)][1]. However, for LinGBM it was necessary to develop a TODOslightly extended version of this dataset generator.
The generated data can be created in the form of an SQL database or an RDF graph. While the RDF versions can be written in several RDF serialization formats, the SQL-database versions are written as an SQL dump file that can be imported by a MySQL server.
In the remainder of this document we provide:
- an Entity-Relationship diagram that models the scenario captured by the benchmark datasets,
- the corresponding relational schema of the SQL-database version of the benchmark datasets, and
- an overview of the average cardinalities of the relationships in the generated data.
For more details regarding the datasets and the dataset generator we refer to the LUBM DATA PROFILE.
The generated benchmark datasets capture a fictitious University scenario with department that have different types of Professor, students, and a number of courses. Moreover, for each product, there are offers by different vendors and reviews by different persons. Overall, the captured scenario consists of nine types of entities and eight types of relationships between such entities. The following Entity-Relationship diagram illustrates these entity types and relationship types.
The relational schema of the SQL-database version of the benchmark datasets consists of the following 10 relations/tables (where the underlined attributes belong to the primary key of the corresponding relation).
Vendor (nr, label, comment, homepage, country)
Offer (nr, product, producer, vendor, price, validFrom, validTo, deliveryDays, offerWebpage)
Producer (nr, label, comment, homepage, country)
Product (nr, label, comment, producer, propertyNum1, propertyNum2, propertyNum3, propertyNum4, propertyNum5, propertyNum6, propertyTex1, propertyTex2, propertyTex3, propertyTex4, propertyTex5, propertyTex6)
Person (nr, name, mbox_sha1sum, country)
Review (nr, product, producer, person, reviewDate, title, text, language, rating1, rating2, rating3, rating4, publisher)
ProductFeature (nr, label, comment)
ProductType (nr, label, comment, parent)
ProductTypeProduct (product, productType)
ProductFeatureProduct (product, productFeature)
The following diagram provides a visual illustration of the relational schema, including the referential integrity constraints (foreign keys) between the tables.
The following table provides an overview of the average cardinalities of the relationships in the generated data.
relationCode | relationName | Relationship | cardinalities | note |
---|---|---|---|---|
R1 | Bachelor's DegreeFrom | University:Faculty | 1:(0~4)*N | |
R2 | MasterDegreeFrom | University:Faculty | 1:(0~4)*N | |
R3 | DoctorDegreeFrom | University:Faculty | 1:(0~5)*N | |
R4 | UndergraduateDegreeFrom | University:GraduateStudents | 1:(0~7)*N | |
R5 | SubOrganizationOf | University:Department | 1:15~25 | |
R6 | SubOrganizationOf | Department:ResearchGroup | 1:10~20 | |
R7 | worksFor | Department:FullProfessor | 1:7~10 | |
R8 | worksFor | Department:AssociateProfessor | 1:10~14 | |
R9 | worksFor | Department:AssistantProfessor | 1:8~11 | |
R10 | worksFor | Department:Lecturers | 1:5~7 | |
R11 | worksFor | Department:Faculty | 1:30~42 | |
R12 | memberOf | Department:UndergraduateStudent | 1:240~588 | |
R13 | memberOf | Department:GraduateStudent | 1:90~168 | |
R14 | memberOf | Department:Student | 1:330~756 | |
R15 | headOf | Department:FullProfessor | 0~1:1 | |
R16 | takeCourse | GraduateStudent:GraduateCourse | 0 |
|
R17 | takeCourse | UndergraduateStudent:Courese | 7 |
|
R18 | assist | GraduateStudent:Course | 0 |
|
R19 | advisor | GraduateStudent:Professor | 0~11:1 | |
R20 | advisor | UndergraduateStudent:Professor | 0 |
|
R21 | publicationAuthor | GraduateStudent:Publication | 0 |
|
R22 | publicationAuthor | FullProfessor:Publication | 0 |
|
R23 | publicationAuthor | AssociateProfessor:Publication | 0 |
|
R24 | publicationAuthor | AssistantProfessor:Publication | 0 |
|
R25 | publicationAuthor | Lecturer:Publication | 0 |
|
R26 | publicationAuthor | Faculty:Publication | 1:0~20 | |
R27 | publicationAuthor | Author:Publication | 1 |
|
R28 | teacherOf | Faculty:GraduateCourse | 1:1~2 | |
R29 | teacherOf | Faculty:Course | 1:1~2 | |
[1]: http://swat.cse.lehigh.edu/projects/lubm/index.htm | ||||
[2]: http://wifo5-03.informatik.uni-mannheim.de/bizer/berlinsparqlbenchmark/spec/Dataset/index.html#triplenamedgraph | ||||
[3]: http://wifo5-03.informatik.uni-mannheim.de/bizer/berlinsparqlbenchmark/spec/BenchmarkRules/index.html#datagenerator |