Quratulain Rajput Faculty of Computer Science, IBA Spring2013

Slides:



Advertisements
Similar presentations
Natural Language Systems, Department of Informatics, University of Hamburg NATS IR in WWW Dozentin: C. Vertan Autor: M. Hoffmann RDF Resource Description.
Advertisements

LIS650lecture 1 XHTML 1.0 strict Thomas Krichel
UKOLN, University of Bath
OASIS OData Technical Committee. AGENDA Introduction OASIS OData Technical Committee OData Overview Work of the Technical Committee Q&A.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
10-Sep-02 Page 1 Gadjah Mada University - Yogyakarta - Indonesia Gadjah Mada University10-Sep-02 Page 1 Gadjah Mada University - Yogyakarta - Indonesia.
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
II. Basic Web Concepts.
Introduction to Computing Using Python CSC Winter 2013 Week 8: WWW and Search  World Wide Web  Python Modules for WWW  Web Crawling  Thursday:
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.
An Introduction to Semantic Web Portal
XML Technology in E-Commerce
CS570 Artificial Intelligence Semantic Web & Ontology 2
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.
XML Namespaces Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
The Vision and Basic Technologies of the Semantic Web.
Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
RDF Tutorial.
Semantic Web Introduction
© Copyright IBM Corporation 2014 Getting started with Rational Engineering Lifecycle Manager queries Andy Lapping – Technical sales and solutions Joanne.
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.
The Semantic Web Resource Description Framework (RDF) Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
RDF Kitty Turner. Current Situation there is hardly any metadata on the Web search engine sites do the equivalent of going through a library, reading.
RDF: Data Description With HTML, the Web is for reading With XML, the Web is for processing Necessary to know  who wrote this?  who owns it?  who authorised.
Winter 2002Arthur Keller – CS 18018–1 Schedule Today: Mar. 12 (T) u Semistructured Data, XML, XQuery. u Read Sections Assignment 8 due. Mar. 14.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
Visual Models for Knowledge Engineering Madalina Croitoru
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Logics for Data and Knowledge Representation
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.
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
An OO schema language for XML SOX W3C Note 30 July 1999.
Semantic Web Exam 1 Review.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Tutorial 13 Validating Documents with Schemas
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Problems with XML & XML Schemas XML falls apart on the Scalability design goal. 1.The order in which elements appear in an XML document is significant.
Description of Information Resources: RDF/RDFS (an Introduction)
Dr. Bhavani Thuraisingham September 24, 2008 Building Trustworthy Semantic Webs Lecture #9: RDF and RDF Security.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
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.
RDFa Primer Bridging the Human and Data webs Presented by: Didit ( )
Chapter 5 The Semantic Web 1. The Semantic Web  Initiated by Tim Berners-Lee, the inventor of the World Wide Web.  A common framework that allows data.
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
PART 1 XML Basics. Slide 2 Why XML Here? You need to understand the basics of XML to do much with Android All of they layout and configuration files are.
Week-6 (Lecture-1) Publishing and Browsing the Web: Publishing: 1. upload the following items on the web Google documents Spreadsheets Presentations drawings.
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
XML Namespaces In this first lesson XML Namespaces, you will learn to:
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
XML: Extensible Markup Language
Chapter 2 RDF Syntax 1.
Logics for Data and Knowledge Representation
Department of Artificial Intelligence
RDF 1.1 Concepts and Abstract Syntax
Semantic Web Basics (cont.)
Presentation transcript:

Quratulain Rajput Faculty of Computer Science, IBA Spring2013 Semantic Web Quratulain Rajput Faculty of Computer Science, IBA Spring2013

RDF To represent web as: “ the web of real world object rather than only web of documents.” Quratulain Rajput

RDF Construction of URI Scheme:[//authority]path[?query][#fragment] [Note: path and fragment are optional.] http://www.iba.edu.pk/ http://cs.iba.edu.pk/faculty.html#sghani https://www.google.com.pk/search?q=textmining+the+quran&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Quratulain Rajput

RDF <rdf:Description rdf:about=“http://ww.iba.edu.pk/asif”> <hasAge>40</hasAge> </rdf:Description> <rdf:Description rdf:about=“http://ww.iba.edu.pk/asif”> <writeBook> <rdf:Description rdf:about=“http://www.semantic-web- book.org/”> </writeBook> Quratulain Rajput

XML namespaces and RDF Draw for the following description. Quratulain Rajput

RDF Representation Draw Graphs, are these represent same meaning? Quratulain Rajput

IRI IRI (International Resource Identifier) is extended URI by allowing non-Latin (Chinese, Urdu, Arabic) characters. Quratulain Rajput

Shorter URI xmlns can only used with xml tags and with attribute but not as value of attribute (e.g allowed with rdf:about, rdf:resource). Use of Xml:base with rdf:about <xml version=“1.0“ encoding=“utf-8“> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#“ xmlns:data=“http://iba.edu.pk/research#“ xml:base=“http://iba.edu.pk/Faculty“> <rdf:Description rdf:about=“#Quratulain“ data:teaches=“Semantic Web“> <data:writesWiki rdf:resource=“http://cse661semanticwebspring2013.wikispaces.com/“/> </rdf:Description> </rdf:RDF> Quratulain Rajput

Shorter URI Use of xml:base with rdf:ID (used only once) <xml version=“1.0“ encoding=“utf-8“> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#“ xmlns:data=“http://iba.edu.pk/research#“ xml:base=“http://iba.edu.pk/Faculty“> <rdf:Description rdf:ID=“Quratulain“ data:teaches=“Semantic Web“> <data:writesWiki rdf:resource=“http://cse661semanticwebspring2013.wikispaces.com/“/> </rdf:Description> </rdf:RDF> Quratulain Rajput

Rdf:Datatypes RDF describe data values by means of literals. E.G string, number etc. Each datatype is uniquely identified by a URI. RDF use the xml-schema for datatype description. <xml version=“1.0“ encoding=“utf-8“> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#“ xmlns:course=“http://iba.edu.pk/MS/courses#“ > <rdf:Description rdf:about=“http://iba.edu.pk/MS/CSE661“> <course:Name rdf:datatype=“http://www.w3c.org/2001/XMLSchema#string“> Semantic Web </course:Name> <course:credit rdf:datatype= “http://www.w3c.org/2001/XMLSchema#integer“> 3 </course:credit> </rdf:Description></rdf:RDF> Quratulain Rajput

<xml version=“1.0“ encoding=“utf-8“> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#“ xmlns:course=“http://iba.edu.pk/MS/course#“ > <rdf:Description rdf:about=“http://iba.edu.pk/MS/CSE661“> <course:Name rdf:datatype=“http://www.w3c.org/2001/XMLSchema#string“> Semantic Web </course:Name> <course:credit rdf:datatype= “http://www.w3c.org/2001/XMLSchema#integer“> 3 </course:credit> </rdf:Description></rdf:RDF> http://iba.edu.pk/MS/course#Name Semantic Web http://iba.edu.pk/MS/CSE661 4 http://iba.edu.pk/MS/course#credit Quratulain Rajput

Multiple values Relation Problem: which height belong to which member. Solution: A node with no unique name is called blank node. It use to aggregate facts in form of list. Asif saad http://www.footballpakistan.com/hasMember http://www.footballpakistan.com/hasMember http://www.footballpakistan.com/team http://www.footballpakistan.com/hasHeight http://www.footballpakistan.com/hasHeight 6.5ft 6 ft Quratulain Rajput

Blank Node Blank node cannot be addressed globally with URI. 6 ft saad http://www.footballpakistan.com/hasName http://www.footballpakistan.com/hasHeight http://www.footballpakistan.com/hasMember http://www.footballpakistan.com/hasHeight http://www.footballpakistan.com/team 6.5ft http://www.footballpakistan.com/hasMember Asif http://www.footballpakistan.com/hasName Quratulain Rajput Quratulain Rajput 13

Blank Node <rdf:Description rdf:about=“http://footballpakistan.com/team#Mem“> <te:hasMember rdf:parseType=“Resource“/> <te:hasName>Asif</te:hasName> <te:hasHeight>6.5</te:hasHeight> </te:hasMember> </rdf:Description> Quratulain Rajput

Blank node with name Blank node can be assign name if needed. <rdf:Description rdf:about=“http://footballpakistan.com/team#Mem“> <te:hasMember rdf:nodeID=“M1”/> </rdf:Description> <rdf:Description rdf:nodeID=“M1”> <te:hasName>Asif</te:hasName> <te:hasHeight>6.5</te:hasHeight> </te:hasMember> Quratulain Rajput

Container Elements Represents a group of resources or literals E.g., we may wish to talk about the courses given by a particular lecturer The content of container elements are named rdf:_1, rdf:_2, etc. or alternatively rdf:li Quratulain

Three Types of Container Elements rdf:Bag an unordered container, allowing multiple occurrences E.g. members of the faculty board, documents in a folder rdf:Seq an ordered container, which may contain multiple occurrences E.g. modules of a course, items on an agenda, an alphabetized list of staff members (order is imposed) rdf:Alt a set of alternatives E.g. the document home and mirrors, translations of a document in various languages Quratulain

Example for a Bag <uni:lecturer rdf:ID= "FAC949" uni:name= "Atif" uni:title="Professor"> <uni:coursesTaught> <rdf:Bag> <rdf:_1 rdf:resource="#CSE101"/> <rdf:_2 rdf:resource="#CSE206"/> </rdf:Bag> </uni:coursesTaught> </uni:lecturer> Quratulain

Example for Alternative <uni:course rdf:ID=“CSE206" uni:courseName=“Data Structures"> <uni:lecturer> <rdf:Alt> <rdf:li rdf:resource="#FAC949"/> <rdf:li rdf:resource="#FAC318"/> </rdf:Alt> </uni:lecturer> </uni:course> Quratulain

Question Describe it using container? Referee(X,Y,Z) : X is the referee in a chess game between players Y and Z Quratulain

RDF Collections A limitation of these containers is that there is no way to close them “these are all the members of the container” RDF provides support for describing groups containing only the specified members, in the form of RDF collections list structure in the RDF graph constructed using a predefined collection vocabulary: rdf:List, rdf:first, rdf:rest and rdf:nil Quratulain

Reification In RDF it is possible to make statement about statement such as Ahmed belief that Hassan is the creator of the web page http://www.xyz.com How would you do this?try. RDF allow this using reification mechanism. Quratulain

Reification Any statement can be an object graphs can be nested - reification claims pers05 ISBN... Author-of NYT <rdf:Description rdf:about=“#NYT”> <claims> <rdf:Description rdf:about=“#pers05”> <authorOf>ISBN...</authorOf> </rdf:Description> </claims> RDF approved bu FvH  This is reification. Complete triple treated as a object or value. In this case a value. Quratulain

Reification RDF turns a statement into resource. <rdf:Description rdf:about=“#NYT”> <claims> <rdf:Description rdf:about=“#pers05”> <authorOf>ISBN...</authorOf> </rdf:Description> </claims> RDF turns a statement into resource. <rdf:Statement rdf:about=“Statementaboutpers05”> <rdf:subject rdf:resource=“#pers05”/> <rdf:predicate rdf:resource=“#authorOf”/> <rdf:object>ISBN</rdf:object> </rdf:Statement> <rdf:Description rdf:about=“#NYT”> <claims> <rdf:Description rdf:resource=“#Statementaboutpers05”/> </claims> </rdf:Description> Quratulain