The Semantic Web – introduction to the basic technology Week 2 - XML Lee McCluskey.

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML: Extensible Markup Language
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
The Semantic Web – WEEK 4: RDF
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
The Semantic Web. The Web Today Designed for Human to read Cannot express meaning Architecture: URL –Decentralized: Link structure Language: html.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Tutorial 9 Working with XHTML
The Semantic Web: Implications for Future Intelligent Systems Lee McCluskey, Artform Research Group, Department of Computing And Mathematical Sciences,
ModelicaXML A Modelica XML representation with Applications Adrian Pop, Peter Fritzson Programming Environments Laboratory Linköping University.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
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.
The Semantic Web Week 1 Module Content + Assessment Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
The Semantic Web – WEEK 3: XML Schema Tutorial/Practical: Exercises using the Suns Today’s lecture will include material relevant to Advanced DBs and Language.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
Tutorial 11 Creating XML Document
Introduction to XML This material is based heavily on the tutorial by the same name at
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML and XSL Institutional Web Management 2001: Organising Chaos.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Practical RDF Chapter 1. RDF: An Introduction
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
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.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
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.
EXtensible Markup Language (XML) and Documentation --ManojBokil -- Manoj Bokil.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML and Digital Libraries M. Zubair Department of Computer Science Old Dominion University.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Advanced Technical Writing 2006 Session #4. Today in Class… ► Meet with your editorial team, refine/post deliverables ► Send URL for deliverables to Bill.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
Strategies for subject navigation of linked Web sites using RDF topic maps Carol Jean Godby Devon Smith OCLC Online Computer Library Center Knowledge Technologies.
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
 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:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Advanced Technical Writing 2006 Session #3. Today in Class… ► Show-n-tell your CSS Objects from exercise 1 ► Meet with your editorial team, refine/post.
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.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
The Semantic Web By: Maulik Parikh.
XML QUESTIONS AND ANSWERS
CSE591: Data Mining by H. Liu
Presentation transcript:

The Semantic Web – introduction to the basic technology Week 2 - XML Lee McCluskey

Artform Research Group Recap n The Semantic Web is the Vision (not a current reality) of having an internet with resources that are machine understandable or accessible to automated processes - machines should do much more than present the information visually or do human-consumable IR. n Central idea – we agree on a way of SPECIFYING vocabularies rather than agreeing on a particular vocabularies/languages. Then in communication, processes only need to point to the language (vocabulary) they are using. This is much more flexible than a common language. n XML is like a “machine code” in the SW. n Processes on the SW will need to perform reasoning to fully exploit the SW to do Knowledge Acquisition etc.

Artform Research Group WWW - A tool for people to access information - Interface to certain (online) databases, and to businesses - Human interface to some services (info retrieval, weather, train timetables etc) The WWW is successful largely through the use of layers of internationally accepted standards (TCP/IP,html) and now the fact that it is - Ubiquitous - Organic + Distributed - Dynamic + Unbounded

Artform Research Group WWW - a standard - ‘first generation’ - hand written html pages - ‘second generation’ - dynamic web - pages created by programs to display the results of a process, or the output of a query of an accessed database. Web pages used as an interface to networked processes (services) as well as for general information display.

Artform Research Group WWW + Much R&D has been directed at writing programs/services that utilise HTML web info EG the University of California’s travel assistant - a web service that uses other web services (weather, timetables, hotel) to make travel plans in response to a high level directive “I need to be in X on days Y using budget Z” BUT: this is very hard because of the web’s unstructured data.. Eg ISI’s travel assistant has to use a learning program to induce web page ‘wrappers’ before it can reliably extract data.

Artform Research Group WWW html example Lee McCluskey McCluskey, Thomas Leo BSc (Maths), MSc (Maths), PhD (Computer Science), MBCS, C.Eng Professor of Software Technology School of Computing and Engineering, University of Huddersfield, Huddersfield, West Yorkshire, HD1 3DH, United Kingdom. t.l.mccluskey followed telephone (direct): (+44) (0) telephone (internal): 2247 telephone (messages): (+44) (0) fax: (+44) (0) room number: CW2/09

Artform Research Group Metadata and XML n We can start to giving ‘meaning’ to info on the web using META-DATA eg using tags around data to describe its content. n In XML - eXtensible Mark-up Language - tags are not fixed - one can invent new tags to structure the information in a web page. n XML is considered to be the basis for all semantic web languages - the “machine code” of the new generation web

Artform Research Group Rough Hierarchy of Languages in the Semantic Web OWL.. Ontology language DAML.. gives logic RDFS.. gives classes RDF.. gives tuples XML.. gives content

Artform Research Group XML Overview n XML is a subset of SGML (standard general mark- up language) which was written originally for electronic documents and publications n XML has the advantages of HTML – it is platform- independent and a standardised language see But HTML has a FIXED set of tags, and holds no MEANING about the data in its document.

Artform Research Group Rough syntax of XML = list of element n XML structures information using TAGS in a composite fashion eg …… n Info between tags is called an “element”

Artform Research Group XML n XML allows the content to be structured so that it is easy for a machine to extract meaningful data from an XML page. It is a meta-language – a language used in the description of other languages. n It can be used to structure data in a database, or as a communication language n It can be formatted using a style sheet language called XSL (like CSS for HTML)

Artform Research Group Example fred sue xml example This is the message n All tags have a start and end n Tags must be correctly nested as a tree syntax n Tags can have attributes

Artform Research Group Example - better fred sue xml example this is the message

Artform Research Group Elements.. Logically every element has four key pieces: n A name n The attributes of the element n The namespaces in scope on the element n The content of the element The content can be text, comments, more tagged info or Processing Information eg This is meta info about the document

Artform Research Group DTD’s n XML is self describing – it uses a DTD (Document Type Definition) to formally describe the structure of its contents n An XML doc is well-formed if its syntax is ok according to the XML standard. It is VALID if additionally it conforms to its DTD n DTD’s are formed so that we can share our document structures with other parties. Knowing our DTD, they can write programs to process our XML documents.

Artform Research Group Example with DTD <!DOCTYPE note [ <!ELEMENT to (#PCDATA ]> fred sue xml example this is the message

Artform Research Group DTD are like grammars..

Artform Research Group DOMs “.. The promise of the Internet is very much tied to interoperability and the value proposition of e-business depends on the ability to truly collaborate with partners and customers in a meaningful and efficient way..” chema_DOM.htm

Artform Research Group DOMs n Document Object Models (DOMs) give an (abstract) program interface for constructing, querying accessing, and manipulating XML documents. n Concrete DOMs define methods and properties (instantiated for each programming language) which can be used to access/change XML documents from programs

Artform Research Group The Uniform Resource Identifier (URI) !!! A “URI” is fundamental to the SW – it ‘defines a unique resource’ – a string that uniquely defines something. Often (but not always) URI points to a webpage or an XML document. In XML, element type names (tags) and attribute names may be qualified with a URI – so that the name can be understood globally.

Artform Research Group The Uniform Resource Identifier (URI) Example: you need to refer to an ELEMENT annotated by in the document.. You would set up a “namespace” in your XML document say tlm = Then in your document you would use tlm: To denote that this tag is the same as the one in

Artform Research Group Namespaces - xmlns examples … You can also define a default namespace:

Artform Research Group exercises Read through some XML tutorials from relevant sites on the web eg n n n n (this has some nice tutorial questions and answers!) Try the following exercises: Write a small XML Bibliography, and then write a DTD for it Write a small XML Address book, and then write a DTD for it Cut and paste an XSL style-sheet from one of the example websites and try to use it to present your XML files. For the Week ahead: Continue to read through the tutorials, and write down some notes on the meaning and different roles of DTD, XSL, DOM and all the other jargon you come across!