SPARQL Dimitar Kazakov, with references to material by Noureddin Sadawi ARIN, 2014.

Slides:



Advertisements
Similar presentations
Major Influences on the Design of ODM Dan Chang (IBM) Elisa Kendall (Sandpiper) MDSW 2004.
Advertisements

Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
Chapter 10: Designing Databases
Schema Matching and Query Rewriting in Ontology-based Data Integration Zdeňka Linková ICS AS CR Advisor: Július Štuller.
Alexandra Cristea & Matthew Yau 1.
1 ISWC-2003 Sanibel Island, FL IMG, University of Manchester Jeff Z. Pan 1 and Ian Horrocks 1,2 {pan | 1 Information Management.
Brief History of Knowledge Representation, Description Logics and OWL OpenGALEN BioHealth Informatics Group © University of Manchester.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Use Case: Populating Business Objects.
An Introduction to RDF(S) and a Quick Tour of OWL
GridVine: Building Internet-Scale Semantic Overlay Networks By Lan Tian.
ΑΝΑΠΑΡΑΣΤΑΣΗ ΓΝΩΣΗΣ ΣΤΟΝ ΠΑΓΚΟΣΜΙΟ ΙΣΤΟ OWL
Jena a introduction Semantic Web Tools. Originally devised by HP Labs in Bristol, it was developed by Brian McBride of Hewlett-Packard and was derived.
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SPARQL Query Language for RDF presented by Cristina Feier.
AHRT: The Automated Human Resources Tool BY Roi Ceren Muthukumaran Chandrasekaran.
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
SPICE! An Ontology Based Web Application By Angela Maduko and Felicia Jones Final Presentation For CSCI8350: Enterprise Integration.
Quick RDF Introduction Scott Streit Terminology – RDF Triple (Also the triple form used in SPARQL) RDF Triple  (Resource, Property,
Of 17 course outline. of 17 marek reformat ecerf building, w ece 627, winter'13.
Semantic Web Tools Vagan Terziyan Department of Mathematical Information Technology, University of Jyvaskyla ;
Descriptions Robert Grimm New York University. The Final Assignment…  Your own application  Discussion board  Think: Paper summaries  Web cam proxy.
Ontology and Ontology-Based Applications C. Farkas Some of the slides were obtained from presentations of Ian Horrocks.
The Semantic Web – WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Using Java in Linked Data Applications Fuming Shih Oct 12.
Triple Stores.
Ontologies: Making Computers Smarter to Deal with Data Kei Cheung, PhD Yale Center for Medical Informatics CBB752, February 9, 2015, Yale University.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
Example: Jena and Fuseki
Okech Odhiambo Faculty of Information Technology Strathmore University
Database Support for Semantic Web Masoud Taghinezhad Omran Sharif University of Technology Computer Engineering Department Fall.
Ontology Query. What is an Ontology Ontologies resemble faceted taxonomies but use richer semantic relationships among terms and attributes, as well as.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
RDF and triplestores CMSC 461 Michael Wilson. Reasoning  Relational databases allow us to reason about data that is organized in a specific way  Data.
Export experiments in Corese. October 10th Export experiments in Corese Olivier Corby October 10th, 2005 Interoperability Working Days October 10th-11th,
DAML+OIL: an Ontology Language for the Semantic Web.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Ontology engineering Lab #8 – October 20, 2014.
Protégé-OWL Screens Introduction* *Summarized from various examples from the Protégé web site ( and interacting with the tool.
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
6 Dec Rev. 14 Dec CmpE 583 Fall 2008OWL Intro 1 OWL Intro Notes off Lacy Ch. 4 Atilla Elçi.
The Semantic Web Riccardo Rosati Dottorato in Ingegneria Informatica Sapienza Università di Roma a.a. 2006/07.
Ontology based e-Real Estate Agency Information System By Moein Mehrolhasani Bijan Zamanian cmpe 588.
Triple Stores. What is a triple store? A specialized database for RDF triples Can ingest RDF in a variety of formats Supports a query language – SPARQL.
Practical RDF Chapter 12. Ontologies: RDF Business Models Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
Of 38 lecture 6: rdf – axiomatic semantics and query.
CMPE58H Project Progress Presentation QAPoint H.Tuğçe Özkaptan Gözde Kaymaz Serkan Kırbaş
Of 35 lecture 17: semantic web rules. of 35 ece 627, winter ‘132 logic importance - high-level language for expressing knowledge - high expressive power.
06 Dec Rev. 14 Dec CmpE 583 Fall 2008 OWL Language 1 OWL Language off Lacy Ch. 10 Atilla Elçi.
OWL Web Ontology Language Summary IHan HSIAO (Sharon)
Ontology Technology applied to Catalogues Paul Kopp.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
Components.
Triple Stores.
Resource Description Framework
Online Laptop Shop through Semantic Web
ece 720 intelligent web: ontology and beyond
Supporting Arbitrary Custom Datatypes in RDF and SPARQL
Using Rules with Ontologies in the Semantic Web
OWL Language off Textbook Ch. 10
Ontology.
ece 720 intelligent web: ontology and beyond
Triple Stores.
A Snapshot of the OWL Web
Ontology.
Example: Jena and Fuseki
Triple Stores.
Linked Data 101 Things, URIs, RDF, Triples, Turtle, Ontologies, Vocabularies and SPARQL Linked Data is our Implementation choice for FAIR.
Presentation transcript:

SPARQL Dimitar Kazakov, with references to material by Noureddin Sadawi ARIN, 2014

Ontologies so far: RDF O RDF: a conceptual approach to representing data as triples: subject – predicate – object. It’s a family of specifications, where… O Classes and properties vary: rdf vs rdfs O Various data serialisation formats: - RDF/XML - Turtle - JSON-LD, etc.

OWL O A family of ontology languages with clearly defined semantics O Syntax of: OWL Lite ⊂ OWL DL ⊂ OWL Full O OWL Lite meant to restrict constructs for comp. efficiency, but expressiveness (hence complexity) ≈ OWL DL, just more awkward. O OWL DL: tailored to be a complete and decidable logic, with practical reasoning algs

OWL 2 O Introduces 3 subsets of the language: - EL – polynomial time reasoning complexity - QL – tailored to work with databases - RL - a rule subset of OWL2

Abstract syntax vs. serialisation O At the most abstract level one uses the notation of the appropriate class of logic O This can be saved in a variety of ways, e.g. see Protégé menu:

Ease of reading and expressivity can vary: O OWL2 Functional Syntax: Ontology( Declaration( Class( :Pop ) )) O RDF/XML syntax: O RDF/Turtle rdf:type owl:Ontology. :Pop rdf:type owl:Class.

(cont.) O Manchester Syntax: Ontology: Class: Pop ______________________________________ These details are hidden away when using a GUI tool, such as Protégé, to implement the ontology. It’s still important to understand the abstract syntax, which appears in the GUI, e.g. Student ⊑ Person (a description) Father ≡ Man ⊓ Parent (a definition) _______________________________________

OWL abstract syntax e.g. here is a subset:

Protégé 3.x vs 4.x O Use 3.x if application cannot abstract away from working directly with the RDF triples; or to have built-in support for SPARQL to query the database. Multi-user support, database storage possible. Supports OWL1.0 (DL, OWL Full possible.) O Use 4.x to work in pure OWL (2.0), with better optimisations of parser and memory use. No SPARQL, no DB support, no multi-u.

Building an ontology with Protégé: a case study Student ⊑ Person Lecturer ⊑ Person Student ⊓ Lecturer ≡ ⊥ ( i.e.: disjoint(Student,Lecturer) ) CSModule ⊑ Module MathsModule ⊑ Module CSModule ⊓ MathsModule ≡ ⊥

Building an ontology with Protégé: a case study Object properties: Studies Domain = Student; Range = Module Teaches Domain = Lecturer; Range = Module Data properties: Mapping individuals to values (strings for names and acronyms, integers for student ID.)

Publishing the ontology O Choose the URL where the file will be placed from the start and enter it in Protégé; O Put the file at that URL (e.g. home Web dir) when ready.

SPARQL Queries O A query language for ontologies O Protégé 3.x has built-in support (not in 4.x) O We’ll save our DB in RDF/XML format… O …then use the Apache Jena-Fuseki SPARQL servlet to access it.

Apache Jena-Fuseki O Serving RDF data over HTTP O Supports SPARQL for querying and updating O Get from - jena-fuseki distribution.tar.gz - tar –zxf - cd jena-fuseki /fuseki-server -update --mem /ds - open a browser and go to localhost:3030

Apache Jena-Fuseki - Control panel -> /ds [Select] - File upload (to upload you local DB) - you can then use SPARQL, e.g. SELECT * WHERE {?x ?y ?z} to see the entire DB.

SPARQL queries

More examples O What does this do? PREFIX uni: SELECT ?student WHERE {?student uni:Studies uni:CS101}

More examples O What does this do? PREFIX uni: PREFIX rdfs: SELECT ?class WHERE {?class rdfs:subClassOf uni:Person}