Knowledge Representation VII - IKT507. SPARQL stands for SPARQL Protocol And RDF Query Language

Similar documents
SPARQL. Part III. Jan Pettersen Nytun, UiA

Knowledge Representation RDF Turtle Namespace

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

ISWC 2017 Tutorial: Semantic Data Management in Practice

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA

2. RDF Semantic Web Basics Semantic Web

Knowledge Representation. Apache Jena Part II. Jan Pettersen Nytun, UiA

2. Knowledge Representation Applied Artificial Intelligence

Comparison of Semantic Web serialization syntaxes

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences

Semantic Information Retrieval: An Ontology and RDFbased

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

Day 2. RISIS Linked Data Course

Querying the Semantic Web

Transforming Data from into DataPile RDF Structure into RDF

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Querying RDF & RDFS. Several query languages exist to retrieve

BUILDING THE SEMANTIC WEB

SPARQL Query Examples

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data:

Energy-related data integration using Semantic data models for energy efficient retrofitting projects

Building Blocks of Linked Data

Semantic Days 2011 Tutorial Semantic Web Technologies

INDONESIAN COURSE ONTOLOGY BASED ON SEMANTIC WEB

Appendix B: The LCA ontology (lca.owl)

SEMANTIC WEB DATA MANAGEMENT. from Web 1.0 to Web 3.0

Today: RDF syntax. + conjunctive queries for OWL. KR4SW Winter 2010 Pascal Hitzler 3

Generating of RDF graph from a relational database using Jena API

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web

INFO216: Advanced Modelling

Introduction to RDF & SPARQL

SPAR-QL. Mario Arrigoni Neri

INF3580 SPRING 2014 EXERCISES WEEK 4

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018

Using RDF to Model the Structure and Process of Systems

Developing markup metaschemas to support interoperation among resources with different markup schemas

SPARQL: An RDF Query Language

An RDF-based Distributed Expert System

XML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF

Select all persons who belong to the class Father. SPARQL query PREFIX g: <

Semantic Web and Python Concepts to Application development

OWL a glimpse. OWL a glimpse (2) requirements for ontology languages. requirements for ontology languages

Linked Data: What Now? Maine Library Association 2017

Mapping Relational Data to RDF with Virtuoso's RDF Views

From the Web to the Semantic Web: RDF and RDF Schema

Semantic Technologies and CDISC Standards. Frederik Malfait, Information Architect, IMOS Consulting Scott Bahlavooni, Independent

Knowledge Representation for the Semantic Web

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

Unit 2 RDF Formal Semantics in Detail

A Frame-based Resource Description Framework Expert System

COMBINING X3D WITH SEMANTIC WEB TECHNOLOGIES FOR INTERIOR DESIGN

For return on 19 January 2018 (late submission: 2 February 2018)

Domain Specific Semantic Web Search Engine

OSM Lecture (14:45-16:15) Takahira Yamaguchi. OSM Exercise (16:30-18:00) Susumu Tamagawa

Linked data and its role in the semantic web. Dave Reynolds, Epimorphics

The Semantic Web. What is the Semantic Web?

Enhancing Security Exchange Commission Data Sets Querying by Using Ontology Web Language

a paradigm for the Semantic Web RDF Data Model Angelica Lo Duca IIT-CNR Linked Open Data:

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL

BASI DI DATI II 2 modulo Parte VIII: SPARQL

Profiles Research Networking Software API Guide

Semantic Web Tools. Federico Chesani 18 Febbraio 2010

Proposal for Implementing Linked Open Data on Libraries Catalogue

Description Logic. Eva Mráková,

SWAD-Europe Deliverable 8.1 Core RDF Vocabularies for Thesauri

SPARQL. Dr Nicholas Gibbins

Tony Mallia Edmond Scientific

6. RDFS Modeling Patterns Semantic Web

Representing musicology knowledge on the Web using Linked Data

A Semantic Model for Federated Queries Over a Normalized Corpus

Solving problem of semantic terminology in digital library

Ontological Modeling: Part 15

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FHIR RDF Sample side by side comparisons

PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS. Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy Zavgorodniy

An RDF Storage and Query Framework with Flexible Inference Strategy

Semantic challenges in sharing dataset metadata and creating federated dataset catalogs

RKB, sameas and dotac

Mapping Existing Data Sources into VIVO. Pedro Szekely, Craig Knoblock, Maria Muslea and Shubham Gupta University of Southern California/ISI

KDI OWL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

Semantic Web Information Management

SPARQL เอกสารหล ก ใน มคอ.3

An Alternative CIM Modeling Approach using JSON-LD

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

Semantic Web Fundamentals

RDF /RDF-S Providing Framework Support to OWL Ontologies

The Formal Syntax and Semantics of Web-PDDL

RDFS. Suresh Manandhar* & Dimitar Kazakov

SADI Semantic Web Services

Chapter 13: Advanced topic 3 Web 3.0

Fuseki Server Installation

SPARQL QUERY LANGUAGE WEB:

Defining Several Ontologies to Enhance the Expressive Power of Queries

BBF RFC 30: Draft of an RDF-based framework for the exchange and integration of Synthetic Biology data

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker

The P2 Registry

Transcription:

Knowledge Representation VII - IKT507 This sentence is false! PARQL stands for PARQL Protocol And RDF Query Language Jan Pettersen Nytun, UiA 1

The emantic Web tack Hierarchy of languages, where each layer exploits and uses capabilities of the layers below. / XML chema Jan Pettersen Nytun, UiA, page 2

[4]: RDF provides a simple way to represent distributed data. The triple is the simplest way to represent a named connection between two things...the standard way to access RDF data uses a query language called PARQL PARQL query patterns are represented in a variant of Turtle. Jan Pettersen Nytun, UiA, page 3

5

6

7

A imple Query [3] Find the title of a book from the given data graph RDF data: <http://example.org/book/book1> <http://purl.org/dc/elements/1.1/title> "PARQL Tutorial".. Typically it contains a set of triple patterns called a basic graph pattern, where subject, predicate and object may be a variable. PARQL query: ELECT?title WHERE { Variable basic graph pattern <http://example.org/book/book1> <http://purl.org/dc/elements/1.1/title>?title. } A basic graph pattern matches a subgraph of the RDF data when RDF terms from that subgraph may be substituted for the variables. Query result: title "PARQL Tutorial" Jan Pettersen Nytun, UiA, page 8

Multiple Matches [3] The following two subsets of the data provided the two matches:

10

11

Given ntology - Example @prefix : <http://www.semanticweb.org/janpn/ontologies/2014/8/parenthood#>.... <http://www.semanticweb.org/janpn/ontologies/2014/8/parenthood> rdf:type owl:ntology. :hason rdf:type owl:bjectproperty. :Female rdf:type owl:class ; rdfs:subclassf :Human. :Human rdf:type owl:class. :Male rdf:type owl:class ; rdfs:subclassf :Human. :HaraldVofNorway rdf:type owl:namedindividual ; rdfs:label "Harald V". Jan Pettersen Nytun, UiA,, page 12

electing All Triples Jan Pettersen Nytun, UiA, ntologies, page 13

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/xmlchema#> ELECT DITINCT?subject?predicate?object WHERE {?subject?predicate?object. } RDER BY?subject Jan Pettersen Nytun, UiA, ntologies, page 14

CNTRUCT tatement PREFIX : <http://www.semanticweb.org/janpn/ontologies/2014/8/parenthood#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/xmlchema#> construct {?son :hasparent?father} WHERE {?father :hason?son. } Jan Pettersen Nytun, UiA, page 15

rdfs:subclassf The members of one class (the subclass) are also members of the other (the super class). :Female rdf:type owl:class ; rdfs:subclassf :Human. Tools like reasoners understands the semantics of subclassf. It can also be described with PARQL: construct {?resourse rdf:type?theuperclass} WHERE {?theubclass rdfs:subclassf?theuperclass.?resourse rdf:type?theubclass } Jan Pettersen Nytun, UiA, 16

rdfs:subproperty f The pair related by one property (the sub property) are included in the other (the super property). :hason rdf:type owl:bjectproperty ; rdfs:subpropertyf :isparentto. It can also be described with PARQL: Jan Pettersen Nytun, UiA, 17

rdfs:subproperty f The pair related by one property (the sub property) are included in the other (the super property). :hason rdf:type owl:bjectproperty ; rdfs:subpropertyf :isparentto. It can also be described with PARQL: construct {? subject?theuperproperty? object } WHERE {?theubproperty rdfs:subpropertyf?theuperproperty.?subject?theubproperty?object } Jan Pettersen Nytun, UiA, 18

References [1] Book: David Poole and Alan Mackworth, Artificial Intelligence: Foundations of Computational Agents, Cambridge University Press, 2010, http://artint.info/ [2] http://www.w3.org/tr/swbp-n-aryrelations/ [3] PARQL Query Language for RDF, W3C Recommendation 15 January 2008 http://www.w3.org/tr/rdf-sparql-query/ [4] emantic Web for the Working ntologist, econd Edition: Effective Modeling in RDF and WL, May 20, 2011, by Dean Allemang, James Hendler Jan Pettersen Nytun, UIA, page 19