Presentation is loading. Please wait.

Presentation is loading. Please wait.

Semantic Web 06 th March, 2002 Robert Kaminski, Thomas Panas.

Similar presentations


Presentation on theme: "Semantic Web 06 th March, 2002 Robert Kaminski, Thomas Panas."— Presentation transcript:

1 Semantic Web 06 th March, 2002 Robert Kaminski, Thomas Panas

2 Comments from James Good Morning! Welcome on this beautiful morning to the presentation of Robert Kaminski and Thomas Panas about advanced XML. Please feel free to ask any questions anytime. If possible, hand them to the presenters in written form during the audio-virtual presentation in Dolby surround, so all relevant questions can be evaluated in real-time. :) All rights reserved. James

3 Table of contents  A Syntax for Data  Namespaces  Schema  XSLT  SMIL

4 A Syntax for Data

5 Is this Structured Data ? Microsoft

6 Is this Structured Data ? Microsoft Semi-structured Data “schemaless” or “self-describing”

7 Structured Data Microsoft

8 Is this Structured Data ? HTML Microsoft

9 A Syntax for Data  Structured Data  Describe the structure (type, schema) of the data  Create an instance of the schema  Semi-structured Data  Describe the data using a simple syntax  Microsoft  Non-structured Data  Microsoft XML+Schema Lisp

10 Semi-Structured Data in Lisp  Association lists (label-value pairs)  {name: “Alan”, tel: 21534323, email: “abg@abs.com}  Value as structure  {name: {first: “Alan”, last: “White”}, tel: 21534323, email: “abg@abs.com}  Graph representation name tel email “Alan” 7786 “abg@abs.com”

11 Specifying a Syntax  Semi-Structures Data can be expressed as: ::= ::= atomicvalue | ::= {label :, …, label : }

12 Relational Databases  Is this semi-structured or structured data? Student: Semi-structured Data The schema is included into the “data-file”

13 Relational Databases Student:Course: row fnlntel TP1RK2

14 Object Databases: Tree o2o3o1 person name age country “Mary” 4517“John”“Jane”“Canada” relatives

15 Object Databases: Tree o2o3o1 person name age country “Mary” 4517“John”“Jane”“Canada” relatives mother sister child mother

16 Object Databases  Semi-Structures Data can also be presented Lisp-like { person: &o1{name: “Mary”, age: 45, child &o2, child &03}, person: &o2{name: “John”, age: 17, relatives: {mother: &o1, sister &o3}}, person: &o3{name: “Jane”, country: “Canada”, mother &o1} }

17 Object Databases: Graph o0 o2o3o1 o4o5o6 {Mary}{John}{Jane}

18 Object Databases  Semi-Structures Data becomes Structured class State (extent states) { attribute string scode; attribute string sname; attribute City capital; relationship set cities-in inverse City::state-of; }  Structured Data for one Application Area ! (Object Databases)  Solution: XML

19 Namespaces

20 Problem description Namespaces avoids name conflicts same tag for different things same tag for different format Example: Document 1: Robert Kaminski Document 2: Kaminski Robert

21 Solution First try Robert Kaminski Second try Robert Final solution Robert

22 Namespace example George Soros Counting........

23 Default namespace George Soros Counting........

24 Attribute name Attributes can have namespace Example: <myLink xmlns:xlink=”...” xlink:type=”simple”......

25 XML Schema

26 What is a Schema ?  A schema defines the content of a number of XML-documents  It defines  which elements and attributes can be included  the element content  the order of elements  Schema substitutes DTD  Think of classes (schema) and instances (dokument)

27 XML Schema  Schema is saved with postfix.xsd  A document is validated against a schema  A schema is a XML-document

28 XML Schema  XML Example : Movie.xmlMovie.xml  XML Schema Example :  Category.xsd Category.xsd  MovieType.xsd MovieType.xsd  MovieList.xsd MovieList.xsd

29 Extensible Stylesheet Language (XSL)

30 XSL XSL consist of formatting objects XSL Transformations (XSLT) Formatting object: specifies presentation XSLT: Transformations to arbitrary format The idea of XSLT: traverse the tree and apply a specific template at each node

31 XSLT Use Cases XML to XML (X)HTML Text

32 The XSLT language Transformation in XML dialect Example: A rule based language Output handled by the enviroment

33 Terminology Template rules consists of: pattern template Pattern specifies nodes a template applies to tag name attributes context Template defines the transformations

34 XML Example chicken soup Introduction I’ve always.. book title section title para

35 Template rule for book

36 Template rule for section

37 Formatting objects Formatting represents common document elements Example block external-graphic table simple-link They are specified in XML Attributes specify their appearance

38 Template rule with objects

39 SMIL

40  SMIL  Synchronized Multimedia Integration Language  SMIL is an XML extension  used for multimedia presentations which integrate streaming audio and video with images, text, etc.  enables to specify what should be presented when

41 SMIL  Introduction  About XML  XML Schema  XML Namespaces  XSLT  Future

42 SMIL

43 SMIL Click me!

44 Hej da ?


Download ppt "Semantic Web 06 th March, 2002 Robert Kaminski, Thomas Panas."

Similar presentations


Ads by Google