1 / 23

University of Erlangen-Nuremberg Computational Linguistics Instructor: Professor Airi Salminen

XML for Information Management. 12.1.-16.1. 2009. University of Erlangen-Nuremberg Computational Linguistics Instructor: Professor Airi Salminen http://users.jyu.fi/~airi/. Day 2: Background of XML. Outline. 1. Markup languages 2. Structured documents 3. World Wide Web Consortium.

Download Presentation

University of Erlangen-Nuremberg Computational Linguistics Instructor: Professor Airi Salminen

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. XML for Information Management 12.1.-16.1. 2009 University of Erlangen-Nuremberg Computational Linguistics Instructor: Professor Airi Salminen http://users.jyu.fi/~airi/

  2. Day 2: Background of XML Outline 1. Markup languages 2. Structured documents 3. World Wide Web Consortium

  3. 1. Markup languages Markup • intended for human readers • intended for computers

  4. 1. Markup languages Markup for human readers • punctuational • presentational to clarify the written expression Texthasalwaysincludedsomekindofmarkupalsobeforethetimeofcomputers Text has always included some kind of markup, also before the time of computers. Text has always included some kind of markup, also before the time of computers.

  5. 1. Markup languages Markup for computers • presentational • procedural • descriptive to provide information for a software module • In markup languages clear separation of markup and primary content.Markup is metadata, adding some information to the primary data.

  6. 1. Markup languages Presentational markup information about the way the software module should present the primary content to the human perceiver In <i>markup languages</i> there is clear separation of <i>markup</i> and <i>primary content</i>. Markup is <i>metadata</i>, adding some information to the primary data. The tags <i> and </i> represent presentational markup in HTML. The markup in an HTML file

  7. 1. Markup languages Procedural markup a processing instruction for the software module <![CDATA[<element>Example of an XML element</element>]]> <![CDATA[<element>Example of an XML element</element>]]> The strings <![CDATA[ and ]]> represent procedural markup in XML. <![CDATA[ instructs the XML processor to regard all text before ]]> as character data ]]>instructs the XML processor to to continue normal identification of markup The markup in an XML file

  8. 1. Markup languages Declarative markup describes the content of a piece of primary content, what it is, or declares that the piece is a member of a particular class <student> <first_name>Steve</first_name> <last_name>Chung</last_name> <email>steve.chung@university.ca</email> </student> The markup in an XML file XML is primarily for declarative markup.

  9. 1. Markup languages Markup in XML • All markup delivers information to XML Processor. DTD represents metamarkup, facilitating the definition of the markup vocabulary. • Markup in an XML document is usually classified in respect to the application. • Processing instructions represent procedural markup. • Element tags represent declarative markup. • In the specification of an XML application different kinds of meanings can be given to element names, they can be processing instructions to the application or instructions about the way the content should be presented by the application.

  10. 1. Markup languages Example of HTML markup <html> <head> <title>University ofJyv&auml;skyl&auml;</title> </head> <body> <h2>Faculties</h2> <ul> <li>Humanities <li>Information Technology <li>Social Sciences </ul> <br> <address>admin@jyu.fi</address> </body> </html> The element markup describes the structure for WWW publishing.

  11. 1. Markup languages The same primary content with markup describing the content of elements by means of XML markup. <university> <name>University ofJyväskylä</name> <faculties>Faculties <faculty>Humanities</faculty> <faculty>Information Technology</faculty> <faculty>Social Sciences</faculty> </faculties> <contact_email>admin@jyu.fi</contact_email> </university>

  12. 1. Markup languages Logical structure of the HTML document Logical structure of the XML document University of Jyväskylä University of Jyväskylä title Faculties Faculties name Humanities head h2 Humanities faculty li university html Information Technology ul li faculties Information Technology Social Sciences body faculty li Social Sciences br contact_email faculty admin@cjyu.fi admin@cjyu.fi address

  13. 2. Structured documents Structured document • structure, content, and external presentation can be separated from each other and processed separately • structural components have names • structural components can be recognized by software modules • possible to define the structure

  14. 2. Structured documents Structure Content Layout Structured document different languages for defining the structure, e.g., DTD, XML Schema, RELAX NG for XML an open language standard, e.g. SGML, XML different languages for defining the layout, e.g., CSS and XSL for XML

  15. 2. Structured documents Structure Content Layout Structured document Example DTD.txt rhymes.txt rhymes.xml style.txt style.css rhymes with style attachment.txt rhymes with style attachment.xml

  16. 2. Structured documents Management of structured documents • document management • management of the data contained in documents

  17. 2. Structured documents Characteristics in the management of structured documents • Design.Adopting the approach of structured document management in an environment often requires careful planning before the creation of documents. Includes schema design and layout design. • Content production. Content can be produced by different types of software, e.g. by a syntax-directed editor. Checking the validity against the schema. • Evolution. Schema versioning, layout versioning. • Operations. Most typical operation is some kind of transformation. • Software. Many kinds of software systems used.

  18. 2. Structured documents

  19. 2. Structured documents

  20. 2. Structured documents Database languages • definition languages • query languages Structured document languages • definition languages • style languages • various manipulation, transformation and query languages

  21. 3. World Wide Web Consortium • W3C developes specifications to support the use of the web, publicly available at http://www.w3.org/TR/ • Development is systematic • Development process is specified and published

  22. 3. World Wide Web Consortium Phases of the development process • Working Draft: represents work in progress. • Candidate Recommendation: has received significant review from its immediate technical community, explicit call for implementation and technical feedback. • Proposed Recommendation: represents consensus in the development group, proposed to the Advisory Committee for review. • Recommendation: represents consensus within W3C, widespread implementation encouraged.

  23. 3. World Wide Web Consortium What happens to a W3C Recommendation? • Remains as a Recommendation indefinitely. • W3C rescinds the recommendation. A report called Rescinded Recommendation is published. • A new version of the Recommendation is developed. • Minor modifications are done. A report called Proposed Edited Recommendation is published.

More Related