Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Data Range"

Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
This page describes the concept of an [[Attribute Value Datatype]].
+
This page describes the concept of an [[Data Range]].
  
 
== Definition ==
 
== Definition ==
* The datatype of a value of an [[Attribute]]
+
* The datatype and [optionally] constraints on the value of an [[Attribute]]
* An [[Attribute Value Datatype]] is EITHER
+
* An [[Data Range]] MUST have a base XML Schema type (e.g. String)
** an XML Schema type (e.g. String)
+
* An [[Data Range]] MAY include a set of constraint "facets" on its value(s). The names and semantics of these facets are taken from XML Schema. They include:
** a specialization of a base XML Schema type (e.g. String)  
+
* An [[Attribute Value Datatype]] MAY include a set of constraints on its value(s) including:
+
 
** Value must be one of {"red", "green", "blue"}
 
** Value must be one of {"red", "green", "blue"}
 
** Syntax constraints (e.g. regular expression)
 
** Syntax constraints (e.g. regular expression)
 
** ranges (e.g. less than 5, more than 100)
 
** ranges (e.g. less than 5, more than 100)
** matching rules
 
 
<to be completed>
 
<to be completed>
  
 
== Examples ==
 
== Examples ==
* An [[Attribute]] might have a value whose [[Attribute Value Datatype]] was (XML Schema) string
+
* An [[Attribute]] might have a value whose [[Data Range]] was defined in the [[Context]]s schema as "telephone number". This telephone number [[Data Range]] might have a base type of (XML Schema) string, but might also have an XML Schema ''pattern'' facet that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN)
* An [[Attribute]] might have a value whose [[Attribute Value Datatype]] was defined in the [[Context]]s schema as "telephone number". This telephone number type might have a base type of (XML Schema) string, but might also have an XML Schema ''pattern'' restriction that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN)
+
  
 
== Predefined [[Attribute Value Datatype]]s ==
 
== Predefined [[Attribute Value Datatype]]s ==

Revision as of 17:22, 12 February 2008

Introduction

This page describes the concept of an Data Range.

Definition

  • The datatype and [optionally] constraints on the value of an Attribute
  • An Data Range MUST have a base XML Schema type (e.g. String)
  • An Data Range MAY include a set of constraint "facets" on its value(s). The names and semantics of these facets are taken from XML Schema. They include:
    • Value must be one of {"red", "green", "blue"}
    • Syntax constraints (e.g. regular expression)
    • ranges (e.g. less than 5, more than 100)

<to be completed>

Examples

  • An Attribute might have a value whose Data Range was defined in the Contexts schema as "telephone number". This telephone number Data Range might have a base type of (XML Schema) string, but might also have an XML Schema pattern facet that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN)

Predefined Attribute Value Datatypes

The following are predefined in HOWL:

  1. ContextIdDatatype
  2. NodeIdDatatype
  3. NodeRelationDatatype

See Also

Links

Back to the top