syllable based compression for xml
play

Syllable-based compression for XML Katsiaryna Chernik, Jan Lnsk, - PowerPoint PPT Presentation

Syllable-based compression for XML Katsiaryna Chernik, Jan Lnsk, Leo Galambo Dept. of Software Engineering Faculty of Mathematics and Physics Charles University Content Motivation Syllable-based compression XMLSyl


  1. Syllable-based compression for XML Katsiaryna Chernik, Jan Lánský, Leo Galamboš Dept. of Software Engineering Faculty of Mathematics and Physics Charles University

  2. Content � Motivation � Syllable-based compression � XMLSyl � XMillSyl � Results � Conclusion

  3. Motivatoin � XML � Simple text format for structured text documents � Data exchange standard � Hight redundancy

  4. Compression Methods for XML � Character-based � XMill � XMLPPM � XGrind, ... � Word-based ? � Syllable-based ?

  5. Syllable-based compression � LZWL � Dictionary-based method � Syllable-based version of LZW � HufSyl � Statistical method � Adaptive Huffman coding � Inspired by HuffWord

  6. Syllable-based compression � Syllable-based compression is suitable for languages with rich morphology (Czech) � Syllable-based compression is suitable for small or middle-sized files

  7. Syllable-based compression of XML � Majority of XML documents are small or middle-sized � Many text-like XML documents � news in RSS format � documentations or books in DocBook format Syllable-based compression and XML?

  8. XMLSyl Idea � Syllable-based compressor � XML tokens are divided to many syllables � XMLSyl � XML tokens are treated as single syllables

  9. XMLSyl Architecture SAX Parser XML Document Structure Encoder Element Container Attribute Container Data and Structure Container Syllable Compressor Syllable Compressor Compressed XML document

  10. XMLSyl Example XML doc: < book> < title lang= "en"> XML< / title> < / book> SAX events: startElement(“book”) startElement(“title”,(“lang”,”en”)) characters(“XML”) endElement(“title”) endElement(“book”)

  11. XMLSyl Example – Encoding process SAX events: startElement(“book”) startElement(“title ,(“lang”,”en”)) characters(“XML”) endElement(“title”) endElement(“book”) Element Container Attribute Container E0 A0 book lang E1 title Data and Structure Container E0 E1 A0 en END_ATT CHAR XML END_CHAR END_TAG END_TAG

  12. XMLSyl Implementation details � SAX parser – EXPAT � Syllable Compressor – LZWL and HufSyl � Encoding was inspired by existing XML compression methods � XMLPPM, XGrind, XPress, XMill

  13. XMillSyl � Based on XMill � Main principles of XMill � Separating structure from data � Grouping Data values with related meaning

  14. Architecture of XMill Input XML file SAX Parser Path Processor … Structure Container Data Container1 Data Container 2 Data Container k gzip gzip gzip gzip Compressed XML file

  15. XMill – one container Input XML file SAX Parser Path Processor Structure Container Data Container gzip gzip Compressed XML file

  16. XMillSyl Architecture Input XML file SAX Parser Path Processor … Structure Container Data Container1 Data Container 2 Data Container k gzip LZWL / HufSyl LZWL / HufSyl LZWL / HufSyl Compressed XML file

  17. Syllable-based compression of XML Experimental results XMLSyl & XMillSyl vs. LZWL & HufSyl � Non-textual XML data � 50-60% better � Textual XML data � 10-20% better

  18. Syllable-based compression of XML Experimental results Text-like XML documents XMLSyl XMillSyl one container XMillSyl more containers

  19. Syllable-based compression of XML Experimental results Text-like XML documents XMLSyl � XMLHuf is suitable for small-sized files � XMLzwl is suitable for large-sized files XMLSyl vs. XMill � On average 10-15% worse than XMill � On some documents the same performance or better

  20. Conclusion � New syllable-based compression methods of XML � XMLSyl (versions: XMLzwl, XMLhuf) � XMillSyl (versions: XMillzwl, XMillhuf) � One of our method outperforms XMill on some documents

  21. Conclusion � Future work � extract and utilize the information in the DTD section � create a special syllable dictionary for elements and attributes � compress HTML data

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend