Encyclopedia of Database Systems

2018 Edition
| Editors: Ling Liu, M. Tamer Özsu

Snippet

  • Marcus Herzog
Reference work entry
DOI: https://doi.org/10.1007/978-1-4614-8265-9_1171

Synonyms

Capsule; Flake; Macro; Mini; Module; Web widget

Definition

A snippet is a chunk of reusable source code. In the context of Web programming, a snippet refers to a chunk of reusable HTML source code, along with all relevant resources such as style sheets and scripts applied within the context of the snippet. In the context of Web information extraction, a snippet is a subset of the available information items that can be extracted from the Web page.

Key Points

The term snippet originates from the domain of text editors, where snippets refer to chunks of source code which can be organized for copy-and-paste usage. Snippet management allows for viewing, editing, sorting, and storing snippets in a repository of reusable source code fragments. The overall goal of snippets is to ease the process of writing code by reducing the manual effort to type in source code and to reuse existing lines of code.

Snippets can be classified according to the complexity of the interaction process:...

This is a preview of subscription content, log in to check access.

Recommended Reading

  1. 1.
    Baumgartner R, Flesca S, Gottlob G. Visual web information extraction with lixto. In: Proceedings of the 27th International Conference on Very Large Data Bases; 2001. p. 119–28.Google Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Vienna University of TechnologyViennaAustria

Section editors and affiliations

  • Georg Gottlob
    • 1
  1. 1.Computing Lab.Oxford Univ.OxfordUK