SlideShare a Scribd company logo
Paola Espinoza-Arias1, Daniel Garijo2, Oscar Corcho1
1Ontology Engineering Group
Universidad Politécnica de Madrid
2Information Sciences Institute
University of Southern California
pespinoza@fi.upm.es
@mijaspao
4 November 2020
Virtual - CMOMM4FAIR
Mapping the Web Ontology
Language to the
OpenAPI Specification
This work has been supported by a Predoctoral grant from the I+D+i program of the Universidad Politécnica
de Madrid and the Spanish project DATOS 4.0: RETOS Y SOLUCIONES (TIN2016-78011-C4-4-R).
Workshop on Conceptual Modeling, Ontologies and (Meta)data
Management for FAIR Data co-located with the 39th
International Conference on Conceptual Modeling
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Introduction
2
LOD cloud: https://lod-cloud.net/#diagram
Adoption of Knowledge Graphs (late 2019): https://www.slideshare.net/Frank.van.Harmelen/adoption-of-knowledge-graphs-late-2019
I need to use
the KG’s data
OWL
SPARQL EndpointOntologies Web developer
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Introduction
3
§ OpenAPI Specification (OAS):
o Is a de facto standard
o Represented in either YAML or JSON.
o Many tools for editing, documenting, etc.
OAS
Last OAS version : http://spec.openapis.org/oas/v3.0.3
List of available tools for OAS: https://openapi.tools
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Outline
4
§ Related Work
§ Mapping OWL to OAS
o Method
o Coverage
o Implementation
§ Conclusions and Future Work
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Proposal OWL to OAS
mapping available
Expressiveness REST Server
OBA extended ✓ ++ ✓
Proposal OWL to OAS
mapping available
Expressiveness REST Server
OWL2OAS x + x
OBA ✓ - ✓
Related Work
§ Specifications: Linked Data API, Linked Data
Platform, or Triple Pattern Fragments.
§ Proposals to generate APIs on top of SPARQL
endpoints:
a) From SPARQL queries:
• BASIL (Daga E. et al, 2015) and GRLC (Meroño A. et
al, 2016)
b) From ontologies:
• OWL2OAS (Hammar K., 2020) and OBA (Garijo D. and
Osorio M., 2020)
5
(✓= included, x = not included, - = less coverage, and + = more coverage of OWL constructs)
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Related Work
§ Ontology-Based APIs (OBA)
o Framework to create REST APIs from OWL ontologies
o https://oba.readthedocs.io
6
Garijo, D. and Maximiliano Osorio. “OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs.” (2020) https://arxiv.org/abs/2007.09206
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Method for Mapping OWL to OAS
7
http://w3id.org/OWLToOAS
OWL
OAS
• Implementation details
• Examples
• Coverage (OWLtoOAS
profile)
• Ontology metadata
• Path and Schema naming
strategy
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Mapping coverage
8
§ Our mapping specification covers:
§ Limitations:
o Some OWL constructs don’t correspond to OAS definitions
e.g. Person is equivalent to a Human: Person owl:EquivalentClass
Human
o The OAS doesn’t support complex boolean restrictions. e.g.
ChildlessPerson is a Person who is not a Parent: ChildlessPerson
rdfs:subClassOf (Person owl:intersectionOf (owl:complementOf Parent))
https://owl-to-oas.readthedocs.io/en/latest/mapping/#owltooas-profile
Expressivity Coverage Expressivity Coverage
Functional (F) ✓ Nominal values (O) ✓
Existential (E) - Inverse properties (I) x
Unions (U) - Cardinality (N) ✓
Concept Negation (C) ✓ Qualified Cardinality (Q) ✓
Hierarchies (H) ✓ Data types (D) ✓
Role disjointness (R) x
(✓= covered, - = partially covered, and x = not covered)
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Mapping implementation
9
Mapping OWL to OAS implementation: https://github.com/KnowledgeCaptureAndDiscovery/OBA/releases/tag/3.4.0
OWL
OAS
(ttl)
(YAML)
“Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho
Conclusions and future work
10
§ Conclusions:
o A mapping specification between the OWL and OAS.
o A mapping implementation as an extension of OBA.
o Adherence to the FAIR principles.
o Some OWL constructs are not covered by the mapping.
§ Future work:
o Generate the names for API resource paths and schemas
from the ontology annotations.
o Annotate APIs with key metadata.
o Combine our API definitions with the Shapes Constraint
Language (SHACL).
Paola Espinoza-Arias1, Daniel Garijo2, Oscar Corcho1
1Ontology Engineering Group
Universidad Politécnica de Madrid
2Information Sciences Institute
University of Southern California
pespinoza@fi.upm.es
@mijaspao
4 November 2020
Virtual - CMOMM4FAIR
Mapping the Web Ontology
Language to the
OpenAPI Specification
This work has been supported by a Predoctoral grant from the I+D+i program of the Universidad Politécnica
de Madrid and the Spanish project DATOS 4.0: RETOS Y SOLUCIONES (TIN2016-78011-C4-4-R).
Workshop on Conceptual Modeling, Ontologies and (Meta)data
Management for FAIR Data co-located with the 39th
International Conference on Conceptual Modeling

More Related Content

Similar to Mapping the Web Ontology Language to OpenApi

TEAMS 6, 7 and 8
TEAMS 6, 7 and 8TEAMS 6, 7 and 8
TEAMS 6, 7 and 8
plan4all
 
Linked Open Data and Ontotext Projects
Linked Open Data and Ontotext ProjectsLinked Open Data and Ontotext Projects
Linked Open Data and Ontotext Projects
Vladimir Alexiev, PhD, PMP
 
Vital AI: Big Data Modeling
Vital AI: Big Data ModelingVital AI: Big Data Modeling
Vital AI: Big Data Modeling
Vital.AI
 
Publishing Linked Open Data on the Web & the Role of Ontologies
Publishing Linked Open Data on the Web & the Role of OntologiesPublishing Linked Open Data on the Web & the Role of Ontologies
Publishing Linked Open Data on the Web & the Role of Ontologies
María Poveda Villalón
 
Weso research group
Weso research groupWeso research group
Weso research group
Jose Emilio Labra Gayo
 
Publishing Linked Statistical Data: Aragón, a case study
Publishing Linked Statistical Data: Aragón, a case studyPublishing Linked Statistical Data: Aragón, a case study
Publishing Linked Statistical Data: Aragón, a case study
Oscar Corcho
 
Streamlining Knowledge Graph Construction with a façade: the SPARQL Anything...
Streamlining Knowledge Graph Construction with a façade:  the SPARQL Anything...Streamlining Knowledge Graph Construction with a façade:  the SPARQL Anything...
Streamlining Knowledge Graph Construction with a façade: the SPARQL Anything...
Enrico Daga
 
Fighting COVID-19 with Artificial Intelligence
Fighting COVID-19 with Artificial IntelligenceFighting COVID-19 with Artificial Intelligence
Fighting COVID-19 with Artificial Intelligence
vty
 
Tds — big science dec 2021
Tds — big science dec 2021Tds — big science dec 2021
Tds — big science dec 2021
Gérard Dupont
 
Self adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation ofSelf adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation of
Nurfadhlina Mohd Sharef
 
Building COVID-19 Knowledge Graph at CoronaWhy
Building COVID-19 Knowledge Graph at CoronaWhyBuilding COVID-19 Knowledge Graph at CoronaWhy
Building COVID-19 Knowledge Graph at CoronaWhy
vty
 
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and More
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and MoreStrata 2015 Data Preview: Spark, Data Visualization, YARN, and More
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and More
Paco Nathan
 
GeoLinkedData
GeoLinkedDataGeoLinkedData
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
Dataconomy Media
 
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
Andy Petrella
 
New trends in ontological engineering, practices and tools
New trends in ontological engineering, practices and toolsNew trends in ontological engineering, practices and tools
New trends in ontological engineering, practices and tools
María Poveda Villalón
 
4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)
Nandana Mihindukulasooriya
 
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRMBéatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
ariadnenetwork
 
Clariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
Clariah Tech Day: Controlled Vocabularies and Ontologies in DataverseClariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
Clariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
vty
 

Similar to Mapping the Web Ontology Language to OpenApi (20)

TEAMS 6, 7 and 8
TEAMS 6, 7 and 8TEAMS 6, 7 and 8
TEAMS 6, 7 and 8
 
Linked Open Data and Ontotext Projects
Linked Open Data and Ontotext ProjectsLinked Open Data and Ontotext Projects
Linked Open Data and Ontotext Projects
 
Vital AI: Big Data Modeling
Vital AI: Big Data ModelingVital AI: Big Data Modeling
Vital AI: Big Data Modeling
 
Publishing Linked Open Data on the Web & the Role of Ontologies
Publishing Linked Open Data on the Web & the Role of OntologiesPublishing Linked Open Data on the Web & the Role of Ontologies
Publishing Linked Open Data on the Web & the Role of Ontologies
 
Weso research group
Weso research groupWeso research group
Weso research group
 
Publishing Linked Statistical Data: Aragón, a case study
Publishing Linked Statistical Data: Aragón, a case studyPublishing Linked Statistical Data: Aragón, a case study
Publishing Linked Statistical Data: Aragón, a case study
 
Streamlining Knowledge Graph Construction with a façade: the SPARQL Anything...
Streamlining Knowledge Graph Construction with a façade:  the SPARQL Anything...Streamlining Knowledge Graph Construction with a façade:  the SPARQL Anything...
Streamlining Knowledge Graph Construction with a façade: the SPARQL Anything...
 
bonino
boninobonino
bonino
 
Fighting COVID-19 with Artificial Intelligence
Fighting COVID-19 with Artificial IntelligenceFighting COVID-19 with Artificial Intelligence
Fighting COVID-19 with Artificial Intelligence
 
Tds — big science dec 2021
Tds — big science dec 2021Tds — big science dec 2021
Tds — big science dec 2021
 
Self adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation ofSelf adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation of
 
Building COVID-19 Knowledge Graph at CoronaWhy
Building COVID-19 Knowledge Graph at CoronaWhyBuilding COVID-19 Knowledge Graph at CoronaWhy
Building COVID-19 Knowledge Graph at CoronaWhy
 
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and More
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and MoreStrata 2015 Data Preview: Spark, Data Visualization, YARN, and More
Strata 2015 Data Preview: Spark, Data Visualization, YARN, and More
 
GeoLinkedData
GeoLinkedDataGeoLinkedData
GeoLinkedData
 
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
Andy Petrella_Med@Scale by Data Fellas: Scalable and Interoperable Genomics d...
 
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
Data Enthusiasts London: Scalable and Interoperable data services. Applied to...
 
New trends in ontological engineering, practices and tools
New trends in ontological engineering, practices and toolsNew trends in ontological engineering, practices and tools
New trends in ontological engineering, practices and tools
 
4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)
 
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRMBéatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
Béatrice Markhoff - Semantic mediation ArSol and CIDOC CRM
 
Clariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
Clariah Tech Day: Controlled Vocabularies and Ontologies in DataverseClariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
Clariah Tech Day: Controlled Vocabularies and Ontologies in Dataverse
 

Recently uploaded

Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
manasideore6
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Fundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptxFundamentals of Induction Motor Drives.pptx
Fundamentals of Induction Motor Drives.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 

Mapping the Web Ontology Language to OpenApi

  • 1. Paola Espinoza-Arias1, Daniel Garijo2, Oscar Corcho1 1Ontology Engineering Group Universidad Politécnica de Madrid 2Information Sciences Institute University of Southern California pespinoza@fi.upm.es @mijaspao 4 November 2020 Virtual - CMOMM4FAIR Mapping the Web Ontology Language to the OpenAPI Specification This work has been supported by a Predoctoral grant from the I+D+i program of the Universidad Politécnica de Madrid and the Spanish project DATOS 4.0: RETOS Y SOLUCIONES (TIN2016-78011-C4-4-R). Workshop on Conceptual Modeling, Ontologies and (Meta)data Management for FAIR Data co-located with the 39th International Conference on Conceptual Modeling
  • 2. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Introduction 2 LOD cloud: https://lod-cloud.net/#diagram Adoption of Knowledge Graphs (late 2019): https://www.slideshare.net/Frank.van.Harmelen/adoption-of-knowledge-graphs-late-2019 I need to use the KG’s data OWL SPARQL EndpointOntologies Web developer
  • 3. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Introduction 3 § OpenAPI Specification (OAS): o Is a de facto standard o Represented in either YAML or JSON. o Many tools for editing, documenting, etc. OAS Last OAS version : http://spec.openapis.org/oas/v3.0.3 List of available tools for OAS: https://openapi.tools
  • 4. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Outline 4 § Related Work § Mapping OWL to OAS o Method o Coverage o Implementation § Conclusions and Future Work
  • 5. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Proposal OWL to OAS mapping available Expressiveness REST Server OBA extended ✓ ++ ✓ Proposal OWL to OAS mapping available Expressiveness REST Server OWL2OAS x + x OBA ✓ - ✓ Related Work § Specifications: Linked Data API, Linked Data Platform, or Triple Pattern Fragments. § Proposals to generate APIs on top of SPARQL endpoints: a) From SPARQL queries: • BASIL (Daga E. et al, 2015) and GRLC (Meroño A. et al, 2016) b) From ontologies: • OWL2OAS (Hammar K., 2020) and OBA (Garijo D. and Osorio M., 2020) 5 (✓= included, x = not included, - = less coverage, and + = more coverage of OWL constructs)
  • 6. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Related Work § Ontology-Based APIs (OBA) o Framework to create REST APIs from OWL ontologies o https://oba.readthedocs.io 6 Garijo, D. and Maximiliano Osorio. “OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs.” (2020) https://arxiv.org/abs/2007.09206
  • 7. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Method for Mapping OWL to OAS 7 http://w3id.org/OWLToOAS OWL OAS • Implementation details • Examples • Coverage (OWLtoOAS profile) • Ontology metadata • Path and Schema naming strategy
  • 8. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Mapping coverage 8 § Our mapping specification covers: § Limitations: o Some OWL constructs don’t correspond to OAS definitions e.g. Person is equivalent to a Human: Person owl:EquivalentClass Human o The OAS doesn’t support complex boolean restrictions. e.g. ChildlessPerson is a Person who is not a Parent: ChildlessPerson rdfs:subClassOf (Person owl:intersectionOf (owl:complementOf Parent)) https://owl-to-oas.readthedocs.io/en/latest/mapping/#owltooas-profile Expressivity Coverage Expressivity Coverage Functional (F) ✓ Nominal values (O) ✓ Existential (E) - Inverse properties (I) x Unions (U) - Cardinality (N) ✓ Concept Negation (C) ✓ Qualified Cardinality (Q) ✓ Hierarchies (H) ✓ Data types (D) ✓ Role disjointness (R) x (✓= covered, - = partially covered, and x = not covered)
  • 9. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Mapping implementation 9 Mapping OWL to OAS implementation: https://github.com/KnowledgeCaptureAndDiscovery/OBA/releases/tag/3.4.0 OWL OAS (ttl) (YAML)
  • 10. “Mapping the Web Ontology Language to the OpenAPI Specification” by Paola Espinoza-Arias, Daniel Garijo and Oscar Corcho Conclusions and future work 10 § Conclusions: o A mapping specification between the OWL and OAS. o A mapping implementation as an extension of OBA. o Adherence to the FAIR principles. o Some OWL constructs are not covered by the mapping. § Future work: o Generate the names for API resource paths and schemas from the ontology annotations. o Annotate APIs with key metadata. o Combine our API definitions with the Shapes Constraint Language (SHACL).
  • 11. Paola Espinoza-Arias1, Daniel Garijo2, Oscar Corcho1 1Ontology Engineering Group Universidad Politécnica de Madrid 2Information Sciences Institute University of Southern California pespinoza@fi.upm.es @mijaspao 4 November 2020 Virtual - CMOMM4FAIR Mapping the Web Ontology Language to the OpenAPI Specification This work has been supported by a Predoctoral grant from the I+D+i program of the Universidad Politécnica de Madrid and the Spanish project DATOS 4.0: RETOS Y SOLUCIONES (TIN2016-78011-C4-4-R). Workshop on Conceptual Modeling, Ontologies and (Meta)data Management for FAIR Data co-located with the 39th International Conference on Conceptual Modeling