Master Informatique 1 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Werner Nutt.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
1 XML Data Management 2. XML Syntax Werner Nutt. 2 HTML Designed for publishing hypertext on the Web Describes how a browser should arrange text, images,
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.
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
1 COS 425: Database and Information Management Systems XML and information exchange.
Thayer School of Engineering Dartmouth Lecture 2 Overview Web Services concept XML introduction Visual Studio.net.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
Resource Description Framework ( RDF ) Xinxia An.
Introduction to XML This material is based heavily on the tutorial by the same name at
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Metadata Standards and Applications 4. Metadata Syntaxes and Containers.
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.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
Logics for Data and Knowledge Representation
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
By Mohsen ashouri.  Introduction  Comparison between XML and HTML  XML Syntax  Challenges  Summary.
Of 33 lecture 3: xml and xml schema. of 33 XML, RDF, RDF Schema overview XML – simple introduction and XML Schema RDF – basics, language RDF Schema –
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.
XML Fundamentals, Namespaces Data Warehousing Lab. 박유림.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
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.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
1 XML eXtensible Markup Language. 2 XML vs. HTML HTML is a HyperText Markup language HTML is a HyperText Markup language Designed for a specific application,
XML Basics A brief introduction to XML in general 1XML Basics.
1 Indexing The syntax for creating a index is: CREATE [UNIQUE] INDEX index_name ON table_name (column1, column2,... column_n) [ COMPUTE STATISTICS ]; Why.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
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,
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Metadata : an overview XML and Educational Metadata, SBU, London, 10 July 2001 Pete Johnston UKOLN, University of Bath Bath, BA2 7AY UKOLN is supported.
26-Sep-11 CS6795 Semantic Web Techniques 0 XML Namespaces.
22-Sep-06 CS6795 Semantic Web Techniques 0 XML Namespaces.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
1 RDF, XML & interoperability Metadata : a reprise Communities, communication & XML An introduction to RDF RDF, XML and interoperability.
Practical RDF Chapter 3. The Basic Elements Within the RDF/XML Syntax Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim.
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.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
XML – Basic Concepts (modified version from Dr. Praveen Madiraju) 2015, Fall Pusan National University Ki-Joune Li.
XML Extensible Markup Language
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.
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
1 XML eXtensible Markup Language. 2 Introduction and Motivation Dr. Praveen Madiraju Modified from Dr.Sagiv’s slides.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010.
Service-Oriented Computing: Semantics, Processes, Agents
Unit 4 Representing Web Data: XML
Introduction to Persistent Identifiers
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework
XML QUESTIONS AND ANSWERS
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Chapter 7 Representing Web Data: XML
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Resource Description Framework (RDF)
Presentation transcript:

Master Informatique 1 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Werner Nutt

Master Informatique 2 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Acknowledgment These slides are essentially identical with those by Sebastian Rudolph for his course on Semantic Web Technologies at TU Dresden

Master Informatique 3 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Brief Introduction to XML Overview of XML/RDF

Master Informatique 4 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Brief Introduction to XML Overview of XML/RDF

Master Informatique 5 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with Mark-up Languages Idea of mark-up: enrich (unstructured) text with additional information (or structure) Synonym: annotate text text = data additional information = metadata

Master Informatique 6 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with Mark-up Languages Common strategy: include the text to be annotated in so-called tags: … Text … opening tag closing tag The additional information is read and interpreted by processing software (e.g., a Web browser)

Master Informatique 7 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with Mark-up Languages Example: HTML tags encode - visual presentation information - links Output of web browser Ian Horrocks FRS Professor of Computer Science and Fellow of Oriel College

Master Informatique 8 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with Mark-up Languages Alternative: annotations describing content type Ian Horrocks FRS Professor of Computer Science and Fellow of Oriel College

Master Informatique 9 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with XML Tags Nesting of tags is permitted Multiple usage of tags is permitted Semantic Technologies Prof. Werner Nutt

Master Informatique 10 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Annotation with XML Tags Nesting of tags is permitted Multiple usage of tags is permitted XML tags constitute a tree structure Semantic Technologies Prof. Werner Nutt

Master Informatique 11 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Documents are Node-labeled Trees course lecturer title firstnamelastname Semantic Technologies Prof.WernerNutt Two (main) kinds of nodes: element nodes (constituted by the tags) content nodes There are also attributes, comments, …

Master Informatique 12 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML eXtensible Markup Language Origin: document markup (HTML4.0 ∈ XML ⊂ SGML) Web standard (W3C) for data exchange: –applications receive XML input and produce XML output –industry only has to agree on standardized tag names (the vocabulary) and their usage (the schema) Complementary language for HTML: –HTML describes presentation –XML describes content Database perspective: XML as a data model for semi- structured data

Master Informatique 13 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML-Syntax: XML Element Description of an object enclosed by matching tags Content of an elements: text and/or further elements (arbitrary nesting possible) Empty elements: short: “Outermost” element is called the top element (and there can be only one per document) Bart Simpson – address may be wrong element element, a sub-element of the first not an element free text

Master Informatique 14 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML-Syntax: XML Attribute Pair of name and string-value in start tag or in self-closing tag Associated with one XML element Alternative option for describing data An element can have several child elements with the same tag, but only one attribute Bart Simpson – attribute –

Master Informatique 15 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML HTML vs. XML HTML: fixed vocabulary (set of tags) and semantics (visual presentation of text) XML: free choice of names for describing application-specific syntax and semantics XML ⊂ SGML The info in one XML document can be translated in different HTML documents

Master Informatique 16 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Namespaces: Motivation Element tags and attributes should have an unambiguous meaning Within one vocabulary, tag and attribute names can well be defined (like within a Java package) If vocabularies with overlapping terms are merged, names can clash –Example: title of a lecture vs. title of a person Namespaces resolve such conflicts

Master Informatique 17 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Namespaces … are collections of element tags and attribute names … are identified by a URI –the URI may resolve to a resource with information about the namespace, but need not … can be defined by an XML schema … allow for disambiguation of tag names through usage of different “prefixes” –a prefix is separated from a local name by a colon (:), thereby prefix:name tags come into being

Master Informatique 18 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Namespace Bindings How are prefixes associated with name space URIs?  by inserting an attribute xmlns:prefix into –the relevant element, or –some of its predecessor elements: prefix:name 1, …, prefix:name n The attribute xmlns:prefix has as value a URI –the URI may point to a description of the namespace An XML element can contain bindings for several (different) name spaces: –use separate attributes xmlns:prefix 1,…, xmlns:prefix m

Master Informatique 19 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Example: Without Namespaces title is an ambiguous tag Semantic Technologies Prof. Werner Nutt

Master Informatique 20 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Two Distinct Namespaces title has been disambiguated by the prefixes lec: and per:, each of which indicates a different namespace <lec:lecture xmlns:lec=" xmlns:per=" Semantic Technologies Prof. Werner Nutt

Master Informatique 21 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Brief Introduction to XML Overview of XML/RDF

Master Informatique 22 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF We show how to represent the following three triples in db: dbo: db:Massachusetts dbo:capital db:Boston. db:Massachusetts dbo:nickname “The Bay State”. db:Boston dbo:nickname “Beantown”.

Master Informatique 23 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML RDF/XML W3C Standard since 1999, revised in 2004 Used to be the only standard until 2014, when the Turtle standard was adopted Encodes RDF into standard XML

Master Informatique 24 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF Like in XML, name spaces are used in order to disambiguate tag names RDF-specific tags have a predefined name space, by convention abbreviated with ‘rdf’ <rdf:RDF xmlns:rdf=" xmlns:db=" xmlns:dbo="

Master Informatique 25 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF The rdf:Description element encodes the subject (the URI of which is stated as the value of the associated rdf:about attribute) Every element directly nested into an rdf:Description element denotes a predicate (the URI of which is the element name) Predicate elements in turn contain the triple’s object as rdf:Description element … …

Master Informatique 26 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF db:Massachusetts db:Boston dbo:capital <rdf:RDF xmlns:rdf=" xmlns:db=" xmlns:dbo="

Master Informatique 27 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF Untyped literals can be included as free text into the predicate element Condensed forms admissible: one subject containing several property elements one object description serves as subject for another triple The Bay State Beantown db:Massachusetts db:Boston dbo:capital The Bay State Beantown dbo:nickname

Master Informatique 28 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML XML Syntax of RDF Alternative (but equivalent) representation of literals as XML attributes –property URIs are then used as attribute names –object URIs can be given as value of the rdf:resource attribute inside a property tags <rdf:Description rdf:about=" dbo:nickname="The Bay State"> <rdf:Description rdf:about=" dbo:nickname="Beantown"/> db:Massachusetts db:Boston dbo:capital The Bay State Beantown dbo:nickname

Master Informatique 29 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Exercise Encode in foaf: ex:johnSmith foaf:firstName ; foaf:lastName ; foaf:knows ex:jimmieBrown.

Master Informatique 30 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML RDF/XML Syntax: Complications Namespaces are needed –for abbreviation reasons, –because colons inside XML elements and attributes are always interpreted as namespace delimiters Problem: In XML, no namespaces are allowed in attribute values (would be interpreted as URI schema), thus we cannot write: rdf:about="db:Boston" “Workaround” via XML entities (= XML macros): Declaration: Usage: rdf:resource="&ex;SemanticWeb"

Master Informatique 31 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML RDF/XML Syntax: Base URIs One URI can be declared the base URI of an XML document Attributes that expect URIs (like rdf:about, rdf:resource) can be given “relative URIs”, which have no schema part The full URI is then reconstructed by using the base URI as a prefix <rdf:RDF xmlns:rdf=" xmlns:db=" xmlns:dbo=" xmlns:base="

Master Informatique 32 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Types in RDF/XML Types are indicated by the rdf:datatype attribute <rdf:RDF xmlns:rdf=" xmlns:db=" xmlns:dbo=" xmlns:base="