Multi-agent and Semantic Web Systems: RDF Data Structures

Similar documents
Multi-agent and Semantic Web Systems: Linked Open Data

Multi-agent Semantic Web Systems: RDF Models

Adding formal semantics to the Web

Knowledge Representation for the Semantic Web

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

Ontological Modeling: Part 2

Semantics. Matthew J. Graham CACR. Methods of Computational Science Caltech, 2011 May 10. matthew graham

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

Multi-agent and Semantic Web Systems: Querying

Semantic Web Systems Ontologies Jacques Fleuriot School of Informatics

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

Semantic Web Systems Web Services Part 2 Jacques Fleuriot School of Informatics

Suitability of a KR for OBDM

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

KNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems

Analysis Data Transfer Framework "ORIENT" Specification

Semantic Web Test

Multi-agent Semantic Web Systems: Data & Metadata

H1 Spring B. Programmers need to learn the SOAP schema so as to offer and use Web services.

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

TRIPLE An RDF Query, Inference, and Transformation Language

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

Structure of This Presentation

Constraint Solving. Systems and Internet Infrastructure Security

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Semantic Web Knowledge Representation in the Web Context. CS 431 March 24, 2008 Carl Lagoze Cornell University

Semantic Web and Python Concepts to Application development

Multi-agent and Semantic Web Systems: Representation

Web Architecture Part 3

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

Introduction to metadata cleansing using SPARQL update queries. April 2014 PwC EU Services

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Ivan Herman. F2F Meeting of the W3C Business Group on Oil, Gas, and Chemicals Houston, February 13, 2012

Semantic Web Information Management

Orchestrating Music Queries via the Semantic Web

RDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

A Formal Definition of RESTful Semantic Web Services. Antonio Garrote Hernández María N. Moreno García

Logical reconstruction of RDF and ontology languages

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

The Formal Syntax and Semantics of Web-PDDL

Vocabulary and Semantics in the Virtual Observatory

THE RELATIONAL MODEL. University of Waterloo

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

The Implementation of Semantic Web Technology in Traditional Plant Medicine

Semantic Web Technologies

Warm-Up Problem. Let L be the language consisting of as constant symbols, as a function symbol and as a predicate symbol. Give an interpretation where

Semantic Web Systems Introduction Jacques Fleuriot School of Informatics

Semantic Web In Depth: Resource Description Framework. Dr Nicholas Gibbins 32/4037

Day 2. RISIS Linked Data Course

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems

The Logic of the Semantic Web. Enrico Franconi Free University of Bozen-Bolzano, Italy

SOFTWARE ENGINEERING DESIGN I

First Order Predicate Logic CIS 32

Extracting knowledge from Ontology using Jena for Semantic Web

Intro to XML. Borrowed, with author s permission, from:

Using RDF to Model the Structure and Process of Systems

Integrating Positional and Slotted Knowledge on the Semantic Web

2. Introduction to Internet Applications

Semantic Web Systems Linked Open Data Jacques Fleuriot School of Informatics

Ontological Modeling: Part 7

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

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

SPARQL: An RDF Query Language

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Representing Linked Data as Virtual File Systems

RESOURCES DESCRIPTION FRAMEWORK: RDF

Semantic Days 2011 Tutorial Semantic Web Technologies

Semantic Web ME-E4300 Semantic Web,

Where is the Semantics on the Semantic Web?

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

2. Knowledge Representation Applied Artificial Intelligence

Ontologies and OWL. Riccardo Rosati. Knowledge Representation and Semantic Technologies

XML, Metadata and More!

Semantic Image Retrieval Based on Ontology and SPARQL Query

OWL DL / Full Compatability

An overview of RDB2RDF techniques and tools

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012

Knowledge Engineering. Ontologies

Lecture 1: Conjunctive Queries

RDF. Mario Arrigoni Neri

Semantics Modeling and Representation. Wendy Hui Wang CS Department Stevens Institute of Technology

Library of Congress BIBFRAME Pilot. NOTSL Fall Meeting October 30, 2015

Linked Data: What Now? Maine Library Association 2017

Web Science & Technologies University of Koblenz Landau, Germany RDF. Steffen Staab. Semantic Web

R2RML by Assertion: A Semi-Automatic Tool for Generating Customised R2RML Mappings

RDF Next Version. Ivan Herman and Sandro Hawke W3C

OWL 2 Update. Christine Golbreich

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

WAP Push Message Version 16-August-1999

Ontologies SKOS. COMP62342 Sean Bechhofer

Mapping Relational Data to RDF with Virtuoso's RDF Views

Linked Data and RDF. COMP60421 Sean Bechhofer

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Semantic Web Fundamentals

Semantic Web Modeling Languages Part I: RDF

Alexander Haffner. RDA and the Semantic Web

The necessity of hypermedia RDF and an approach to achieve it

Using Distributed NLP to Bootstrap Semantic Representations from Web Resources

From EAD to Linked Data

Transcription:

Multi-agent and Semantic Web Systems: RDF Data Structures Fiona McNeill School of Informatics 31st January 2013 Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 0/25

URIs and Resources A resource is any entity that one can hold information about. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 1/25

URIs and Resources A resource is any entity that one can hold information about. An information resource is a resource whose essential characteristics can be conveyed in a message. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 1/25

URIs and Resources A resource is any entity that one can hold information about. An information resource is a resource whose essential characteristics can be conveyed in a message. Information resources typically have one or more representations that can be accessed using HTTP. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 1/25

URIs and Resources A resource is any entity that one can hold information about. An information resource is a resource whose essential characteristics can be conveyed in a message. Information resources typically have one or more representations that can be accessed using HTTP. Any other resource is a non-information resource. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 1/25

URIs and Resources A resource is any entity that one can hold information about. An information resource is a resource whose essential characteristics can be conveyed in a message. Information resources typically have one or more representations that can be accessed using HTTP. Any other resource is a non-information resource. [A] document is an example of an information resource. It consists of words and punctuation symbols and graphics and other artifacts that can be encoded, with varying degrees of fidelity, into a sequence of bits. There is nothing about the essential information content of [a] document that cannot in principle be transferred in a message. http://www.w3.org/tr/webarch/#id-resources Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 1/25

URIs and Resources Every resource can be uniquely identified by a URI. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 2/25

URIs and Resources Every resource can be uniquely identified by a URI. Every URI identifies a resource. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 2/25

URIs and Resources Every resource can be uniquely identified by a URI. Every URI identifies a resource. The act of retrieving a representation of a resource identified by a URI is known as dereferencing that URI. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 2/25

URIs and Resources Every resource can be uniquely identified by a URI. Every URI identifies a resource. The act of retrieving a representation of a resource identified by a URI is known as dereferencing that URI....consider the creation of a [bank] statement... We ll suppose that a URI identifies the resource which, in this case, is a particular set of of binary data held in a relational database. To create a representation of the resource, the appropriate data is first extracted from the database and converted to textual form. Then it is embedded in a stream of HTML markup that also references appropriate styling information. This representation flows across the Web to a browser, where it is rendered. A user is able to perceive the rendered form and to understand the activity on the account for month in question. http://www.w3.org/2001/tag/doc/httprange-14/2007-05-31/httprange-14 Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 2/25

Literals and Datatypes in Turtle Full URIs are enclosed in <, >. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 3/25

Literals and Datatypes in Turtle Literals written with double quotes. So-called datatype URIs consist of a literal appended by ^^ and a URI usually from XML Schema. Example datatypes: xsd:string, xsd:boolean, xsd:decimal, xsd:float, xsd:double, xsd:datetime. Cf. http://www.w3.org/tr/xmlschema-2/ #built-in-primitive-datatypes Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 4/25

Instance-of in RDF Mammal haslegs 4 isa Herbivore eats Plant isa Giraffe io Jerome isa Carnivore eats Animal isa Lion io Leo Class membership expressed via rdf:type Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 5/25

Instance-of in RDF Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 6/25

Instance-of in RDF rdf:type is often abbreviated as a Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 7/25

Abbreviating groups of triples, for repeated subjects and predicates: Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 8/25

Abbreviating groups of triples ; for repeated subjects and predicates: Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 9/25

Abbreviating groups of triples combining both abbreviations Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 10/25

Blank nodes May be situations where we don t know the identity of a resource. E.g., Artisan Roast is run by a manager whose telephone number is 0131 229 0001. We could coin a new URI: Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 11/25

Blank nodes Alternative: relevant node in the graph can be left blank. Blank node identifiers (also called anonymous resources) are of the form _:label Blank node identifiers are not intended to be globally unique; only unique relative to a single graph. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 12/25

Blank nodes Alternative notation using [, ]: Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 13/25

Blank nodes Blank notes are interpreted like existential quantification in first-order logic. Artisan Roast is run by someone whose telephone number is 0131 229 0001 and who is a manager..[(, ) () = ()] Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 14/25

RDF Formal Syntax RDF Symbols: An RDF vocabulary V = U L consists of two disjoint subsets: a set U of URI references, and a set L of literals (textual representation of a value). B is a set disjoint from V containing blank nodes. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 15/25

RDF Formal Syntax RDF triples: An RDF triple in V (V = U L) with blank nodes B is an expression of the from (s, p, o) where s U B is the subject of the triple, p U is the predicate of the triple, o U B L is the object of the triple. An RDF triple is ground if it contains no blank node. An RDF graph in V with blank nodes B is a set of RDF triples. An RDF graph is ground if the triples it contains are all ground. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 15/25

RDF vs first-order logic RDF vocabulary V is analogous to a signature of FOL. Blank nodes B are analogous to variables. Literals are analogous to individual constants, interpreted as specific data types. URIs are analogous to individual constants and also to binary relation symbols. A triple is analogous to an atomic formula. An RDF graph is analogous to a set of formulas. A finite RDF graph corresponds to the existential closure of the conjunction of its triples. Given an RDF graph G, the set of members of U B L occurring in subject or object position are regarded as nodes and each triple (s, p, o) is regarded as a directed edge from s to o labeled with p. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 16/25

The Deep Web A lot of data on the web is only accessible through DB query. Deep web / invisible web / hidden web estimated to be at least 500 times bigger than surface web accessible to standard search engines. http://library.albany.edu/internet/deepweb.html http:// aip.completeplanet.com Semantic Web proposal: export RDBs to RDF and allow them to be integrated, searched, repurposed. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 17/25

From RDB to RDF There is a standard mapping from records in a DB to RDF triples: Each field (column) label is mapped to an RDF Predicate; the data in each corresponding field is mapped into the Object. the Subject of the triple can be a blank node, or possibly the primary key of the record. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 18/25

DB Records as Triples column id data Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 19/25

DB Records as Triples Predicate column id Subject Object data Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 20/25

DB Records as Triples Name Artist Place ID0039 "The Red Vineyard" V. Van Gogh Arles Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 21/25

DB Records as Triples NB: some decision required about literals in fields; keep as literals or convert to URIs? Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 22/25

Summary We can use intermediary nodes to aggregate a subset of statements. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Summary We can use intermediary nodes to aggregate a subset of statements. Aggregates can be rooted in an ordinary resource node or in a blank node. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Summary We can use intermediary nodes to aggregate a subset of statements. Aggregates can be rooted in an ordinary resource node or in a blank node. Blank nodes are referred to with a special naming convention in triples: _:label. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Summary We can use intermediary nodes to aggregate a subset of statements. Aggregates can be rooted in an ordinary resource node or in a blank node. Blank nodes are referred to with a special naming convention in triples: _:label. Blank nodes can also be used for other things: Referring to individuals via a cluster of properties. Expressing relations of arity > 2 (via two patterns). Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Summary We can use intermediary nodes to aggregate a subset of statements. Aggregates can be rooted in an ordinary resource node or in a blank node. Blank nodes are referred to with a special naming convention in triples: _:label. Blank nodes can also be used for other things: Referring to individuals via a cluster of properties. Expressing relations of arity > 2 (via two patterns). RDF only allows us to make statements about individuals; no quantifiers, no general statements. Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Summary We can use intermediary nodes to aggregate a subset of statements. Aggregates can be rooted in an ordinary resource node or in a blank node. Blank nodes are referred to with a special naming convention in triples: _:label. Blank nodes can also be used for other things: Referring to individuals via a cluster of properties. Expressing relations of arity > 2 (via two patterns). RDF only allows us to make statements about individuals; no quantifiers, no general statements. We need something richer on top of RDF to define what counts as semantically well-formed statements RDFS Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 23/25

Reading SWWO, Ch 3 Turtle Primer: http://www.w3.org/2007/02/turtle/primer/ Information vs. non-information resources: http://www.w3.org/2001/ tag/doc/ httprange-14/2007-05-31/httprange-14 Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 24/25

Task Either go back to the ontology you created in the second task, or create a new collection of things (for example: cities, countries, means of transport, people who like to travel, etc.) This does not need to be organised in an ontology! Create some RDF to make some statements about this. What sorts of things might you want to say? What sorts of things are difficult to say? Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures Task 25/25