1 ARIN – KR Practical 1, Part 2 RDF Some of these slides are based on tutorial by Ivan Herman (W3C) reproduced here with kind permission. All changes and.

Slides:



Advertisements
Similar presentations
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
Advertisements

1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Exploiting ebXML Registry Semantics in the eHealth Domain*
Document #07-2I RXQ Customer Enrollment Using a Registration Agent (RA) Process Flow Diagram (Move-In) (mod 7/25 & clean-up 8/20) Customer Supplier.
OLAC Metadata Steven Bird University of Melbourne / University of Pennsylvania OLAC Workshop 10 December 2002.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Create an Application Title 1A - Adult Chapter 3.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
UKOLN, University of Bath
Dublin Core, OAI-PMH and the eBank UK schema Monica Duke UKOLN, University of Bath, UK UKOLN is supported by:
Dr. Alexandra I. Cristea CS 253: Topics in Database Systems: XPath, NameSpaces.
1 SPARQL: A query language for RDF Matthew Yau
Dr. Alexandra I. Cristea CS 253: Topics in Database Systems: C3.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
Deutsche Gesellschaft für Informationswissenschaft und Informationspraxis e.V. 1. DGI-Konferenz, 62. DGI Jahrestagung Semantic Web & Linked Data Elemente.
Introduction to Semantic Web and RDF RDF, Linked Data workshop at DANS The Hague, 28 th July, 2010, Ivan Herman, W3C.
Web Service Testing RESTful Web Services Snejina Lazarova Dimo Mitev
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
EU market situation for eggs and poultry Management Committee 20 October 2011.
EU Market Situation for Eggs and Poultry Management Committee 21 June 2012.
Yong Choi School of Business CSU, Bakersfield
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
W3C and RDF. Why OCLC is a W3C Member Access to networked information resources –the browser and online access –the breath and depth of networked information.
Cambridge Semantic Web Gathering , Cambridge, MA, USA Ivan Herman W3C, Semantic Web Activity Lead.
2 |SharePoint Saturday New York City
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
1 Introduction to KR and Semantic Web Many slides are based on tutorial by Ivan Herman (W3C) reproduced here with kind permission. Additionally, many of.
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Creating Linked Data Juan F. Sequeda Semantic Technology Conference June 2011.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
1 An inference engine for the semantic web Naudts Guido Student at the Open University Netherlands.
Semantic Web Motivating Example. A Motivating example Here’s a motivating example, adapted from a presentation by Ivan Herman It introduces semantic web.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
Profile. 1.Open an Internet web browser and type into the web browser address bar. 2.You will see a web page similar to the one on.
Introduction Peter Dolog dolog [at] cs [dot] aau [dot] dk Intelligent Web and Information Systems September 9, 2010.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
The Semantic Web – WEEK 4: RDF
Introduction to RDF Based on tutorial at
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
RDFa: Embedding RDF Knowledge in HTML Some content from a presentation by Ivan Herman of the W3c, Introduction to RDFa, given at the 2011 Semantic Technologies.
Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim
RDF Tutorial.
Semantic Web Introduction
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
1 Tutorial on the Semantic Web (Last update: 26 May 2009) adapted from (C) Ivan Herman, W3C Given at WE course by Peter Dolog Adapted: October 2010.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Tutorial on Semantic Web
Tutorial on Semantic Web
RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.
Introduction to the Semantic Web (tutorial) 2009 Semantic Technology Conference San Jose, California, USA June 15, 2009 Ivan Herman, W3C
How does the Semantic Web Work?
Presentation transcript:

1 ARIN – KR Practical 1, Part 2 RDF Some of these slides are based on tutorial by Ivan Herman (W3C) reproduced here with kind permission. All changes and errors are mine. Suresh Manandhar, Dimitar Kazakov

2 Lecture Overview Overview RDF RDF examples RDF tools

3 Need a language to describe graphs Besse, Christianne Le palais des miroirs f:original f:nom f:traducteur f:auteur f:titre …isbn/ f:nom Ghosh, Amitav The Glass Palace 2000 London Harper Collins a:title a:year a:city a:p_name a:name a:homepage a:author a:publisher …isbn/ X …foaf/Person r:type r:type foaf:namew:reference w:author_of w:born_in w:isbn w:long w:lat

4 RDF stands for Resource Description Framework RDF is a language for describing labelled graphs nodes are URIs (all web applications understand these) edges can have labels which are also URIs allows namespaces + additional datatypes: Containers Strings, Decimals, Floats etc from XML Schema RDF provides this

5 RDF triples An RDF Triple (subject,predicate,object) is such that:  “s”, “p” are URI-s, ie, resources on the Web; “o” is a URI or a literal “s”, “p”, and “o” stand for “subject”, “property” or “predicate”, and “object”  here is the complete triple: RDF is a general model for such triples (with machine readable formats like RDF/XML, Turtle, N3, RDFa, Json, …) (,, )

6 Resources can use any URI RDF triples form a directed, labelled graph (the best way to think about them!) RDF triples (cont.)

7 A simple RDF example (in dc:. dc:title "Le palais des ; dc:. dc:title "Le palais des ; my:original. my:original dc:title …isbn/ Le palais des miroirs …isbn/ X

8 Note: dc:. dc:title "Le palais des ; dc:. dc:title "Le palais des ; my:original. is expanded as: Le palais des mirroirs Le palais des mirroirs

9 = Same RDF example (in RDF/XML) Le palais des mirroirs Le palais des mirroirs my:original dc:title …isbn/ Le palais des miroirs …isbn/ X

10 = Same RDF example (in RDFa) The book entitled “ Le palais des mirroirs ” is the French translation of the “ Glass Palace ”. The book entitled “ Le palais des mirroirs ” is the French translation of the “ Glass Palace ”. my:original dc:title …isbn/ Le palais des miroirs …isbn/ X RDFa is a mechanism to allow embedding RDF meta-data within a HTML page

11 URIs made the merge possible URIs ground RDF semantics information can be retrieved using existing tools this makes the “Semantic Web”, well… “Semantic Web” URIs play a fundamental role

12 RDF principles Every node is a URI or a literal Every edge is a URI i.e. ground all data without exception

13 Namespaces Namespaces are URIs that publish a vocabulary of terms For example, the Dublin Core is a well known namespace for common meta-data items such as author, title etc.

14 Some common namespaces foaf: dc: rdf: rdfs: owl: geonames: dbpedia: (

15 Dublin Core Elements Title Author/creator Subject/keywords Description Publisher Other Contributor Date Resource type Format Resource Identifier Source Language Relation Coverage Rights management

16 RDF Elements Syntax names rdf:RDF, rdf:Description, rdf:ID, rdf:about, rdf:parseType, rdf:resource, rdf:li, rdf:nodeID, rdf:datatype Class names rdf:Seq, rdf:Bag, rdf:Alt, rdf:Statement, rdf:Property, rdf:XMLLiteral, rdf:List Property names rdf:subject, rdf:predicate, rdf:object, rdf:type, rdf:value, rdf:first, rdf:rest_n

17 For new concepts Create your own namespace

18 Consider the following statement: “the publisher is a «thing» that has a name and an address” Until now, nodes were identified with a URI. But… …what is the URI of «thing»? “Internal” nodes London Harper Collins a:city a:p_name a:publisher …isbn/ X

19 One solution: create an extra URI HarpersCollins HarpersCollins The resource will be “visible” on the Web  care should be taken to define unique URI-s

20 Or Internal identifier (“blank nodes”) HarpersCollins HarpersCollins Internal = these resources are not visible outside a:publisher _:A234. _:A234 a:p_name "HarpersCollins". a:publisher _:A234. _:A234 a:p_name "HarpersCollins". London Harper Collins a:city a:p_name a:publisher …isbn/ X

21 Blank nodes require attention when merging blanks nodes with identical nodeID-s in different graphs are different implementations must be careful… Many applications prefer not to use blank nodes and define new URI-s “on-the-fly” From a logic point of view, blank nodes represent an “existential” statement “there is a resource such that…” More on blank nodes

22 Closer look – An example Task – to build a knowledge base for an online camera shop using RDF

23 Closer look – An dbpedia:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight dbpedia:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". Task – to build a knowledge base for an online camera shop using RDF

24 Closer look – An foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by _:x1. _:x1 foaf:givenname "John". _:x1 foaf:family_name foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by _:x1. _:x1 foaf:givenname "John". _:x1 foaf:family_name "Smith”. Blank node – to add reviewer “John Smith”

25 Closer look – An foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by _:x1. _:x1 foaf:givenname "John". _:x1 foaf:family_name "Smith". :Nikon_D300 :bought_by foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by _:x1. _:x1 foaf:givenname "John". _:x1 foaf:family_name "Smith". :Nikon_D300 :bought_by _:x1. Co-reference – Buyer and reviewer are the same

26 Closer look – An example

27 Closer look – An example ### This info can visible to all foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by :Reviewer_1. :Reviewer_1 foaf:givenname "John". :Reviewer_1 foaf:family_name "Smith”. ### This info can visible to all foaf:. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by :Reviewer_1. :Reviewer_1 foaf:givenname "John". :Reviewer_1 foaf:family_name "Smith”. Use separate ids – for buyer and reviewer Public info vs Private info

28 Closer look – An example ### This info is stored in private internal db :Nikon_D300 :bought_by :Cust_5636. :Cust_5636 foaf:givenname ”Sally". :Cust_5636 foaf:family_name ”Douglas”. :Cust_5636 :address_line1 ”Heslington Lane”. ### This info is stored in private internal db :Nikon_D300 :bought_by :Cust_5636. :Cust_5636 foaf:givenname ”Sally". :Cust_5636 foaf:family_name ”Douglas”. :Cust_5636 :address_line1 ”Heslington Lane”.

29 Converting Turtle to RDF/XML cwm --n3 camera.rdf.turtle --rdf > camera.rdf.rdf Use Python script cwm (available on your machine, and also from: Use Notation3 (N3) to rdf conversion Notation3 is very similar to Turtle format though not identical Use - right click on the link, then select Save linked file ashttp://www-module.cs.york.ac.uk/arin/camera.rdf.turtle

30

31 Using RDF/XML validator

32 Using RDF/XML validator

33 Visualising RDF graph rdfdot -ttl camera.rdf.turtle > camera.rdf.dot Use RDF to dot converter from CPAN (Perl Repository): RDF-Trine-Exporter-GraphViz Comes with command-line tool: rdfdot (you’ve got it) Use Graphviz visualiser to view the graph

34 Visualising RDF graph Use Graphviz visualiser to view the graph

35 Turtle shortcuts :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by :Reviewer_1. :Nikon_D300 rdf:type :DSLR. :Nikon_D300 :manufactured_by dbpedia:Nikon. :Nikon_D300 :model "D300". :Nikon_D300 :weight "0.6_kg". :Nikon_D300 :reviewed_by :Reviewer_1. Use of semicolon; The following two are equivalent: :Nikon_D300 rdf:type :DSLR; :manufactured_by dbpedia:Nikon; :model "D300”; :weight "0.6_kg”; :reviewed_by :Reviewer_1. :Nikon_D300 rdf:type :DSLR; :manufactured_by dbpedia:Nikon; :model "D300”; :weight "0.6_kg”; :reviewed_by :Reviewer_1.

36 Using shared vocabularies/ontologies “Knowledge Engineering” is the task of maintaining and designing reusable knowledge bases Using shared vocabularies allows applications/databases to be more resilient to future changes In our example, we could be more careful with the using any vocabulary that is specific to only site specific, e.g.: :Nikon_D300 :manufactured_by :model :weight :reviewed_by :Nikon_D300 :manufactured_by :model :weight :reviewed_by