RDF Syntax and examples ดร. มารุต บูรณรัช 269618: หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.

Slides:



Advertisements
Similar presentations
CSE 428 Semantic Web Topics RDF Jeff Heflin Lehigh University.
Advertisements

RDF Tutorial.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SPARQL Query Language for RDF presented by Cristina Feier.
SPARQL RDF Query.
RDF formats for Linked Data by Mabi Harandi. RDF is not a format, it is a model for data So: It will provide supports for different formats like :  Turtle.
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
Dr. Alexandra I. Cristea RDF.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
1 Supported by EU projects 12/12/2013 Athens, Greece Open Data in Agriculture Hands-on with data infrastructures that can power your agricultural data.
Logics for Data and Knowledge Representation SPARQL Protocol and RDF Query Language (SPARQL) Feroz Farazi.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
OWL Representing Information Using the Web Ontology Language.
Logics for Data and Knowledge Representation
By: Dan Johnson & Jena Block. RDF definition What is Semantic web? Search Engine Example What is RDF? Triples Vocabularies RDF/XML Why RDF?
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
1 Introduction to the Semantic Web and metadata frameworks Payam Barnaghi Institute for Communication Systems (ICS) Faculty of Engineering and Physical.
The RDF/XML Serialization RDF statements can be written in RDF/XML very much like descriptions in non-RDF XML XML is increasingly used in all kinds of.
OWL Representing Information Using the Web Ontology Language 1.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Part I: Set Constructs. RDF Schema (RDFS) RDF does not provide mechanisms to define domain classes and properties RDFS is a vocabulary that provides many.
Turtle – RDF Graph. Turtle – Basic Syntax Triples are terminated with a full stop URLs are encoded in angle brackets ( ) Literals are enclosed by double.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Semantic Web Exam 1 Review.
RDF Schema (RDFS) RDF user communities need to define the vocabularies (terms) to indicate that they  are describing specific kinds or classes of resources.
Practical RDF Chapter 10. Querying RDF: RDF as Data Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
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.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Practical RDF Ch.10 Querying RDF: RDF as Data Taewhi Lee SNU OOPSLA Lab. Shelley Powers, O’Reilly August 27, 2004.
Dr. Alexandra I. Cristea RDF.
ELIS – Multimedia Lab PREMIS OWL Sam Coppens Multimedia Lab Department of Electronics and Information Systems Faculty of Engineering Ghent University.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
Chapter 3 RDF. Introduction Problem: What does an XML document mean? – XML is about data structures – Their meaning (semantics) is not apparent to a machine.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
Practical RDF Chapter 4. Specialized RDF Relationships: Reification, Containers, and Collections Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
Internet Technologies 1 Master of Information System Management Internet Technologies Making Queries on RDF.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Practical RDF Chapter 3. The Basic Elements Within the RDF/XML Syntax Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
CARBON LDP Enterprise Web Applications’ Linked Data Backend.
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
Chapter 2 RDF Syntax 1.
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework
Introduction to the Semantic Web (tutorial) 2009 Semantic Technology Conference San Jose, California, USA June 15, 2009 Ivan Herman, W3C
Yaşar Tonta & Orçun Madran [yasartonta, Hacettepe University
Turtle: Terse RDF Triple Language
Tutorial on Semantic Web
Middleware independent Information Service
Introduction to RDF and RDFS Editor: MR3
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
RDF 1.1 Concepts and Abstract Syntax
Resource Description Framework (RDF)
Information - the lifeblood of the business
Presentation transcript:

RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย (Special Topics in Advanced Information Technology – Semantic Web Technology) ภาควิชาวิทยาการคอมพิวเตอร์และเทคโนโลยีสารสนเทศ คณะวิทยาศาสตร์ มหาวิทยาลัยนเรศวร ภาคการศึกษาที่ 2 ปีการศึกษา 2557

RDF Syntax RDF Graph RDF/XML N-Triples Turtle (Terse RDF Triple Language) 2

Examples Adding triple with object as a resource Adding triple with object as literal (string) Adding triple with object as literal (integer) Adding triple with “rdf:type” property Adding triple for the same property with different values Different syntaxes for “rdf:about”, “rdf:ID”, “rdf:type” 3

Adding triple with object as a resource

Example RDF Triple “John Doe is a father of Jack Doe” Subjecthttp:// Predicatehttp:// Objecthttp:// 5

RDF Graph

RDF/XML <rdf:RDF xmlns:rdf=" xmlns:x=" 7

N-Triples. 8

person:. person:john_doe x:father-of person:jack_doe. 9

Adding triple with object as literal (string)

Adding new triple Subjecthttp:// Predicatehttp:// Object“John Note: is optional for specifying language code of a string. 11

RDF Graph “John 12

RDF/XML <rdf:RDF xmlns:rdf=" xmlns:x=" John Doe 13

N-Triples. "John 14

person:. person:john_doe x:father-of person:jack_doe ; x:has_name "John 15

Adding triple with object as literal (integer)

Adding new triple Subjecthttp:// Predicatehttp:// Object“1970”^^ eger Note: “^^” is optional for specifying data type of a literal. If not specified, the default data type is string. 17

RDF Graph “John “1970”^^ w3.org/2001/XMLS chema#integer

RDF/XML <rdf:RDF xmlns:rdf=" xmlns:x=" John Doe

N-Triples. "John "1970"^^ 20

xsd:. person:john_doe x:father-of person:jack_doe ; x:has_name "John ; x:has_birthyear "1970"^^xsd:integer. 21

Adding triple with “rdf:type” property

Adding new triple Subjecthttp:// Predicatehttp:// ns#type Objecthttp:// 23

RDF Graph “John “1970”^^ w3.org/2001/XMLS chema#integer

RDF/XML <rdf:RDF xmlns:rdf=" xmlns:x=" John Doe

N-Triples. "John "1970"^^ 26

xsd:. person:john_doe x:father-of person:jack_doe ; x:has_name "John ; x:has_birthyear "1970"^^xsd:integer. person:jack_doe a x:student. 27

Adding triple for the same property with different values

Adding new triple Subjecthttp:// Predicatehttp:// Object “ จอห์น โด Note: is optional for specifying language code of a string. 29

RDF Graph “John “1970”^^ w3.org/2001/XMLS chema#integer “ จอห์น โด 30

RDF/XML <rdf:RDF xmlns:rdf=" xmlns:x=" John Doe 1970 จอห์น โด 31

N-Triples. "John "1970"^^ “ จอห์น โด 32

xsd:. person:john_doe x:father-of person:jack_doe ; x:has_name "John “ จอห์น โด ; x:has_birthyear "1970"^^xsd:integer. person:jack_doe a x:student. 33

Different syntaxes for “rdf:about”, “rdf:ID”, “rdf:type”

The following RDF.. <rdf:RDF xmlns:rdf=" xmlns:x=" Joe Clark 35

is equivalent to <rdf:RDF xmlns:rdf=" xmlns:x=" xml:base=" Joe Clark 36

is equivalent to (2) <rdf:RDF xmlns:rdf=" xmlns:x=" Joe Clark 37

is equivalent to (3) <rdf:RDF xmlns:rdf=" xmlns:x=" xml:base=" Joe Clark 38

Summary RDF triples can be represented in multiple syntaxes  RDF/XML is a current standard although it is more complex than other syntaxes.  Turtle is an extension of N-Tripples syntax and is a subset of Notation 3 (N3) syntax.  Turtle gains more popularity due to its simplicity and has just become a standard.  Turtle syntax is compatible with SPARQL syntax which makes it easier to use with SPARQL. 39

Lab 1. Please create the example RDF/XML data in a file “person.rdf” 1.1 Validate the created RDF data in W3C RDF Validation Service Show the results in RDF triples and graph 2. Create the above RDF data in using N-Triples and Turtle syntax and validate the data using

Exercise 1: Add the following information to the above RDF data  Full name of ‘person:jack_doe’ as “Jack Doe” (in English) and “ แจ็ค โด ” (in Thai)  Add 2 phone numbers of ‘person:jack_doe’ as “ ” and “ ” using property ‘x:has_phone’  Add birthdate of ‘person:jack_doe’ as “ ” using property ‘x:has_birthdate’ with ‘xsd:date’ datatype.  Add a triple that ‘person:john_doe’ has property ‘rdf:type’ of ‘x:doctor’. 41

Exercise 1: Show the new RDF data in the following formats: 1) RDF Graph 2) RDF/XML 3) N-Triples 4) Turtle 42

Exercise: 2 <rdf:RDF xmlns:rdf=" xmlns:rdfs=" xml:base=" Show this RDF data that makes use of RDF schema vocabulary in RDF Graph form 43