Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lexique Langages & Documents Réfs Paul Franchi SI 4 2011-12 Techs Sommaire...... 13/01/2014 Transparent - 1 Chap IX - RDF Resource Description Framework.

Similar presentations


Presentation on theme: "Lexique Langages & Documents Réfs Paul Franchi SI 4 2011-12 Techs Sommaire...... 13/01/2014 Transparent - 1 Chap IX - RDF Resource Description Framework."— Presentation transcript:

1 Lexique Langages & Documents Réfs Paul Franchi SI Techs Sommaire /01/2014 Transparent - 1 Chap IX - RDF Resource Description Framework Chap X - AJAX Asynchronous JavaScript And XML

2 SommaireLexique Réfs Techs Transparent 2 13/01/2014 Sommaire du Cours n Chap I - Documents: Historique, Modèles, Standards et Références Chap I n Chap II - HTML: voir le cours CIP1-CMD & HTML5 Chap IIvoir le cours CIP1-CMD n Chap III - XML: "eXtensible Markup Language", les Bases Chap III n Chap IV - DTD: "Document Type Definition" Chap IV n Chap V - CSS: Feuilles de Styles en Cascades& CSS3 Chap V n Chap VI - DOM, DHTML: "Domain Object Model "& Programmation Dynamique en HTML & SPRY & JQuery Chap VI n Chap VII - XSD: Schémas XML Chap VII n Chap VIII - XML "Advanced" Processeurs et Dialectes: XPath, Xlink Chap VIII n Chap IX - XSLT: Transformations XML Chap IX n Chap X - RDF: "Resource Description Framework" Chap X n Chap IX - AJAX: "Asynchronous JavaScript And XML" Chap IX Savoir-Faire: Know Hows Know Hows HTMLHTML XHTML CSS JS+DOM MATHML XPATH XLINK XSLTXHTMLCSS JS+DOMMATHMLXPATHXLINKXSLT n Etat de l'art: HTML5HTML5 CSS3 SPRY SVG RDF AJAX XULCSS3 SPRYSVGRDFAJAXXUL

3 SommaireLexique Réfs Techs Transparent 3 13/01/2014 n Web EPU courses (in French) Création & Manipulltion de Document Introduction to Internet Langages & Documents W3C tutorial : Mozilla Development Center W3C, Web Developer's Bookmarks n Biblio: many issues at EPU's lib Some Références

4 SommaireLexique Réfs Techs Transparent 4 13/01/2014 Documentation et Manuels n Documents du web liste de balises HTML code des couleurs RVB code HTML des caractères ISO liste des extensions de fichiers (formats) liste des extensions de fichiers (formats) Expressions Rationnelles n Manuels. Expressions régulières sous Emacs Expressions régulières sous Emacs Recherche et remplacement sous Emacs Recherche et remplacement sous Emacs compléments Emacs grep sous Unix n Tutoriaux du Web W3C : CSS Play : Zen Garden : CSS in10 steps : training/css/positioning/ training/css/positioning/ 10 steps to better CSS: r_css/ r_css/

5 SommaireLexique Réfs Techs Transparent 5 13/01/2014 Références Web

6 SommaireLexique Réfs Techs Transparent 6 13/01/2014 API – Application Programming Interface ANSI – American National Standards Institute ASCII – American Standard Code for Information Interchange (128 car.) AJAX – Asynchronous JavaScript & XML CSS – Cascading Style Sheets DHTML – Dynamic HTML DOM – Document Object Model DTD – Document Type Definition HTML – HyperText Markup Language HTTP – HyperText Transfer Protocol ISO - International Standards Organization Mozilla - Fondation (global community for free and open Internet software)) MVC - Model View Controler RDF - Resource Description Framework REST - Representational State Transfer RIA - Rich Internet Application RSS - Really Simple Syndication SGML - Standard Generalized Markup Language SOAP - Simple Access Object Protocol SPRY - Extensions JS pour HTML - Adobe Lab. SVG - Scalable Vector Graphics UNICODE – World wide Code (16 bits) UTF-8 – Unicode version 8 bits URL / URI – Uniform Resource Locator / Identifier XML – eXtensible Markup Language XBL – XML Binding Language (Mozilla) XForms – XML Forms XHTML – HTML 4 en XML XLink – XML Linking Language XPath – XML Path Language XPointer – XML Pointer Language XSL - eXtensible Stylesheet Language XSLT – XSL Transformations XSL-FO – XSL Formatting Objects XSD – XML Schémas Définition Language XUL – XML User Language (Mozilla) W3C – World Wide Web Consortium Web2.0 – Web dit "sémantique" WHATWG - Web Hypertext Application Technology Working Group WSDL - Web Service Description Language Lexique

7 Langages & Documents Réfs Paul Franchi SI Techs Sommaire /01/2014 Transparent - 7 Chap IX - RDF Resource Description Framework RDF/XML Dublin Core OWL RDF validator RDF validator RDF/XML Dublin Core OWL RDF validator RDF validator

8 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 8 13/01/2014 RDF- Resource Description Framework (W3C) n RDF is a part of the W3C's Semantic Web Activity RDF is a W3C Recommendation RDF is a framework for describing resources on the web RDF provides a model for data, and a syntax so that independent parties can exchange and use it RDF is designed to be read and understood by computers RDF is not designed for being displayed to people RDF is a XML Dialect n RDF - Examples of Use Describing properties for shopping items, such as price and availability Describing time schedules for web events Describing information about web pages, such as content, author, created and modified date Describing content and rating for web pictures Describing content for search engines Describing electronic libraries. n RDF and "The Semantic Web"(W3C's "Semantic Web Vision") Web information has exact meaning Web information can be understood and processed by computers Computers can integrate information from the web

9 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 9 13/01/2014 RDF/XML – Resource with Properties and Values n A Resource is anything that can have a URI (about=), such as "http://polytech/LANGDOC/RDF" n A Property is a Resource that has a name, such as or n A Property value, such as "Paul Franchi" or "http://www.polytech.unice.fr/~pfz" n W3C RDF Syntax Validator & Graph Generator W3C RDF Syntax Validator & Graph Generator Paul Franchi

10 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire n Un modèle de Graphe Entités/Relations n Une syntaxe RDF/XML pour "sérialiser" le graphe PFZ Transparent 10 13/01/2014 RDF - Graphe Entité-Relation

11 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 11 13/01/2014 RDF: Description, Property, Attribute, Value, resource CBS Records

12 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 12 13/01/2014 RDF - W3C Syntax Validator & Graph Generator

13 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 13 13/01/2014 RDF: Bag et les autres Conteneurs John Paul George Ringo

14 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 14 13/01/2014 RDF: Bag, Seq, Alt John Paul George Ringo... CD Record Tape George John Paul Ringo

15 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 15 13/01/2014 RDF- les utilisations classiques n Dublin Core MetaData n OWL n Mozilla contents.rdf chrome.rdf XUL n Communication par RDF files (génération par Php, etc.) n RSS 1.0

16 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 16 13/01/2014 Dublin Core n The Dublin Core Metadata Initiative (DCMI) has created some predefined properties for describing documents. Property Definition Contributor An entity responsible for making contributions to the content of the resource Coverage The extent or scope of the content of the resource Creator An entity primarily responsible for making the content of the resource Format The physical or digital manifestation of the resource Date A date of an event in the lifecycle of the resource Description An account of the content of the resource Identifier An unambiguous reference to the resource within a given context Language A language of the intellectual content of the resource Publisher An entity responsible for making the resource available Relation A reference to a related resource Rights Information about rights held in and over the resource Source A Reference to a resource from which the present resource is derived Subject A topic of the content of the resource Title A name given to the resource Type The nature or genre of the content of the resource

17 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 17 13/01/2014 Dublin Core http://purl.org/dc/elements/1.1/ D-Lib Program W3Schools - Free tutorials Refsnes Data as Web Development text/html en

18 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 18 13/01/2014 OWL - "Web Ontology Language " (W3C) n What is OWL? OWL is built on top of RDF as a web standard OWL is for processing information on the web OWL was designed to be interpreted by computers OWL was not designed for being read by people OWL is written in XML n OWL has three sublanguages: OWL Lite OWL DL (includes OWL Lite) OWL Full (includes OWL DL) n OWL is Different from RDF OWL is a stronger language with greater machine interpretability than RDF. OWL comes with a larger vocabulary and stronger syntax than RDF. What is Ontology? For the web, Ontology is about the exact description of web information and relationships between web information. OWL Example (Airport) OWL Resource: html/airport-ont html/airport-ont Class: AirportAirport Properties: elevation iataCode icaoCode latitude location longitude name

19 Lexique Langages & Documents Réfs Paul Franchi SI Techs Sommaire /01/2014 Transparent - 19 Chap X - AJAX Asynchronous JavaScript And XML Http synchrone XMLHttpRequest Http synchrone XMLHttpRequest Les exemples AJAX tournent sous FF3, mais pas (encore) sous FF4+

20 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 20 13/01/2014 AJAX- Asynchronous JavaScript and XML n AJAX is not a new programming language, but a technique for creating better, faster, and more interactive web applications. n With AJAX, your JavaScript can communicate directly with the server, using the JavaScript XMLHttpRequest object. With this object, your JavaScript can trade data with a web server, without reloading the page. n AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages. n The AJAX technique makes Internet applications smaller, faster and more user-friendly. n AJAX is a browser technology independent of web server software. n AJAX is based on the following web standards: JavaScript XML HTML CSS

21 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 21 13/01/2014 function HTTP() { } HTTP() ; Côté "Client" send() open(GET,...) new XMLHttpRequest status responseText responseXML Côté "Serveur" AJAX : schéma "HttpRequest / Response"

22 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 22 13/01/2014 L'Objet XMLHttpRequest n Attributs readyState status 200 si ok si la page n'est pas trouvée. responseText données chargées dans une chaîne de caractères. responseXml données chargées sous forme xml, onreadystatechange propriété activée par un évènement de changement d'état. On lui assigne une fonction. n Méthodes open(mode, url, boolean) mode: type de requête, GET ou POST url: l'adresse des données, boolean: true (asynchrone) / false (synchrone). en option on peut ajouter un login et un mot de passe. send("chaine") null pour une commande GET. n Attributs readyState status 200 si ok si la page n'est pas trouvée. responseText données chargées dans une chaîne de caractères. responseXml données chargées sous forme xml, onreadystatechange propriété activée par un évènement de changement d'état. On lui assigne une fonction. n Méthodes open(mode, url, boolean) mode: type de requête, GET ou POST url: l'adresse des données, boolean: true (asynchrone) / false (synchrone). en option on peut ajouter un login et un mot de passe. send("chaine") null pour une commande GET. n 0 (non init) n 1 (connexion) n 2 (requete) n 3 (réponse), n 4 (terminé) n 0 (non init) n 1 (connexion) n 2 (requete) n 3 (réponse), n 4 (terminé)

23 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 23 13/01/2014 function submitForm() { var xhr; try { xhr = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { //IE try { xhr = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e2) { //FF try { xhr = new XMLHttpRequest(); } catch (e3) { xhr = false; } } xhr.onreadystatechange = function() { if(xhr.readyState == 4) { if(xhr.status == 200) document.ajax.dyn="Received:" + xhr.responseText; else document.ajax.dyn="Error code " + xhr.status; } }; xhr.open( GET", "data.xml", true); xhr.send(null); } Script AJAX

24 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 24 13/01/2014 function syncHTTP() { try { var xmlHttp; try { // IE7, Firefox, Opera 8.0+, Safari netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); xmlHttp=new XMLHttpRequest(); } catch (e) { alert("Your browser is not a good one!"); return false; } xmlHttp.open ("GET","http://www.w3schools.com/ajax/time.asp", false); // synchrone xmlHttp.send (null); if(xmlHttp.status != 200) { throw new ERROR("HTTP " + xmlHttp.status); } //200=OK document.myForm.time.value=xmlHttp.responseText; } catch (e) { alert("Erreur au HTTP"); return false;} } // syncHTTP() Name: Time: "Http synchrone" "Request" synchrone sur un serveur

25 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 25 13/01/2014 var xmlHttp; function ajaxFunction() { /* voir suivant */ xmlHttp.onreadystatechange = function() { /* voir suivant */ } Name: Time: n XMLHttpRequest asynchrone: onreadystatechange() "Request" sur un serveur (url,.asp ou.php)

26 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 26 13/01/2014 function ajaxFunction() { var xmlHttp; try { // IE7, Firefox, Opera 8.0+, Safari netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer 6 et - try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState==4) { document.myForm.time.value = xmlHttp.responseText; } } xmlHttp.open("GET","http://www.w3schools.com/ajax/time.asp", true); xmlHttp.send (null); } // ajaxFunction n XMLHttpRequest asynchrone: onreadystatechange() "Request" sur un serveur (url,.asp ou.php)

27 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 27 13/01/2014

28 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 28 13/01/2014 function onResponse() { if (xmlhttp.readyState!=4) return; if (xmlhttp.status!=0 && xmlhttp.status!=200) // OK? { alert ("Problem retrieving XML data"); return; } TRAITEMENT_DU_XML() ; // ou TRAITEMENT_DU_TEXTE() } ]]> Get CD info n XMLHttpRequest asynchrone: onResponse() "Request" sur un document.xml

29 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 29 13/01/2014 TRAITEMENT_DU_TEXTE() { // extraction du "string source" var reponse = xmlhttp.responseText ; /******* traitement avec RegExp, match(), split(), substr(), slice(), etc. ****/ var debut=new RegExp ("[\\d\\D]*? "); alert (xmlhttp.responseText.match(debut)[0]) ; } n XMLHttpRequest: responseText "Request" sur un document.xml

30 Lexique Réfs Techs RDF- Resource Description Framework (source W3C) RDF- Resource Description Framework (source W3C) "Request" sur un serveur (url,.asp ou.php) "Request" sur un serveur (url,.asp ou.php) RDF -W3C Syntax Validator & Graph Generator RDF -W3C Syntax Validator & Graph Generator Dublin Core RDF: Bag, Seq, Alt RDF - Graphe Entité-Relation RDF - Graphe Entité-Relation OWL - "Web Ontology Language " (source W3C) OWL - "Web Ontology Language " (source W3C) "Request" sur un document.xml RDF/XML – Resource with Properties and Values RDF/XML – Resource with Properties and Values AJAX- Asynchronous JavaScript and XML AJAX- Asynchronous JavaScript and XML Objet xmlHttpRequest Sommaire Transparent 30 13/01/2014 TRAITEMENT_DU_XML() { txt=" "; x = xmlhttp.responseXML. documentElement.getElementsByTagName("CD"); for (i=0;i


Download ppt "Lexique Langages & Documents Réfs Paul Franchi SI 4 2011-12 Techs Sommaire...... 13/01/2014 Transparent - 1 Chap IX - RDF Resource Description Framework."

Similar presentations


Ads by Google