1 / 35

XLinks

XLinks. Praveen Polishetty. Contents :. XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink Traversal Properties Types of XLinks Summary References.

Download Presentation

XLinks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XLinks Praveen Polishetty

  2. Contents : • XLink Capabilities • XLink Concepts • XLink Core Properties • XLink Semantic Properties • XLink Behavior Properties • XLink Traversal Properties • Types of XLinks • Summary • References

  3. It is an XML linking language which allows for elements to be inserted into XML documents in order to create and describe links between resources.

  4. Capabilities of XLinks: • Assert linking relationships among more than two resources. • Associate metadata with a link. • Express links that reside in a location separate from the linked resources.

  5. XLink Concepts: • Links and Resources • Arcs Traversal and Behavior • Resources in relation to the physical location of a linking element.

  6. Links and Resources: • LINK : It is an explicit relationship between resources or portions of resources. • Resource : It is any addressable unit of information or service.

  7. Arcs Traversal and Behavior: • Arc : Information about how to traverse a pair of resources, including the direction of traversal and possibly application behavior information. • Traversal : Using or following a link for any purpose

  8. Resources in relation to the physical location of a linking element: • Local Resource : It is an XML element that participates in a link by virtue of having as its parent, or being itself, a linking element • Remote Resource : Any resource or resource portion that participates in a link by virtue of being addressed with a URI reference

  9. XLink Core Properties: • XLink element Type attribute(type) • XLink element Locator attribute(href)

  10. XLink element Type attribute (type): • XLink:type attribute indicates the type of the link: • value simplesimple link • value extended extended link

  11. XLink element Locator attribute (href): • XLink:href this is the only locator attribute, and its value is an URI Reference.

  12. XLink Semantic Properties: Those are placeholders for application semantic: • XLink:title is designed to provide human-readable text describing the links, simple links must use an attribute while extended links must use an element. • XLink:role is an attribute containing a qualified name used to describe the function of the link's or locator's content.

  13. XLink Behavior Properties: • Attributes are • show • actuate

  14. Show Attribute: • XLink:show indicate expected behaviour on traversal effect: • valueembed the link target should be included like <IMG> • value new the link target should create a new rendering, like opening a new window. • value replace the link target should replace the resource containing the link, like <A> in most cases.

  15. Actuate attribute: • XLink:actuate indicate expected triggering of link: • valueauto indicate at link detection time, like <IMG> if auto loading of images is turned on. • value onRequest indicate activation at user's request, like <A>

  16. XLink Traversal Properties: Attributes: • Label • From • To

  17. Types of Links: • Simple • An outbound link with exactly two participating resources • Extended • Links that have arbitrary numbers of participating resources

  18. Extended Links: View:

  19. Advanced Features: • Multiple sources and targets using XLink:locator elements • Multiple actuation possible using XLink:arc elements • Multiple XLink:title elements.

  20. XLink :Extended • xlink:extended element <?xml version="1.0"?> <WEBSITE> <xlink:extended xmlns:xlink="http://www.w3.org/XML/XLink/0.9"> <!-- Locators go here --> </xlink:extended> </WEBSITE> • An element of arbitrary type like COMPOSER or TEAM that has xlink:type attribute with the value extended <?xml version="1.0"?> <WEBSITE xmlns:xlink="http://www.w3.org/XML/XLink/0.9" xlink:type="extended"> <!-- Locators go here --> </WEBSITE>

  21. Examples of Extended Links: Locator to Remote resource Locator to Remote resource Locator to Remote resource Extended Locator to Remote resource Locator to Remote resource

  22. Contd… Locator to Remote resource Locator to Remote resource Locator to Remote resource Extended Local Resource Local resource Locator to Remote resource Locator to Remote resource

  23. Extended Links: The extended type element may contain any of the following: • Locator • Arc • Title • Resource

  24. Extended Links: • Local Resources (resource type element) • Remote Resources (Locator type element) • Traversal Rules (Arc type Element)

  25. Local Resources: An extended link indicates its participating local resources by means of special sub elements that appear inside the extended link. An entire sub element, together with all of its contents, makes up a local resource.

  26. Remote Resources: An extended link indicates remote resources that participate in it by means of locator elements.

  27. Traversal Rules: An extended link may indicate rules for traversing among its participating resources by means of a series of optional arc elements.

  28. Simple links: View: Source Link Target

  29. Xlink:Simple • <xlink:simple xmlns:xlink= “http://www.w3.org/XML/Xlink/0.9” href="footnote7.xml"> <FOOTNOTE>7</FOOTNOTE> </xlink:simple> • <xlink:simple xmlns:xlink=“http://www.w3.org/XML/Xlink/0.9” href="http://www.interport.net/~beand/"> <COMPOSER>Beth Anderson</COMPOSER> </xlink:simple> • <IMAGE> <xlink:simple xmlns:xlink="http://www.w3.org/XML/XLink/0.9" href="logo.gif"/> </IMAGE> If used in a valid document, xlink:simple must be declared <!ELEMENT xlink:simple ANY> <!ATTLIST xlink:simple xmlns:xlink CDATA #FIXED "http://www.w3.org/XML/XLink/0.9" href CDATA #REQUIRED >

  30. Example of Simple Link: Locator to Remote resource Simple Local resource Local resource

  31. Limitations of Simple Links: • Supplying arbitrary numbers of local and remote resources • Specifying an arc from its remote resource to its local resource • Associating a title with the single hardwired arc • Associating a role or title with the local resource • Associating a role or title with the link as a whole

  32. Summary: • Simple links behave much like HTML links, but they are not restricted to a single <A> tag. • Link elements are identified by xlink:type attributes. • Simple link elements are identified by xlink:type attributes with the value simple. The xlink:simple element is also a simple link. • Link elements can describe the resource they're linking to with title and role attributes. • Link elements can use the show attribute to tell the application how the content should be displayed when the link is activated, for example, by opening a new window. • Link elements can use the actuate attribute to tell the application whether the link should be traversed without a specific user request. • Extended link elements are identified by xlink:type attributes with the value extended. The xlink:extended element is also an extended link. • Extended links can contain multiple locators and arcs. Currently, it's left to the application to decide how to choose between different alternatives

  33. Contd…. • Locator elements are identified by xlink:type attributes with the value locator. The xlink:locator element is also a locator element. • A locator element has an href or xlink:href attribute whose value is the URI of the resource it locates. • Arc elements are identified by xlink:type attributes with the value arc. The xlink:arc element is also an arc element. • Arc elements have from and to attributes of IDREF type that identify to the locator elements they connect. • Arc elements may have show and actuate attributes to determine when and how traversal of the link occurs. • An extended link group element contains a list of links that connect a particular group of documents. • An extended link group element is identified by an xlink:type attribute with the value group. An xlink:group element is also an extended link group element. • An out of line link is an XLink (most commonly an extended XLink) that is not part of any of the documents it connects. Instead, the links are stored in a separate linking document. • An extended link document element is identified by an xlink:type attribute with the value document. An xlink:document element is also an extended link document element.

  34. References: • www.w3.org • www.unc.edu • www.ibiblio.org/xml/ • www.Xml.com

  35. Thank you Email:poli_praveen@yahoo.com

More Related