+ All Categories
Home > Documents > Open Provenance Model Tutorial Session 3: OPM Serializations

Open Provenance Model Tutorial Session 3: OPM Serializations

Date post: 24-Feb-2016
Category:
Upload: kieve
View: 59 times
Download: 0 times
Share this document with a friend
Description:
Open Provenance Model Tutorial Session 3: OPM Serializations. Luc Moreau [email protected] University of Southampton. Session 3: Aims. In this session, you will learn about: The XML Schema for OPM The OWL ontology for OPM. Session 3: Contents. OPM Layered Architecture - PowerPoint PPT Presentation
Popular Tags:
22
Open Provenance Model Tutorial Session 3: OPM Serializations Luc Moreau [email protected] University of Southampton
Transcript
Page 1: Open Provenance Model Tutorial Session  3:  OPM Serializations

Open Provenance Model Tutorial Session 3: OPM Serializations

Luc [email protected] of Southampton

Page 2: Open Provenance Model Tutorial Session  3:  OPM Serializations

Session 3: Aims

In this session, you will learn about:• The XML Schema for OPM• The OWL ontology for OPM

Page 3: Open Provenance Model Tutorial Session  3:  OPM Serializations

Session 3: Contents

• OPM Layered Architecture• XML Binding• RDF Binding• RDF Binding with OWL Inferences• Conclusion

Page 4: Open Provenance Model Tutorial Session  3:  OPM Serializations

OPM LAYERED ARCHITECTURE

Page 5: Open Provenance Model Tutorial Session  3:  OPM Serializations

5

OPM Layered Model

OPM Core

OPM Essential Profiles: Collections, Attribution

OPM Domain Specialization: Workflow, Web

Tech

nolo

gy B

indi

ngs:

XM

L, R

DF

OPM Sig OPM

bas

ed A

PIs:

reco

rd, q

uery

Page 6: Open Provenance Model Tutorial Session  3:  OPM Serializations

XML BINDING

Page 7: Open Provenance Model Tutorial Session  3:  OPM Serializations

OPM Graph

<opm:opmGraph xmlns:opm="http://openprovenance.org/model/v1.1.a" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://example.com/"> <opm:accounts/> <opm:processes> <opm:artifacts/> <opm:agents/> <opm:causalDependencies/></opm:opmGraph>

Page 8: Open Provenance Model Tutorial Session  3:  OPM Serializations

OPM Process

<opm:process id="p1"> <opm:account ref="black"/> <opm:label value="align_warp 1"/> <opm:annotation id="an1_p1"> <opm:property uri="http://openprovenance.org/primitives#primitive"> <opm:value xsi:type="xsd:string"> http://openprovenance.org/primitives#align_warp </opm:value> </opm:property> </opm:annotation></opm:process>

id: xs:ID implies uniqueness within documentaccount membershiplabel: for pretty printingannotation: set of property key value pairs

Page 9: Open Provenance Model Tutorial Session  3:  OPM Serializations

OPM Artifact

<opm:artifact id="a1"> <opm:account ref="black"/> <opm:label value="Reference Image"/> <opm:type value="http://openprovenance.org/primitives#File"/> <opm:annotation id="an1_a1"> <opm:property uri="http://openprovenance.org/primitives#path"> <opm:value xsi:type="xsd:string"> /shomewhere/pc1/reference.img </opm:value> </opm:property> </opm:annotation></opm:artifact>

id: xs:ID implies uniqueness within documentaccount membershiplabel: for pretty printingannotation: set of property key value pairsopm:type: a predefined OPM annotation, with compact syntax

Page 10: Open Provenance Model Tutorial Session  3:  OPM Serializations

OPM edges

<opm:used> <opm:effect ref="p1"/> <opm:role value="img"/> <opm:cause ref="a3"/> <opm:account ref="black"/></opm:used>

<opm:wasGeneratedBy> <opm:effect ref="a30"/> <opm:role value="out"/> <opm:cause ref="p15"/> <opm:account ref="black"/></opm:wasGeneratedBy>

<opm:wasDerivedFrom> <opm:effect ref="a11"/> <opm:cause ref="a1"/> <opm:account ref="black"/></opm:wasDerivedFrom>

ref: refers to nodes ids

Page 11: Open Provenance Model Tutorial Session  3:  OPM Serializations

RDF BINDING

Page 12: Open Provenance Model Tutorial Session  3:  OPM Serializations

History of RDF bindings

• Tupelo (Futrelle)• OWL ontology from Tupelo• OWL ontology from Paulson• OWL ontology in OPM Toolbox• OWL ontology by Tetherless Team (PC3)

Page 13: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (1)

• OPM toolbox allows for conversion from XML to RDF and back

• Ontology design principle:– XML toplevel element corresponds to a OWL class– Introduce an OPMGraph class– Make graph membership explicit by means of

properties

Page 14: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (1)

Page 15: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (1)

// Class: http://openprovenance.org/ontology#Used

SubClassOf(Used ObjectSomeValuesFrom(cause Artifact))SubClassOf(Used ObjectAllValuesFrom(cause Artifact))SubClassOf(Used ObjectSomeValuesFrom(role Role))SubClassOf(Used ObjectAllValuesFrom(role Role))SubClassOf(Used ObjectSomeValuesFrom(effect Process))SubClassOf(Used ObjectAllValuesFrom(effect Process))SubClassOf(Used Edge)

DisjointClasses(Used WasTriggeredBy)DisjointClasses(Used WasControlledBy)DisjointClasses(Used WasDerivedFrom)DisjointClasses(Used WasGeneratedBy)

Page 16: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (1)

pc1:p5 a opm:Process ;opm:account pc1:black ;opm:label "Reslice 1" .

pc1:an1_p5 a opm:Annotation .

pc1:pr_18 a opm:Property ;opm:uri "http://openprovenance.org/primitives#primitive" ;opm:value "http://openprovenance.org/primitives#reslice" .

pc1:an1_p5 opm:property pc1:pr_18 .

pc1:p5 opm:annotation pc1:an1_p5 .

pc1:u_103 a opm:Used ;opm:effect pc1:p1 ;opm:role pc1:r_102 ;opm:cause pc1:a3 ;opm:account pc1:black .

pc1:gr_273 a opm:OPMGraph ;opm:hasAccount pc1:black ;opm:hasProcess pc1:p5 , ...;opm:hasArtifact pc1:a25p, ...;opm:hasDependency pc1:u_103, ...

Page 17: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (1)

• Limitations– OPM edges are reified, i.e. represented as classes

and not properties– Transitive closure of OPM edges cannot be expressed – Annotations are reified too– Not natural RDF representation

• See http://www.jenitennison.com/blog/node/142 for a discussion

• But fully compatible with XML!

Page 18: Open Provenance Model Tutorial Session  3:  OPM Serializations

RDF BINDING AND OWL INFERENCES

Page 19: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (2)

• Define properties to represent OPM edges• Use OWL property chains to infer these edges

Page 20: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology for OPM (2)// Class: http://openprovenance.org/ontology#Used

SubClassOf(Used ObjectSomeValuesFrom(causeUsed Artifact))SubClassOf(Used ObjectSomeValuesFrom(role Role))SubClassOf(Used ObjectSomeValuesFrom(effectUsed Process))SubClassOf(Used Edge)

// Object property: http://openprovenance.org/ontology#_used

SubObjectPropertyOf(_used _used_star)ObjectPropertyDomain(_used Process)ObjectPropertyRange(_used Artifact) SubObjectPropertyOf(SubObjectPropertyChain(effectUsed-1 causeUsed) _used)

// Object property: http://openprovenance.org/ontology#_used_star

ObjectPropertyDomain(_used_star Process)ObjectPropertyRange(_used_star Artifact)SubObjectPropertyOf(SubObjectPropertyChain(_used _wasDerivedFrom_star) _used_star)

Page 21: Open Provenance Model Tutorial Session  3:  OPM Serializations

OWL Ontology (2)

• OPM inferences could alternatively be encoded as SWRL rules

• Problematic in the presence of multiple accounts: it is meaningless to make inference over properties corresponding to edges belonging to multiple accounts

• A solution is to use named graphs to represent accounts

• What is the semantics of OWL+SWRL+Named Graphs+SPARQL? What is the complexity?

Page 22: Open Provenance Model Tutorial Session  3:  OPM Serializations

Conclusion on OPM Bindings

• Two compatible bindings for RDF and XML, with lossless conversions (up to node naming)

• Converter makes extra-assumptions on identifiers (xs:ID in XML schema and URI in RDF)

• Scope of an OPM graph is not clear in RDF• What other binding would be useful?• Challenges in implementing OPM with Semantic

Web technologies• Jun Zhao’s OPMV is an emerging alternative

serialization of OPM in RDF


Recommended