Vladimir Alexiev, PhD, PMP
Ontotext Corp, Sofia, Bulgaria
Generation of Declarative Transformations from Semantic Models
Outline
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Semantic Modeling
4
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Semantic Modeling vs Ontology Engineering
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Polyglot Modeling
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Semantic Models from Turtle Examples
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Crunchbase Semantic Model
8
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Focusing on Initial Public Offerings (IPOs)
Simple custom ontology:
Model elements:
9
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Generating Tabular Transforms
10
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Tabular Transforms From Turtle Examples
cb:employeeCount <cb/employeeCount/urlify(ifNotNull(employee_count))>;
#define urlify(x) bind(LCASE(REPLACE(REPLACE(REPLACE� (x, "[^\\p{L}0-9]", "_"), "_+", "_"), "^_|_$", "")) as x##_URLIFY)
#define ifNotNull(x) bind(if(x in� ("other","not provided","unknown"),?UNDEF,x) as x##_IFNOTNULL)
cb:employeeCount� ?cb_employeeCount_employee_count_IFNOTNULL_URLIFY_URL;
bind(if(?employee_count in� ("other","not provided","unknown"),?UNDEF, ?employee_count)� as ?employee_count_IFNOTNULL) bind(LCASE(REPLACE(REPLACE(REPLACE(?employee_count_IFNOTNULL,� "[^\\p{L}0-9]", "_"), "_+", "_"), "^_|_$", "")) � as ?employee_count_IFNOTNULL_URLIFY) bind(iri(concat("cb/employeeCount/",� ?employee_count_IFNOTNULL_URLIFY)) as� ?cb_employeeCount_employee_count_IFNOTNULL_URLIFY_URL)
11
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
CB IPOs: From Model to SPARQL UPDATE
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Could Go a Lot More Complex: IPOs in FIBO
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
IPOs in FIBO: Turtle model (165 lines)
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
IPOs in FIBO: SPARQL (220 lines, 56 binds, 21 prefixes)
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Generating R2RML Transforms
16
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
R2RML Transforms From Turtle Examples
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Getty Exhibitions: Turtle model
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Getty Exhibitions: Generated R2RML
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Getty Exhibitions: Model (60 lines) vs R2RML (315 lines)
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Insurance Customer Example: Model
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Insurance Example: Model (52 lines) vs R2RML (502 lines)
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
Backup slides
Will present them if there is time
Semantic ETL Desiderata
Main requirements for semantic ETL�(green: yes or positive, orange: maybe or warning, red: not or negative)
24
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL and Modeling
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL Performance
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL Logistics
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL Logistics (2)
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL Predictability and Transactionality
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023
ETL Virtualization and Automation
Generation of Declarative Transformations from Semantic Models. ENDORSE 2023