Skip to main content

Snippet

  • Reference work entry
  • First Online:
Encyclopedia of Database Systems
  • 15 Accesses

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 via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  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 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marcus Herzog .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

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

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Herzog, M. (2018). Snippet. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_1171

Download citation

Publish with us

Policies and ethics