using ontology design patterns to define shacl shapes
play

Using Ontology Design Patterns To Define SHACL Shapes that's me - PowerPoint PPT Presentation

Workshop on Ontology Design Patterns 2018 Co-located with ISWC 2018, Monterey, California, USA CC BY 4.0 Using Ontology Design Patterns To Define SHACL Shapes that's me Harshvardhan J. Pandit, Declan O Sullivan, Dave Lewis @coolharsh55


  1. Workshop on Ontology Design Patterns 2018 Co-located with ISWC 2018, Monterey, California, USA CC BY 4.0 Using Ontology Design Patterns To Define SHACL Shapes that's me Harshvardhan J. Pandit, Declan O’ Sullivan, Dave Lewis @coolharsh55 pandith@tcd.ie if email twitter ADAPT Centre - Trinity College Dublin - Ireland check out all https://openscience.adaptcentre.ie/ our wook The ADAPT Centre is funded under the SFI Research Centres Programme (Grant 13/RC/2106) and is co-funded under the European Regional Development Fund.

  2. Scenario www.adaptcentre.ie HOW TO VALIDATE??? reuses A some m to Hmmmm I T 9 data graph ontologies “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 2 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  3. OWL-based Validation www.adaptcentre.ie declare us undeclared 1. Assumption: Open vs Closed 2. Inference completeness gerd can lead 3. Existence bro to surprising type myd results d self type If I don't use a concept do I care about its existence “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 3 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  4. Axioms www.adaptcentre.ie ● Define a model for data & relationships AXIOMS ● restrictions Define constraints ● by following constraints Define ‘correctness’ ? ● by testing against constraints Provide validation ? assessing correctness “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 U WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  5. Restrictions www.adaptcentre.ie Axioms may not be applicable because: ○ Not all concepts / relations from ontology are being used in a data graph ○ Concepts / relations are used, but their semantic meaning has changed “ Using Ontology Design Patterns To Define SHACL Shapes ” 5 http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  6. Enter the ODP www.adaptcentre.ie ● ODP is more generic than an ontology i e abstraction ● ODP can be more specific to the use-case i e domain context specific ● ODP contains only needed axioms i e only covering required concepts relationships ● ODP is modular or used individually can be combined i e Benefits 1. Fits model of data graph how data is populated in context 2. Modular specialise abstractions reuse 3. into larger patterns Easier to integrate ontologies “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 b WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  7. Okay… But still how to validate? www.adaptcentre.ie o closed world SHACL defined usingRDF Shapes and Constraints Language W3C Recommendation, 20 July 2017 selectors https://www.w3.org/TR/shacl/ report generation c SHALL CORE o like Sh Ex “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 T WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  8. Approach www.adaptcentre.ie ● Aim: Automate validation from data model i.e. ODP → SHACL ● Step1: Identify relevant OWL statements within constraint ● Step2: Generate Corresponding SHACL Shape Requires: Mapping OWL → SHACL “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 8 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  9. Example www.adaptcentre.ie user content ex Tweet Validator ash Nodeshap date class ex Tweet Iswe2018 ODP target 9042018 MONTEREY CA SHALL SHAPE location Tweet has men 1 I max exactly 1 T user type User Text exactly 1 content type type Timestamp exactly 1 date 1 max o O 1 location or type Gps co ordinates “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 9 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  10. Can this be extended to an Ontology? www.adaptcentre.ie Yes. But the aim here is to validate the data graph that uses many ontologies, and where only some concepts/relationships are used. Therefore, if SHACL shapes are generated from an ontology, they will have the same limitation as using the OWL axioms itself. an ontology for data graph Icgument generate vs DPs for data graph 0 Generate “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 P WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  11. Another advantage with ODP www.adaptcentre.ie ● Coherence ● If all constraints (shapes) are satisfied then the data can be said to be validated, and this information can be incorporated back into the data graph ● Validations can thus be ‘layered’ on top of each other ● Can the ODPs also be thus ‘layered’ or combined in this manner to create an ontology for representing the data model of the graph? y open question “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 H WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  12. Converse Application www.adaptcentre.ie Use the ODP to visualise SHACL Shapes ex Presentation shape a shs Node Shape presentation class ex Presentation target sh Property presgented ly ShPath ex presenter Sh Class ex Persson 7,1 1 Sh min Count Persad 4 Sh Max Count “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 Th WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  13. Future Work www.adaptcentre.ie 1. SHACL-SPARQL 2. OWL2SPARQL 3. Recursive Constraints PhD Target Application: my c top GDPR Compliance Modular Obligations → ODP ODP → validate using SHACL poster presented at SEMANTICS 2018 “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 13 WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

  14. End of Presentation www.adaptcentre.ie --- POSTER --- “ Using Ontology Design Patterns To Define SHACL Shapes ” http://openscience.adaptcentre.ie/ | pandith@tcd.ie | @coolharsh55 1h WOP 2018 (ISWC 2018) ; Monterey California, USA ; Presented by: Harshvardhan J. Pandit

Recommend


More recommend