SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie 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 8plan4all
 
Vital AI: Big Data Modeling
Vital AI: Big Data ModelingVital AI: Big Data Modeling
Vital AI: Big Data ModelingVital.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 OntologiesMaría Poveda Villalón
 
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 studyOscar 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 Intelligencevty
 
Tds — big science dec 2021
Tds — big science dec 2021Tds — big science dec 2021
Tds — big science dec 2021Gé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 ofNurfadhlina 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 CoronaWhyvty
 
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 MorePaco Nathan
 
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
 
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
 
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 toolsMaría Poveda Villalón
 
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 CRMariadnenetwork
 
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 Dataversevty
 

Ähnlich wie 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
 
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_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...
 
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
 

Kürzlich hochgeladen

Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringJuanCarlosMorales19600
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Kürzlich hochgeladen (20)

Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineering
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .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