SlideShare a Scribd company logo
1 of 17
Download to read offline
RDF Constraint Checking
Using RDF Data Descriptions (RDD)
Peter M. Fischer, Georg Lausen, Alexander Schätzle
University of Freiburg, Germany
Michael Schmidt
metaphacts GmbH, Germany
LWDM 2015 - Brussels, Belgium
27.03.2015 RDF Constraint Checking with RDD 2
Motivation
 Linked Open Data (LOD) is becoming more and more popular
(not only academia & research)
• RDF is the lingua franca of Semantic Web and LOD
 However, quality of RDF datasets varies heavily
• What we would need:
1) Mechanisms to describe the schema of a dataset
 RDFS and OWL are made for inference but not for validation
2) Tools to validate if a dataset adheres to a given schema
 W3C RDF Data Shapes Working Group Charter1
• Definition and publication of topology and value constraints
• Verification of data integrity
1 [http://www.w3.org/2014/data-shapes/charter]
?
27.03.2015 RDF Constraint Checking with RDD 3
RDD
 RDF Data Descriptions (RDD) [1]
• Human readable, easy to grasp, expressive constraint language for RDF
• Qualified constraints (assigned to a class)
• Unqualified constraints (global constraints on properties)
27.03.2015 RDF Constraint Checking with RDD 4
RDD
 Example
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
27.03.2015 RDF Constraint Checking with RDD 5
RDD
 Example
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
age is missing
27.03.2015 RDF Constraint Checking with RDD 6
RDD vs. Shape Expressions [2]
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
<Person> {
rdfs:label xsd:string
, foaf:mbox xsd:string{0,2}
, foaf:age xsd:int
, foaf:knows @<Person>*
}
RDD Shape Expressions (ShEx)
• More focus on verification
• Inspired by relational constraints
• Validation of typed datasets
• Meaning: Are there instances of type
person that do not adhere to the schema?
• More focus on type inference
• Inspired by XML RelaxNG
• Meaning: Which instances have
the shape of a person
RDD Semantics
 Semantics of RDD defined in first-order logic (FOL)
• Can be mapped to exisiting work on integrity constraints,
e.g. relational constraints
• FOL is well understood (in terms of complexity and expressivity)
 Example:
27.03.2015 RDF Constraint Checking with RDD 7
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
RDD Checker - Implementation
 RDD Checker: SPARQL-based implementation of RDD
• RDD is decomposed into corresponding FOL constraints
• FOL constraints are mapped to corresponding SPARQL 1.0 queries
(some constraints impose more than one query)
 Example:
27.03.2015 RDF Constraint Checking with RDD 8
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
RDD Checker - Evaluation
 Setup:
• RDD Checker v2.11 using Sesame 2.7.12 and Virtuoso 7.1.0
• 4 cores @ 3.06 GHz, 32 GB RAM, 12 TB disk, Ubuntu 12.04 LTS
• Data: SP2 Benchmark Data  scalings 10K to 100M triples
• Constraints: 215 in total  251 SPARQL queries
 Validation vs. Loading:
27.03.2015 RDF Constraint Checking with RDD 9
Sesame Virtuoso
Optimizations
 1:1 mapping of FOL to SPARQL 1.0 is not optimal
• A lot of leeway for optimizations in various directions
• We cannot pass it on to the SPARQL optimizer as many optimizations rely
on deep understanding of the constraint semantics
 3 directions of optimization:
• Intra-Query Optimization
 optimize individual queries (using SPARQL 1.1)
• Intra-Constraint Optimization
 reduce queries for one constraint
• Inter-Constraint Optimization
 combine constraints in one query
27.03.2015 RDF Constraint Checking with RDD 10
Optimizations
 Intra-Query Optimization
27.03.2015 RDF Constraint Checking with RDD 11
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
RDD Checker v2.11
max(p,C,n):
 n+1 joins
 ((n+1)¦2) filter conditions
max(p,C,n):
 1 join
 independent of max value
Optimizations
 Intra-Query Optimization – Experiments
• Varying max(n) between 1 and 9 (invalid for n < 4)
• Qualified (for a specific class) vs. Unqualified (for all classes)
• Limit (only a few violations) vs. No Limit (all violations)
27.03.2015 RDF Constraint Checking with RDD 12
Sesame Virtuoso
• Grouping always faster without Limit
• Join with Limit fast for small n
• Grouping faster for n > 3
• Join faster for small n (even without Limit)
Optimizations
 Intra-Constraint Optimization
27.03.2015 RDF Constraint Checking with RDD 13
OWA CLASS foaf:Person {
KEY rdfs:label : LITERAL
MAX(2) foaf:mbox : LITERAL
TOTAL foaf:age : LITERAL(xsd:int)
RANGE(foaf:Person) foaf:knows : IRI
}
RDDCheckerv2.11
Optimizations
 Intra-Constraint Optimization – Experiments
• min(p,1) + max(p,1) using joins (SPARQL 1.0) as baseline
• min(p,1) + max(p,1) using grouping (SPARQL 1.1)
• total(p) in a single query using grouping (SPARQL 1.1)
27.03.2015 RDF Constraint Checking with RDD 14
Sesame Virtuoso
• Join for n=1 cheaper than grouping
• But combination is superior to join
• Join always cheaper for small datasets
• Grouping combination superior for >= 5M
Summary
 RDF Data Descriptions (RDD)
• Expressive RDF constraint language
• Inspired by relational constraints
• Easy to grasp, human readable syntax
• Semantics defined in FOL
 RDD Checker (v2.11)
• Validation tool for RDD
• Maps constraints into SPARQL 1.0 compliant queries
• Queries can be run with any existing RDF triple store
 Future Work
• Current implementation has many optimization potentials
• Reduce number of SPARQL queries using Multi-Query Optimization
• Adding more constraint definitions to RDD
27.03.2015 RDF Constraint Checking with RDD 15
Thank You
27.03.2015 RDF Constraint Checking with RDD 16
Thank you for your attention!
Questions?
References
[1] Michael Schmidt and Georg Lausen: Pleasantly Consuming Linked Data with RDF Data
Descriptions. In: COLD 2013
[2] Prud’hommeaux, E. et al.: Shape Expressions: An RDF validation and transformation
language. In: SEM 2014, pp. 32-40
27.03.2015 RDF Constraint Checking with RDD 17

More Related Content

What's hot

PhD thesis defense: Large-scale multilingual knowledge extraction, publishin...
PhD thesis defense:  Large-scale multilingual knowledge extraction, publishin...PhD thesis defense:  Large-scale multilingual knowledge extraction, publishin...
PhD thesis defense: Large-scale multilingual knowledge extraction, publishin...Dimitris Kontokostas
 
RDF SHACL, Annotations, and Data Frames
RDF SHACL, Annotations, and Data FramesRDF SHACL, Annotations, and Data Frames
RDF SHACL, Annotations, and Data FramesKurt Cagle
 
Semantic Variation Graphs the case for RDF & SPARQL
Semantic Variation Graphs the case for RDF & SPARQLSemantic Variation Graphs the case for RDF & SPARQL
Semantic Variation Graphs the case for RDF & SPARQLJerven Bolleman
 
Semantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsGuus Schreiber
 
Structured Dynamics' Semantic Technologies Product Stack
Structured Dynamics' Semantic Technologies Product StackStructured Dynamics' Semantic Technologies Product Stack
Structured Dynamics' Semantic Technologies Product StackMike Bergman
 
Rdf And Rdf Schema For Ontology Specification
Rdf And Rdf Schema For Ontology SpecificationRdf And Rdf Schema For Ontology Specification
Rdf And Rdf Schema For Ontology Specificationchenjennan
 
GRDDL: The Why, What, How, and Where
GRDDL: The Why, What, How, and WhereGRDDL: The Why, What, How, and Where
GRDDL: The Why, What, How, and WhereChimezie Ogbuji
 
Graph databases & data integration v2
Graph databases & data integration v2Graph databases & data integration v2
Graph databases & data integration v2Dimitris Kontokostas
 
6 Months Project Training in PHP
6 Months Project Training in PHP6 Months Project Training in PHP
6 Months Project Training in PHPTech Mentro
 
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)Dr.-Ing. Thomas Hartmann
 
Semantic web
Semantic webSemantic web
Semantic webtariq1352
 
RDF and Open Linked Data, a first approach
RDF and Open Linked Data, a first approachRDF and Open Linked Data, a first approach
RDF and Open Linked Data, a first approachhorvadam
 
Neural Architectures for Named Entity Recognition
Neural Architectures for Named Entity RecognitionNeural Architectures for Named Entity Recognition
Neural Architectures for Named Entity RecognitionRrubaa Panchendrarajan
 
A Hands On Overview Of The Semantic Web
A Hands On Overview Of The Semantic WebA Hands On Overview Of The Semantic Web
A Hands On Overview Of The Semantic WebShamod Lacoul
 

What's hot (20)

PhD thesis defense: Large-scale multilingual knowledge extraction, publishin...
PhD thesis defense:  Large-scale multilingual knowledge extraction, publishin...PhD thesis defense:  Large-scale multilingual knowledge extraction, publishin...
PhD thesis defense: Large-scale multilingual knowledge extraction, publishin...
 
RDF SHACL, Annotations, and Data Frames
RDF SHACL, Annotations, and Data FramesRDF SHACL, Annotations, and Data Frames
RDF SHACL, Annotations, and Data Frames
 
RDF briefing
RDF briefingRDF briefing
RDF briefing
 
Semantic Variation Graphs the case for RDF & SPARQL
Semantic Variation Graphs the case for RDF & SPARQLSemantic Variation Graphs the case for RDF & SPARQL
Semantic Variation Graphs the case for RDF & SPARQL
 
Semantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to Applications
 
Semantic Web in Action
Semantic Web in ActionSemantic Web in Action
Semantic Web in Action
 
Structured Dynamics' Semantic Technologies Product Stack
Structured Dynamics' Semantic Technologies Product StackStructured Dynamics' Semantic Technologies Product Stack
Structured Dynamics' Semantic Technologies Product Stack
 
Rdf And Rdf Schema For Ontology Specification
Rdf And Rdf Schema For Ontology SpecificationRdf And Rdf Schema For Ontology Specification
Rdf And Rdf Schema For Ontology Specification
 
GRDDL: The Why, What, How, and Where
GRDDL: The Why, What, How, and WhereGRDDL: The Why, What, How, and Where
GRDDL: The Why, What, How, and Where
 
SWT Lecture Session 8 - Rules
SWT Lecture Session 8 - RulesSWT Lecture Session 8 - Rules
SWT Lecture Session 8 - Rules
 
Graph databases & data integration v2
Graph databases & data integration v2Graph databases & data integration v2
Graph databases & data integration v2
 
SHACL Specification Draft
SHACL Specification DraftSHACL Specification Draft
SHACL Specification Draft
 
6 Months Project Training in PHP
6 Months Project Training in PHP6 Months Project Training in PHP
6 Months Project Training in PHP
 
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)
2015.09. - The Role of Reasoning for RDF Validation (SEMANTiCS 2015)
 
SPIN in Five Slides
SPIN in Five SlidesSPIN in Five Slides
SPIN in Five Slides
 
Semantic web
Semantic webSemantic web
Semantic web
 
ShEx vs SHACL
ShEx vs SHACLShEx vs SHACL
ShEx vs SHACL
 
RDF and Open Linked Data, a first approach
RDF and Open Linked Data, a first approachRDF and Open Linked Data, a first approach
RDF and Open Linked Data, a first approach
 
Neural Architectures for Named Entity Recognition
Neural Architectures for Named Entity RecognitionNeural Architectures for Named Entity Recognition
Neural Architectures for Named Entity Recognition
 
A Hands On Overview Of The Semantic Web
A Hands On Overview Of The Semantic WebA Hands On Overview Of The Semantic Web
A Hands On Overview Of The Semantic Web
 

Similar to RDF Constraint Checking using RDF Data Descriptions (RDD)

First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
First Steps in Semantic Data Modelling and Search & Analytics in the CloudFirst Steps in Semantic Data Modelling and Search & Analytics in the Cloud
First Steps in Semantic Data Modelling and Search & Analytics in the CloudOntotext
 
Infromation Reprentation, Structured Data and Semantics
Infromation Reprentation,Structured Data and SemanticsInfromation Reprentation,Structured Data and Semantics
Infromation Reprentation, Structured Data and SemanticsYogendra Tamang
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutMediaMixerCommunity
 
Services semantic technology_terminology
Services semantic technology_terminologyServices semantic technology_terminology
Services semantic technology_terminologyTenforce
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Mikael Nilsson
 
Comparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPComparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPMSGUNC
 
Resource description framework
Resource description frameworkResource description framework
Resource description frameworkStanley Wang
 
DC-2008 DCMI/IEEE workshop
DC-2008 DCMI/IEEE workshopDC-2008 DCMI/IEEE workshop
DC-2008 DCMI/IEEE workshopMikael Nilsson
 
Linked Data, Ontologies and Inference
Linked Data, Ontologies and InferenceLinked Data, Ontologies and Inference
Linked Data, Ontologies and InferenceBarry Norton
 
Enterprise knowledge graphs
Enterprise knowledge graphsEnterprise knowledge graphs
Enterprise knowledge graphsSören Auer
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialLeeFeigenbaum
 
LOM DCAM at LOM Meeting 2008-04-23
LOM DCAM at LOM Meeting 2008-04-23LOM DCAM at LOM Meeting 2008-04-23
LOM DCAM at LOM Meeting 2008-04-23Mikael Nilsson
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." Avalon Media System
 
20080917 Rev
20080917 Rev20080917 Rev
20080917 Revcharper
 

Similar to RDF Constraint Checking using RDF Data Descriptions (RDD) (20)

First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
First Steps in Semantic Data Modelling and Search & Analytics in the CloudFirst Steps in Semantic Data Modelling and Search & Analytics in the Cloud
First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
 
Infromation Reprentation, Structured Data and Semantics
Infromation Reprentation,Structured Data and SemanticsInfromation Reprentation,Structured Data and Semantics
Infromation Reprentation, Structured Data and Semantics
 
semanticweb
semanticwebsemanticweb
semanticweb
 
eswc2011phd-schneid
eswc2011phd-schneideswc2011phd-schneid
eswc2011phd-schneid
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playout
 
Services semantic technology_terminology
Services semantic technology_terminologyServices semantic technology_terminology
Services semantic technology_terminology
 
Semantics
SemanticsSemantics
Semantics
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19
 
Comparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPComparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHP
 
Resource description framework
Resource description frameworkResource description framework
Resource description framework
 
DC-2008 DCMI/IEEE workshop
DC-2008 DCMI/IEEE workshopDC-2008 DCMI/IEEE workshop
DC-2008 DCMI/IEEE workshop
 
RDF validation tutorial
RDF validation tutorialRDF validation tutorial
RDF validation tutorial
 
Efficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data StreamsEfficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data Streams
 
Linked Data, Ontologies and Inference
Linked Data, Ontologies and InferenceLinked Data, Ontologies and Inference
Linked Data, Ontologies and Inference
 
Enterprise knowledge graphs
Enterprise knowledge graphsEnterprise knowledge graphs
Enterprise knowledge graphs
 
Demystifying RDF
Demystifying RDFDemystifying RDF
Demystifying RDF
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web Tutorial
 
LOM DCAM at LOM Meeting 2008-04-23
LOM DCAM at LOM Meeting 2008-04-23LOM DCAM at LOM Meeting 2008-04-23
LOM DCAM at LOM Meeting 2008-04-23
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World."
 
20080917 Rev
20080917 Rev20080917 Rev
20080917 Rev
 

Recently uploaded

How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service PuneVIP Call Girls Pune Madhuri 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service PuneCall girls in Ahmedabad High profile
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneCall girls in Ahmedabad High profile
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...aditipandeya
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 

Recently uploaded (20)

Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service PuneVIP Call Girls Pune Madhuri 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Madhuri 8617697112 Independent Escort Service Pune
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 

RDF Constraint Checking using RDF Data Descriptions (RDD)

  • 1. RDF Constraint Checking Using RDF Data Descriptions (RDD) Peter M. Fischer, Georg Lausen, Alexander Schätzle University of Freiburg, Germany Michael Schmidt metaphacts GmbH, Germany LWDM 2015 - Brussels, Belgium
  • 2. 27.03.2015 RDF Constraint Checking with RDD 2 Motivation  Linked Open Data (LOD) is becoming more and more popular (not only academia & research) • RDF is the lingua franca of Semantic Web and LOD  However, quality of RDF datasets varies heavily • What we would need: 1) Mechanisms to describe the schema of a dataset  RDFS and OWL are made for inference but not for validation 2) Tools to validate if a dataset adheres to a given schema  W3C RDF Data Shapes Working Group Charter1 • Definition and publication of topology and value constraints • Verification of data integrity 1 [http://www.w3.org/2014/data-shapes/charter] ?
  • 3. 27.03.2015 RDF Constraint Checking with RDD 3 RDD  RDF Data Descriptions (RDD) [1] • Human readable, easy to grasp, expressive constraint language for RDF • Qualified constraints (assigned to a class) • Unqualified constraints (global constraints on properties)
  • 4. 27.03.2015 RDF Constraint Checking with RDD 4 RDD  Example OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI }
  • 5. 27.03.2015 RDF Constraint Checking with RDD 5 RDD  Example OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI } age is missing
  • 6. 27.03.2015 RDF Constraint Checking with RDD 6 RDD vs. Shape Expressions [2] OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI } <Person> { rdfs:label xsd:string , foaf:mbox xsd:string{0,2} , foaf:age xsd:int , foaf:knows @<Person>* } RDD Shape Expressions (ShEx) • More focus on verification • Inspired by relational constraints • Validation of typed datasets • Meaning: Are there instances of type person that do not adhere to the schema? • More focus on type inference • Inspired by XML RelaxNG • Meaning: Which instances have the shape of a person
  • 7. RDD Semantics  Semantics of RDD defined in first-order logic (FOL) • Can be mapped to exisiting work on integrity constraints, e.g. relational constraints • FOL is well understood (in terms of complexity and expressivity)  Example: 27.03.2015 RDF Constraint Checking with RDD 7 OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI }
  • 8. RDD Checker - Implementation  RDD Checker: SPARQL-based implementation of RDD • RDD is decomposed into corresponding FOL constraints • FOL constraints are mapped to corresponding SPARQL 1.0 queries (some constraints impose more than one query)  Example: 27.03.2015 RDF Constraint Checking with RDD 8 OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI }
  • 9. RDD Checker - Evaluation  Setup: • RDD Checker v2.11 using Sesame 2.7.12 and Virtuoso 7.1.0 • 4 cores @ 3.06 GHz, 32 GB RAM, 12 TB disk, Ubuntu 12.04 LTS • Data: SP2 Benchmark Data  scalings 10K to 100M triples • Constraints: 215 in total  251 SPARQL queries  Validation vs. Loading: 27.03.2015 RDF Constraint Checking with RDD 9 Sesame Virtuoso
  • 10. Optimizations  1:1 mapping of FOL to SPARQL 1.0 is not optimal • A lot of leeway for optimizations in various directions • We cannot pass it on to the SPARQL optimizer as many optimizations rely on deep understanding of the constraint semantics  3 directions of optimization: • Intra-Query Optimization  optimize individual queries (using SPARQL 1.1) • Intra-Constraint Optimization  reduce queries for one constraint • Inter-Constraint Optimization  combine constraints in one query 27.03.2015 RDF Constraint Checking with RDD 10
  • 11. Optimizations  Intra-Query Optimization 27.03.2015 RDF Constraint Checking with RDD 11 OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI } RDD Checker v2.11 max(p,C,n):  n+1 joins  ((n+1)¦2) filter conditions max(p,C,n):  1 join  independent of max value
  • 12. Optimizations  Intra-Query Optimization – Experiments • Varying max(n) between 1 and 9 (invalid for n < 4) • Qualified (for a specific class) vs. Unqualified (for all classes) • Limit (only a few violations) vs. No Limit (all violations) 27.03.2015 RDF Constraint Checking with RDD 12 Sesame Virtuoso • Grouping always faster without Limit • Join with Limit fast for small n • Grouping faster for n > 3 • Join faster for small n (even without Limit)
  • 13. Optimizations  Intra-Constraint Optimization 27.03.2015 RDF Constraint Checking with RDD 13 OWA CLASS foaf:Person { KEY rdfs:label : LITERAL MAX(2) foaf:mbox : LITERAL TOTAL foaf:age : LITERAL(xsd:int) RANGE(foaf:Person) foaf:knows : IRI } RDDCheckerv2.11
  • 14. Optimizations  Intra-Constraint Optimization – Experiments • min(p,1) + max(p,1) using joins (SPARQL 1.0) as baseline • min(p,1) + max(p,1) using grouping (SPARQL 1.1) • total(p) in a single query using grouping (SPARQL 1.1) 27.03.2015 RDF Constraint Checking with RDD 14 Sesame Virtuoso • Join for n=1 cheaper than grouping • But combination is superior to join • Join always cheaper for small datasets • Grouping combination superior for >= 5M
  • 15. Summary  RDF Data Descriptions (RDD) • Expressive RDF constraint language • Inspired by relational constraints • Easy to grasp, human readable syntax • Semantics defined in FOL  RDD Checker (v2.11) • Validation tool for RDD • Maps constraints into SPARQL 1.0 compliant queries • Queries can be run with any existing RDF triple store  Future Work • Current implementation has many optimization potentials • Reduce number of SPARQL queries using Multi-Query Optimization • Adding more constraint definitions to RDD 27.03.2015 RDF Constraint Checking with RDD 15
  • 16. Thank You 27.03.2015 RDF Constraint Checking with RDD 16 Thank you for your attention! Questions?
  • 17. References [1] Michael Schmidt and Georg Lausen: Pleasantly Consuming Linked Data with RDF Data Descriptions. In: COLD 2013 [2] Prud’hommeaux, E. et al.: Shape Expressions: An RDF validation and transformation language. In: SEM 2014, pp. 32-40 27.03.2015 RDF Constraint Checking with RDD 17