Processing of structured documents Part 7. XML Linking Language (XLink) zCreate and describe links between resources zboth basic unidirectional links.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Advertisements

XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
XML: Extensible Markup Language
Processing of structured documents Part 8. 2 Resource Description Framework (RDF) zWeb was originally built for human consumption yalthough everything.
Dickson K.W. Chiu PhD, SMIEEE Thanks to Prof. Francis Lau (HKU)
XLink & XPointer ShengWu. Contents Covered XLink –XLink Versus HTML links –Linking Elements –Simple Links –Link Behavior –Extended Links.
Internet Technologies1 XLink The Wonderful World of Oz example and its DTD are from “XML in a Nutshell” by Elliotte Rusty Harold.
Introduction to XLink Transparency No. 1 Introduction to XML Linking Language (XLink) Cheng-Chia Chen.
1 Linking in XML A way of creating hyperlinks in XML documents, Internal-Link and External-Link.
XLink Van Lepthien CSCI 7818 Fall Overview What is XLink? W3C Stuff XLink Elements Linkbases Traversals Implementations Comments References.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
1 COS 425: Database and Information Management Systems XML and information exchange.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
1 XML Linking Language (XLink) W3C Working Draft - 3/3/1998.
XLink: Open Linking Standard XML / XSL separate  data semantics  presentation semantics Need to also separate out  navigation semantics Single unique.
Representation of Web Data in a Web Warehouse Ragini A.S. & Shipra Dutta November 20 th, 2001.
ACG 4401 XML Schemas XML Namespaces XLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
ACG 4401 XML Schemas XML Namespaces XMLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
National Coastal Data Development Center A division of the National Oceanographic Data Center Please a list of participants at each location to
10/14/2001 Coping with Semantics in XML Document Management Thomas Kudrass Leipzig University of Applied Sciences Department of Computer Science and Mathematics.
Xpath Xlink Xpointer Xquery Sources:
Skip 2007 Current Issues in MIS The XML Language Foundation f - Clinton E. White, Jr Professor of Accounting & MIS Lerner College of B&E University.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
XML Part 2 Josh Steele CS 6704, Spring XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
Processing of structured documents. XML Linking Language (XLink) zCreate and describe links between resources zboth basic unidirectional links and more.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Part One Review Policy Intro to ISO Levels of Metadata Data Discovery.
XLinks Praveen Polishetty. Contents : XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink.
ACG 4401 XML Schemas XML Namespaces XLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
1 HTML Frames
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
Introducing XLink and XPointer ©NIITeXtensible Markup Language/Lesson 10/Slide 1 of 23 Objectives In this lesson, you will learn to: * Identify the types.
UML Basics and XML Basics Navigating the ISO Standards.
XML Linking Language (XLink) Yi-Hui Lin. What is XLink? XLink is short for the XML Linking Language XLink is a language for creating hyperlinks in XML.
Global attributes provided by XLink Type definition attribute type Locator attributehref Semantic attributesrole, arcrole, title Behavior attributesshow,
Games: XML Presented by: Idham bin Mat Desa Mohd Sharizal bin Hamzah Mohd Radzuan bin Mohd Shaari Shukor bin Nordin.
Interoperability How to Build a Digital Library Ian H. Witten and David Bainbridge.
Fundamentals, Design, and Implementation, 9/e Appendix B The Semantic Object Model.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Linking XML Documents Ellen Pearlman Eileen Mullin Programming the Web.
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.
1 HTML Frames
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
ACG 6415 XML Schemas XML Namespaces XMLink. The XML Foundation  Many participants – an extended family! XML documents – carry data in context  Each.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
XML Extensible Markup Language
Advanced Accounting Information Systems Day 34 XBRL Instance Documents and Taxonomies November 13, 2009.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
XLink February 20, 2006 Billy Timmins. Learning objectives Learn different techniques of implementing XLink's in XML create a custom XLink learn the functionality.
Use Cases. 2 A use case... –Specifies the behavior of a system or some subset of a system. –Is a system-level function. –Does not indicative how the specified.
ACG 4401 XML Schemas XML Namespaces XLink.
Entity-Relationship Model
XML QUESTIONS AND ANSWERS
Chapter Eight Interoperability How to Build a Digital Library
WEBSITE DESIGN Chp 1
DHTML Javascript Internet Technology.
Entity Relationship Diagrams
DHTML Javascript Internet Technology.
Use Cases.
Introduction to HTML5.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Chapter 7: Entity-Relationship Model
Presentation transcript:

Processing of structured documents Part 7

XML Linking Language (XLink) zCreate and describe links between resources zboth basic unidirectional links and more complex linking structures zXLink allows XML documents to: yassert linking relationships among more than two resources yassociate metadata with a link yexpress links that reside in a location separate from the linked resources

Simple hyperlinks zLike HTML zthe hyperlink uses URIs as its locator technology zthe hyperlink is expressed at one of its two ends zthe hyperlink identifies the other end zusers can initiate traversal only from the end where the hyperlink is expressed to the other end zthe hyperlink’s effect on windows, styles, etc. are determined by user agents (e.g. browsers)

XLink concepts zLinks and resources zarcs, traversal, and behavior zresources in relation to the physical location of a linking element

Links and resources zAn XLink link is an explicit relationship between resources or portions of resources ya link is made explicit by an XLink linking element (an XML element) ythere are 6 XLink elements; only two of them are linking elements, others describe some characteristics za resource is any addressable unit of information or service yfiles, images, documents, programs, query results

Links and resources zA resource is addressed by a URI reference yit is possible to address a portion of a resource ye.g. if the whole resource is an XML document, a useful portion might be a particular element inside the document. Following a link to it might result, for example, in highlighting that element or scrolling to that point in the document zwhen a link associates a set of resources, those resources are said to participate in the link zXLink links can associate also non-XML resources

Arcs, traversal, and behavior zUsing or following a link for any purpose is called traversal yeven though some links can associate arbitrary numbers of resources, traversal always involves a pair of resources (or portions of them) zthe source from which traversal is begun is the starting resource and the destination is the ending resource

Arcs, traversal, and behavior zInformation about how to traverse a pair of resources, including the direction of traversal and possible application behavior information, is called an arc zif two arcs in a link specify the same pair of resources, but they switch places as starting and ending resources, then the link is multidirectional

Resources in relation to the physical location zA local resource is an XML element that participates in a link by virtue of having as its parent, or being itself, a linking element zany resource that participates in a link by virtue of being addressed with a URI reference is considered a remote resource yeven if in the same XML document as the link, or even in the linking element

Resources in relation to the physical location zAn arc that has a local starting resource and a remote ending resource goes outbound (away from the linking element) zif an arc’s ending resource is local, but the starting resource remote, then the arc goes inbound zif neither the starting nor the ending resource is local, then the arc is a third-party arc zone link typically specifies only one kind of arc y-> outbound, inbound, third-party links

Resources in relation to the physical location zTo create a link that starts from a resource to which you do not have write access or which does not offer any way to embed linking constructs (e.g. multimedia content), it is necessary to use an inbound or third-party arc zthe requirements for discovery of an inbound or third-party link are greater than for outbound links ydocuments containing collections of inbound and third- party links are called link databases, or linkbases

XLink markup zNamespace: yhttp:// zXLink’s namespace provides global attributes for use on elements that are in any arbitrary namespace ytype, href, role, arcrole, title, show, actuate, label, from, and to ydocument creators use the XLink global attributes to make the elements in their own namespace recognizable as XLink elements

XLink markup ztype attribute yvalues: simple, extended, locator, arc, resource, or title ydictates the XLink-imposed constraints that such an element must follow zallowed combinations of XLink global attributes depend on the value of type (required) zin the following, an element with the type=xxx is referenced by ’xxx-type element’

Example <my:crossReference xmlns:my=” xmlns:xlink=” xlink:type=”simple” xlink:href=”students.xml” xlink:role=” xlink:title=”Student List” xlink:show=”new” xlink:actuate=”onRequest”> Current List of Students

Two kinds of links zExtended links yfull XLink functionality ystructure can be fairly complex: elements for pointing to remote resources, elements for containing local resources, elements for specifying arc traversal rules, elements for specifying human-readable resource and arc titles zSimple links yshorthand syntax for a common kind of link: outbound link with exactly two participating resources yno internal structure

Extended links ztype attribute: extended zan extended link is a link that associates an arbitrary number of resources zthe participating resources may be any combination of remote and local zthe only kind of link that is allowed to have inbound and third-party arcs zexternal linking elements can be stored separately from the resources they associate (e.g. in entirely different documents)

Extended links

zAn extended-type element may contain a mixture of the following elements (among other content and markup) ylocator-type elements that address the remote resources participating in the link yarc-type elements that provide traversal rules among the link’s participating resources ytitle-type elements that provide human-readable labels for the link yresource-type elements that supply local resources

Extended links zAn extended-type element may have the semantic attributes role and title ysupply semantic information about the link as a whole yrole: indicates a property that the entire link has (URI) ytitle: indicates a human-readable description of the entire link

Local resources zresource-type elements: an entire subelement, together with all of its contents, makes up a local resource zany content zattributes: role, title, label <gpa xlink:type=”resource” xlink:label=”PatJonesGPA”>3.5

Remote resources zlocator-type elements za locator-type element may have any content zmust have the locator attribute: href ya URI reference that identifies a remote resource zmay have attributes: role, title, and label yrole: a property that the resource has (in general) ytitle: a human-readable description of the resource ylabel: a way for an arc-type element to refer to this locator-type element in creating a traversal arc

Traversal rules zarc-type elements zan extended link may indicate rules for traversing among its participating resources by means of a series of optional arc elements zattributes: ytraversal attributes: from and to ybehavior attributes: show and actuate ysemantic attributes: arcrole and title

Extended link

Arc attributes zTraversal attributes yDefine the desired traversal between pairs of resources that participate in the same link yresources are identified by their label attribute values yfrom: starting resources yto: ending resources zSemantic attributes ythe meaning of the arc’s ending resource relative to its starting resource yarcrole: ”has”

Example: link from a student to his advisor <go xlink:from=”student62” xlink:arcrole=” xlink:to=”prof7” xlink:show=”replace” xlink:actuate=”onRequest” xlink:title=”Dr. Jay Smith, advisor” />

Locating linkbases zIn the case of inbound and third-party links, the XLink application needs to be able to find somehow both the starting resource and the linking element zXLink provides a way to instruct XLink applications to access potentially relevant linkbases

Locating linkbases zin an arc-type element: arcrole=” zthe handling of a linkbase arc is much like the handling of a normal arc yexcept: traversal entails loading the linkbase to extract its links for later use ykeeping track of the starting resources xwhenever a starting resource is loaded, the respective links can be presented

Simple links zA simple link is a link that associates exactly two resources, one local and one remote, with an arc going from the former to the latter (= outbound link) za single simple linking element combines the basic functions of an extended-type element, a locator-type element, an arc-type element, and a resource-type element

Simple links

z Pat Jones zthe simple-type element itself, together with all of its content, is the local reference of the link (as if the element were a resource-type element) zattributes: type, href, role, arcrole, title, show, actuate ytype: simple yhref, role and title as in a locator-type element yshow, actuate and arcrole as in an arc-type element

Behavior attributes zshow and actuate ymay be used on the simple- and arc-type elements zshow yused to communicate the desired presentation of the ending resource on traversal from the starting resource: new, replace, embed, other, none zactuate yused to communicate the desired timing of traversal from the starting resource to the ending resource: onLoad, onRequest, other, none

Behavior attributes zshow ynew: an application traversing to the ending resource should load it in a new window, frame, or other relevant presentation context yreplace: an application should load the resource in the same window, frame, … in which the starting resource was loaded yembed: an application should load the resource in place of the presentation of the starting resource

Behavior attributes zshow yother: the behavior of an application is unconstrained by the XLink specification xthe application should look for other markup present in the link to determine the appropriate behavior ynone: the behavior of an application is unconstrained by the XLink specification xno other markup is present to help the application determine the appropriate behavior

Behavior attributes zactuate yonLoad: an application should traverse to the ending resource immediately on loading the starting resource yonRequest: an application should traverse from the starting resource to the ending resource only on a post-loading event triggered for the purpose of traversal xe.g. the user clicks on the presentation of the starting resource

Behavior attributes zactuate yother and none: like with show