- We compare our tool, OBG-gen (Ontology-Based GraphQL Server Generation) in two versions (OBG-gen-rdb and OBG-gen-mix) wih three systems: Morph-rdb, Ontop, HyperGraphQL and UltraGraphQL.
- An example query without filter expression is shown below. (List all structures including reduced formula.)
{
StructureList{
hasComposition{
ReducedFormula
}
}
}
- An example query with filter expression is shown below. (List all calculations including ID, output calculated property name and value, where ID in a given list of values.)
{
CalculationList(
filter: { ID: { _in: ["6332", "8088", "21331", "mp-561628", "mp-614918"] } }
) {
ID
hasOutputCalculatedProperty {
PropertyName
numericalValue
}
}
}
-
You can find all the 12 GraphQL queries at this folder.
- Q1 (List all the structures containing the reduced formula of each structure's composition.)
- Q2 (List all the calculations containing the reduced formula of each output structure's composition.)
- Q3 (List all the calculations containing the name and value of each output calculated property.)
- Q4 List all the calculations containing the name and value of each output calculated property, the reduced formula of each output structure's composition.)
- Q5 (List all the calculations and structures)
- Q6 (List all the calculations where the ID is in a given list of values.)
- Q7 (List all the calculations where the ID is in a given list of values, and the reduced formula is in a given list of values.)
- Q8 (List all the calculations where the ID is in a given list of values, and the reduced formula is in a given list A or B.)
- Q9 (List all the calculations where the value of band gap property is higher than 5.)
- Q10 (List all the calculations where the value of band gap property is higher than 5, and the reduced formula in a given list of values.)
- Q11 (List all the calculations where the filter condition is complex that needs to be simplified.)
- Q12 (List all the structures that contain Si element.)
-
Query Execution Time (QET) per data size on materials dataset for queries without filter conditions (Q1-Q5).
-
Query Execution Time (QET) per data size on materials dataset for queries with filter conditions (Q6-Q12).
- An example query is shown below.
{
UniversityList (filter:{nr:{_eq:973}}) {
undergraduateDegreeObtainedBystudent{
advisor {
worksFor{nr}
}
}
}
}
- You can find all the 8 query sets and data at this folder. More details regarding these query templates can be found at LinGBM repo.
- An example query is shown below.
{
ShapeList {
shapePoint {
lat
long
pointSequence
}
}
}
-
You can find all the 4 queries and data at this folder.
-
Experimental examples for the real case evaluation and evaluations based on LinGBM and GTFS-Madrid-Bench.