• Aucun résultat trouvé

A.1 Les sch´emas UPS

Les sch´emas UPS d´ecrivent les capacit´es et les pr´ef´erences des entit´es qui peuvent intervenir dans la chaˆıne d’adaptation allant du serveur de contenu vers le terminal cible. Les profils sont analys´es syntaxiquement et tout information pertinente par rapport au processus d’adaptation est prise en compte. UPS inclut six sch´emas :

1. Le sch´ema de profil de client

2. Le sch´ema de profil des ressources du client

3. Le sch´ema de profil d’instance de document

4. Le sch´ema de profil des ressources du contenu

5. Le sch´ema de profil des m´ethodes d’adaptation

6. Le sch´ema de profil du r´eseau

A.2 Exemple de Sch´ema : Le sch´ema profil de client

< ?xml version=”1.0” ?>

<rdf :RDF xmlns :rdf=”http ://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns :rdfs=”http ://www.w3.org/2000/01/rdf-schema#”

xmlns :neg=”http ://www.inrialpes.fr/opera/people/Tayeb.Lemlouma/NegotiationSchema/ ClientProfileSchema-03012002#”>

< !– This is the RDF Schema for ”The Client Profile”. Defined in the context of content negotiation in heterogeneous environments. Author : Tayeb LEMLOUMA, January 2002. –>

<rdf :Description rdf :ID=”ProfileComponent”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Class”/>

<rdfs :subClassOf rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Resource”/>

<rdfs :comment>

A class that includes different components for the Client Profile description

</rdfs :comment> </rdf :Description>

< !– Common properties –>

< !– Main Client Profile Components –>

<rdf :Description rdf :ID=”HardwarePlatform”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Class”/> <rdfs :subClassOf rdf :resource=”#ProfileComponent”/>

<rdfs :comment>

Describe the hardware platform of the client device

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”SoftwarePlatform”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Class”/> <rdfs :subClassOf rdf :resource=”#ProfileComponent”/>

<rdfs :comment>

Describe the software platform used by the client device : OS, etc.

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”BrowserUA”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Class”/> <rdfs :subClassOf rdf :resource=”#ProfileComponent”/>

<rdfs :comment>

Describe players used by the client device. This component plays a major role in the content negotiation and may refer to external profiles. Note that the protocol used to access to the network, and player-related network description may be added here.

</rdfs :comment> </rdf :Description>

< !– HardwarePlatform Profile Component –> <rdf :Description rdf :ID=”DeviceType”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The type of the used device Example : ”Pocket PC, PC, Laptop, phone, WAP phone”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”DeviceName”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The name of the used device Example : ”iPAQ 3600”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”DeviceConstructor”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The device constructor Example : ”MyCompagny computer corp.”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”screen”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The screen dimension of the used device Example : ”30X23mm”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”screenColor”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The color displying capability of the screen. Example : ”yes”, ”no”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”display”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The display of the used device Example : ”101x52Pixels”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”PixelStretch”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

Gives the (height/width) pixels ratio, used in images design Example : ”1.24”, means that the pixels are 24</rdfs :comment>

</rdf :Description>

<rdf :Description rdf :ID=”row”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Bag”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

Gives the number of the screen rows. Can be given as a set of couple (type,value) Example : ”Latin, 5” and ”Chinese, 3”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”col”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Bag”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

Example : ”14”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”RAMSize”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The size of the device’s RAM memory Example : ”32 Mo”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”ROMSize”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#HardwarePlatform”/>

<rdfs :comment>

The size of the device’s ROM memory Example : ”16 Mo”

</rdfs :comment> </rdf :Description>

< !– SoftwarePlatform Profile Component –> <rdf :Description rdf :ID=”PlatformName”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#SoftwarePlatform”/>

<rdfs :comment>

The name of the Operating System used by the user agent Example : ”Windows Professionnel”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”PlatformVersion”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#SoftwarePlatform”/>

<rdfs :comment>

The version of the Operating System used by the user agent Example : ”8.0”

</rdfs :comment> </rdf :Description>

< !– BrowserUA Profile Component –>

<rdf :Description rdf :ID=”UsedPlayerName”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdfs :domain rdf :resource=”#BrowserUA”/>

<rdfs :comment>

The name of the player used by the client, at a well determined session. The client can use many players. Example : ”Nethix”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”UsedPlayerVersion”>

<rdfs :domain rdf :resource=”#BrowserUA”/> <rdfs :comment>

The version of the player. Example : ”1.1”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”OnlySupportedResources”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Bag”/> <rdfs :domain rdf :resource=”#BrowserUA”/>

<rdfs :comment>

The only supported set of resources or services. Profiles of these last are denoted using links (the profile element) This set is given generally when the it is small and not already described by an existed schema. Example : ”WML documents, wbmp images”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”PreferredSupportedResources”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Seq”/> <rdfs :domain rdf :resource=”#BrowserUA”/>

<rdfs :comment>

A list that gives preferred resources ordered with a priority level value. The range of the value is left to the negotiation strategy. Example : ”wbmp,2,gif,1”

</rdfs :comment> </rdf :Description>

<rdf :Description rdf :ID=”NonSupportedResources”>

<rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Property”/> <rdf :type rdf :resource=”http ://www.w3.org/2000/01/rdf-schema#Bag”/> <rdfs :domain rdf :resource=”#BrowserUA”/>

<rdfs :comment>

The list of the excluded resources. Note that if the non supported resource depends to a particular set (WML, HTML, etc.), it’s preferable to include it on the corresponding profile. Example : ”the non support of a resource from a predefined set of supported resources”

</rdfs :comment> </rdf :Description> </rdf :RDF>

Transformations de structures

Contenu

B.1 La DTD des document XML pour la Transformations XML vers LATEX . . . . 189

B.2 Transformations de structures bas´ees sur XSLT : XML vers LATEX . . . . 190