Jan Pettersen Nytun, UIA, page 1 Knowledge Representation Part IV The Semantics Web Starting with XML Jan Pettersen Nytun, UiA.

Slides:



Advertisements
Similar presentations
The Semantic Web – WEEK 4: RDF
Advertisements

CS570 Artificial Intelligence Semantic Web & Ontology 2
The Web of data with meaning... By Michael Griffiths.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
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.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
MIS 315 Bsharah An Introduction to XML 1MIS Bsharah.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
Cornell CS 502 More XML XHTML, namespaces, DTDs CS 502 – Carl Lagoze – Cornell University.
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.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Session IV Chapter 9 – XML Schemas
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
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 –
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
The Semantic Web. What is the Semantic Web? The Semantic Web is an extension of the current Web in which information is given well-defined meaning, enabling.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
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.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
 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.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
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.
XML Namespaces In this first lesson XML Namespaces, you will learn to:
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Knowledge Representation Part I Ontology Jan Pettersen Nytun Knowledge Representation Part I, JPN, UiA1.
1 RDF Storage and Retrieval Systems Jan Pettersen Nytun, UiA.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
XML: Extensible Markup Language
Knowledge Representation Part IV The Semantics Web Starting with XML
Knowledge Representation Part VI
Knowledge Representation Part V RDF
The Semantic Web By: Maulik Parikh.
Unit 4 Representing Web Data: XML
Knowledge Representation Part II Description Logic & Introduction to Protégé Jan Pettersen Nytun.
Knowledge Representation Part VI
XML QUESTIONS AND ANSWERS
Introduction to XHTML.
Eugenia Fernandez IUPUI
Chapter 7 Representing Web Data: XML
Namespace Review 21-Nov-18.
Namespace Review 29-Dec-18.
Knowledge Representation (Part I)
Looking “Behind” Some Languages - Describing with Help of UML (Many Simplifications) Jan Pettersen Nytun UiA.
Some Data Models & Mapping to/from UML
محمد احمدی نیا XHTML محمد احمدی نیا
More XML XML schema, XPATH, XSLT
Namespace Review 14-Oct-19.
New Perspectives on XML
Presentation transcript:

Jan Pettersen Nytun, UIA, page 1 Knowledge Representation Part IV The Semantics Web Starting with XML Jan Pettersen Nytun, UiA

S O P The Semantic Web A W3C recommendation. Common data formats. Allow specification of data about data - which again allows automatic reasoning. Globally unique ids by using the addressing mechanism of the web. Jan Pettersen Nytun, UIA, page 2

S O P Jan Pettersen Nytun, UIA, page 3 Some of the W3C hold Specifications – HTML – OWL – RDF – SOAP – SPARQL – SVG – XHTML – XML – XPath – …

S O P Jan Pettersen Nytun, UIA, page 4 The Semantic Web Language Stack Hierarchy of languages, where each layer exploits and uses capabilities of the layers below. / XML Schema

S O P About Semantic Web Languages Can use XML syntax – E.g., XML Schema can define an element type (~ class) with help of XML syntax. One language may constrain a lower level language – E.g., XML Schema limits XML. One language may extend a lower level language – E.g., RDF Schema (RDFS) extends XML Schema with a richer vocabulary. Jan Pettersen Nytun, UIA, page 5

S O P Jan Pettersen Nytun, UIA, page 6 EXtensible Markup Language (XML) / XML Schema

XML Jan Pettersen Nytun, UIA, page 7 XML is a general format while html is meant for human readable web pages! XML has no fixed tag vocabulary – hence, users can define their own custom element and attribute names. It has some keywords, e.g., xmlns.

S O P Jan Pettersen Nytun, UIA, page 8 XML Syntax in Well-formed Documents The document must have exactly one root element. The following is a well- formed XML document: This is a journal. The basic syntax for one element is: content The following is also correct syntax: start-tagend-tagcontent

S O P Jan Pettersen Nytun, UIA, page 9 XML Syntax Continues… The root element can be preceded by an optional XML declaration. E.g., There may be elements inside elements, but XML requires that elements be properly nested, i.e., no overlap. Example: May be a little overweight Lack of iron. A slight attack of shopomania? Attribute Start-tag and end-tag of element medicalsystem

S O P xmlns - XML Namespace Gives unique names to elements and attributes. Gives unique names to elements and attributes. xmlns can be used to solve name conflicts inside one xml page, e.g., “table” may be a furniture or a data structure. Jan Pettersen Nytun, UIA, page 10

S O P Namespace Examples An xml name space is often a web address. The address may go to a none existing web page - only the URI (URL) addressing mechanism is used. [1]: …. African Coffee Table Jan Pettersen Nytun, UIA, page 11

S O P Jan Pettersen Nytun, UIA, page 12 XML - UML May be a little bit fat? Lack of iron. A slight attack of shopomania? JournalJournalRecord name:String SSN:String description:String :Journal:JournalRecord name=“Ola” SSN=“1” description=“May be a little bit fat?” :Journal:JournalRecord name=“Kari” SSN=“2” description=“Lack of iron.” :JournalRecord description=“A slight attack of shopomania?” Medical System UML Model Data 1 *

What is meant with the following statement: “XML is Syntax”? Syntax: … What is meant with the following statement: “XML is Syntax”? Syntax: …the rules about how words are arranged and connected to make phrases and sentences… Jan Pettersen Nytun, UIA, page 13

S O P XML “is Syntax” The custom tags may indicate the meaning of the document's content, e.g.,, and - this can make XML documents at least partly self-describing (to humans). But what is meant by a tag, e.g.,, is not given (the term “musician” is used but not explained). Jan Pettersen Nytun, UIA, page 14

S O P Jan Pettersen Nytun, UIA, page 15 From Wikipedia: XML is a generic framework for storing text or any data whose structure can be represented as a tree. May be a little overweight Lack of iron. A slight attack of shopomania? Node child * root 1 DirectedTree 0..1 edge topRoot Why a tree?

Jan Pettersen Nytun, UIA, page 16 May be a little overweight Lack of iron. A slight attack of shopomania? medicalsystem journal journalrecord name “Ola Norman" id “1" name “Kari Norman" id “2" “May be a little overweight " “Lack of iron." “A slight attack of shopomania?" Where did the start- and end-tags go? What about the order of things?

S O P Node name : String Attribute Element value : String * 0..1 container Building blocks for defining an XML document (Using UML) Attribute Element Text (A bit simplified) textContent : String content Is this an instance model?

Example (simplified): XML document (= instance of some XML schema)): … ….. An XML Schema functioning as model Jan Pettersen Nytun, UIA, page 18

S O P URI [1] A URI (a Uniform Resource Identifier) is used to uniquely identify a resource. A URI is a string that refers to a resource, such as a web page, a person, or a corporation. In some cases it is just an (empty) web address. Jan Pettersen Nytun, UIA, page 19

S O P Uniform Resource Locator (URL) … a URL is a subset of URI that specifies where an identified resource is available and the mechanism for retrieving it… … often incorrectly used as a synonym for URI… Jan Pettersen Nytun, UiA, Ontologies, page 20 From Wikipedia:

S O P URI/URL [1] Often URIs use the syntax of web addresses since they are unique. A "#" in a URI denotes an individual that is referred to in a web page. For example, ∼ poole/foaf.rdf#david denotes the individual david referred to in ∼ poole/foaf.rdf. ∼ poole/foaf.rdf Jan Pettersen Nytun, UIA, page 21

S O P References Jan Pettersen Nytun, UIA, page 22 [1] Book: David Poole and Alan Mackworth, Artificial Intelligence: Foundations of Computational Agents, Cambridge University Press, 2010,