Attribute-Value Pair
(Redirected from attribute-value pair)
Jump to navigation
Jump to search
An Attribute-Value Pair is a 2-tuple record where one data item represents an attribute and the other represents an attribute member.
- AKA: Key-Value Pair.
- Context:
- …
- Example(s):
- a Product Attribute-Value Pair, such as [Size, small].
- …
- Counter-Example(s):
- a Data Triple, such as a Type-Length-Value Triple.
- a Data Set.
- See: Data Structure, Data Model, Tuple.
References
2014
- (Wikipedia, 2014) ⇒ http://en.wikipedia.org/wiki/Attribute–value_pair Retrieved:2014-1-10.
- A name–value pair, key–value pair, field–value pair or attribute–value pair is a fundamental data representation in computing systems and applications. Designers often desire an open-ended data structure that allows for future extension without modifying existing code or data. In such situations, all or part of the data model may be expressed as a collection of tuples <attribute name, value>; each element is an attribute–value pair. Depending on the particular application and the implementation chosen by programmers, attribute names may or may not be unique.
Some of the applications where information is represented as attribute-value pairs are:
- E-mail, in RFC 2822 headers
- Query strings, in URLs.
- Optional elements in network protocols, such as IP, where they often appear as TLV (type-length-value) triples
- Bibliographic information, as in BibTeX and Dublin Core metadata
- Element attributes in SGML and XML.
- General metadata in RDF.
- Some kinds of database systems
- OpenStreetMap map data
Some computer languages implement attribute-value pairs, or more frequently collections of attribute-value pairs, as standard language features. Most of these implement the general model of an associative array: an unordered list of unique attributes with associated values. As a result, they are not fully general; they cannot be used, for example, to implement electronic mail headers (which are ordered and non-unique).
- A name–value pair, key–value pair, field–value pair or attribute–value pair is a fundamental data representation in computing systems and applications. Designers often desire an open-ended data structure that allows for future extension without modifying existing code or data. In such situations, all or part of the data model may be expressed as a collection of tuples <attribute name, value>; each element is an attribute–value pair. Depending on the particular application and the implementation chosen by programmers, attribute names may or may not be unique.