SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
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

Mais conteúdo relacionado

Semelhante a 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
 
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 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
 

Semelhante a 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
 

Último

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 

Último (20)

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 

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