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

using ontology design patterns to define shacl shapes
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Using Ontology Design Patterns To Define SHACL Shapes

Harshvardhan J. Pandit, Declan O’ Sullivan, Dave Lewis @coolharsh55 pandith@tcd.ie

ADAPT Centre - Trinity College Dublin - Ireland https://openscience.adaptcentre.ie/

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.

Workshop on Ontology Design Patterns 2018 Co-located with ISWC 2018, Monterey, California, USA

CC BY 4.0

that'sme

if

twitter

email

checkout all

  • ur wook
slide-2
SLIDE 2

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

Scenario

HOW TO VALIDATE???

A

reuses

m

some

to

Hmmmm

I T

9

datagraph

  • ntologies

2

slide-3
SLIDE 3

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

OWL-based Validation

1.

Assumption: Open vs Closed

2.

Inference

3.

Existence

declare us undeclared

completeness

can lead

gerd

tosurprising

bro

results

myd

type

d

If

I don't

use

selftype

a concept do I care about its existence

3

slide-4
SLIDE 4

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

Axioms

  • Define a model for data & relationships
  • Define constraints
  • Define ‘correctness’ ?
  • Provide validation ?

AXIOMS

restrictions

byfollowingconstraints

by testingagainst constraints

assessing correctness

U

slide-5
SLIDE 5

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

Restrictions

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

5

slide-6
SLIDE 6

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

Enter the ODP

  • ODP is more generic than an ontology
  • ODP can be more specific to the use-case
  • ODP contains only needed axioms
  • ODP is modular

Benefits

1.

Fits model of data graph

2.

Modular

3.

Easier to integrate

i e abstraction

i e domain contextspecific

i e only coveringrequired concepts relationships

i e

can be combined

  • r used individually

how data is populated in context

reuse

specialise

abstractions

into largerpatterns

  • ntologies

b

slide-7
SLIDE 7

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

Okay… But still how to validate?

SHACL Shapes and Constraints Language W3C Recommendation, 20 July 2017 https://www.w3.org/TR/shacl/

  • closed world

definedusingRDF

selectors

report

generation

c

SHALL CORE

  • like Sh

Ex

T

slide-8
SLIDE 8

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

Approach

  • 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

8

slide-9
SLIDE 9

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

Example

user content

ex TweetValidator

ash

Nodeshap

ODP Iswe2018

date

target

class ex Tweet

MONTEREYCA

9042018

SHALL SHAPE

location Tweet has

men 1

max

I

exactly 1

user

type User

T

exactly 1 content

type

Text

exactly 1 date

type Timestamp

max

1

  • O
  • r

1 location

type Gpsco ordinates

9

slide-10
SLIDE 10

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

Can this be extended to an Ontology?

Yes. But the aim here is to validate the data graph that uses many

  • ntologies, 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.

Icgument

generate

an ontologyfordata

graph

vs

Generate

DPs for datagraph P

slide-11
SLIDE 11

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

Another advantage with ODP

  • 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

  • pen question

H

slide-12
SLIDE 12

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

Converse Application

Use the ODP to visualise SHACL Shapes

ex Presentation

shape

a shs

Node

Shape

target

class ex Presentation

presentation

sh Property

ShPath

ex presenter

presgentedly

Sh Class ex Persson

7,1

Sh minCount

1

Sh MaxCount

4

Persad

Th

slide-13
SLIDE 13

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

Future Work

1.

SHACL-SPARQL

2.

OWL2SPARQL

3.

Recursive Constraints Target Application: GDPR Compliance Modular Obligations → ODP ODP → validate using SHACL

my

PhD

c

top

posterpresented at

SEMANTICS2018

13

slide-14
SLIDE 14

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

End of Presentation

  • -- POSTER ---

1h