Chapitre2 partie2 LES BD ? S ET LE WEB Partie CXQUERY XML Query Language CExemple de documents Le Moulin des Vignes Mougins Moules Poisson frais ? ? Denise Fabre La Licorne Des Moines Paris Dupuis Bla Bla Ibis Des Moines Paris CLa puissance de XQuery XQUE
LES BD ? S ET LE WEB Partie CXQUERY XML Query Language CExemple de documents Le Moulin des Vignes Mougins Moules Poisson frais ? ? Denise Fabre La Licorne Des Moines Paris Dupuis Bla Bla Ibis Des Moines Paris CLa puissance de XQuery XQUERY Questions tabulaires Recherche d'information Structure d'arbres C CExpressions de chemins Se lXectPor ath Selected nodes Document root Any sub-path Any element name Element of tag name Any attribute name Attribute of name name text Any text node processing-instruction ? name ? Processing instruction of given name comment node id ? value ? Any comment node Any node Element of id value CExemple XPath ? Q Noms de tous les restaurants ?? collection ??Restaurants ? Restaurant Nom CExemple et XPath ? Expression régulière ?? Menu de tous les restaurants ?? collection ??Restaurants ? Menu ? Accès via index à attribut ?? Donnez le nom des menus du premier restaurant ?? collection ??Restaurants ? Restaurant Menu Nom CExemple Sélection ? Lister le nom des restaurants de Cabourg ?? collection ??Restaurants ? Restaurant Adresse Ville ??Cabourg Nom FOR R IN collection Restaurants Restaurant WHERE R Adresse Ville ??Cabourg ? RETURN R Nom Langages de requêtes CExemple Jointure ? Lister le nom des Restaurants avec téléphone dans la rue de l'Hôtel Ibis ?? FOR R IN collection Restaurants Restaurant H IN collection Hotels Hotel WHERE H Rue R Rue AND H Nom ??Ibis RETURN R Nom R Téléphone CExemple Restructuration d'arbre ? Construire une liste de restaurants par Ville ?? FOR c IN distinct collection ??Restaurants ? Restaurant Ville RETURN c FOR r IN collection ??Restaurants ? Restaurant WHERE r Ville c RETURN r CExemple Imbrication ? Adresses des hotels dans des villes ayant des restaurants trois étoiles ?? FOR h IN collection ??Hotels ? Hotel WHERE h Adresse Ville IN FOR r IN collection ??Restaurants ? Restaurant WHERE r categorie RETURN r Adresse Ville text RETURN h Adresse CExemple Agrégat simple ? Combien de restaurants y-a-t-il en collection LET R collection ??Restaurants ? Restaurant RETURN CExemple Agrégat partitionné ? Lister le nom de chaque restaurant avec le prix moyens des menus proposés ?? FOR r IN collection ??Restaurants ? Restaurant LET a avg collection ??Restaurants ? Restaurant r Menu Prix RETURN r Nom a CExemple recherche textuelle ? Lister les bons restaurants de Paris ?? FOR r IN collection ??Restaurants ? Restaurant WHERE CONTAINS r Comments ??Bon ? OR CONTAINS r Comments ??Excellent ? AND r Adresse Ville ??Paris ? RETURN r Nom CExemple ordre et désordre ? Lister les bons restaurants de Paris par ordre alphabétique FOR r IN unordered collection ??Restaurants ? Restaurant WHERE r Comments CONTAINS ??Excellent ? ??Good ? AND r Adresse Ville ??Paris ? RETURN r Nom SORTBY r Nom DESCENDING CExemple XML actif AXP Construire un document avec en-tête titre liste restaurants peu chers titre liste restaurants chers List of very expensive restaurants FOR r IN collection Restaurants ? Restaurant WHERE EVERY p in r Menu Prix SATISFIES p RETURN r ExpensiveRestaurant InexpensiveRestaurant
Documents similaires
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701885176htv56wtxf2zo77zeyqsm0bnelaoodj82gywexjzxc5mvxycf6sq9tp3xomq9sywzdanx8ov7wde0ltlog5ysbekp3u7l5mh6xxat.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/mx7ZLKcUuwX1La4w0hSuw1CghjDzafB866IdQNTcGdOdWxXJBOW74RQNgqPWPLc87J5x348qerRUoukl4a5EM9fC.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701950222ogzaonq0r9aw3rz5uaheip9apx640rlpbq9hhrqp2wpcmnpe5i9on0xfi3hawbeandwidtdvfoar2br4g6upfilqqydbgk9gostl.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701810936agmcnnjnqtflh2n1co9uasdar82cykqx4n27pfc8ldkcdtu4kdb6rp3caiyidgzw6gvewa4ohljwmmxcr6f6h7v8rtbeoy0emhff.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701864274uchwfedneuod1ueachzw0kl8qpfpmmerpcmd5m4ct9x9ffzabsq6bq67h4gei7gl0hugpp9lyimipxvavqqpyloptiuey9sc8tuc.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/PNe2jsA5hKEfFqvQWCyUi2k7dy9FeErfM2mwZaGFh3guLWbNrWHo9uHddYHNp6LVE8lt5h1zii3nnp9PZMqDQq5g.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701926759ihwpw3esrkfjfjxsczqgiujl7r34zowp9kpve6voas8wn1zakfa5tfleityavxcru1in7hzxhdcainnydfeamevvxkmnsjgjdqhg.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/DXyP3hVOg2l1GHpykOiTkpM63IqBY4H3MXjitFfLy05LHWeJeqeprJg1C00E3AlaJ63E6UjRmGTdDRtl8AbZBxQa.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701860976ttvaxhtx6jq9bfc7qhtxahh2zdaybq31gps3epedmsntamboshre1o7khgy2etlxaynvp4oy6nspxl2u2h5ekxrezd2jurjossuf.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701897603qjtc4ocn4j0nqdgvujd8sd7ivtej1trms0mybj5ax3qvuos7b5cb1fch0l34jsx1vofeozv9boviesjx31hmyx8qfkggbnnjnedf.png)
-
27
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Jul 03, 2022
- Catégorie Geography / Geogra...
- Langue French
- Taille du fichier 34.9kB