Number DataType

The Number type represents numeric values including integers and floating-point numbers.

Definition

Type URL https://rustybeam.net/schema/Number
Base Type number
Default Pattern ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
Constraints {"format": "JSON number format"}

Validation Pattern Explanation

The validation pattern accepts:

Usage in Property Definitions

<tr itemscope itemtype="https://rustybeam.net/schema/Property">
    <td><span itemprop="name">price</span></td>
    <td><span itemprop="type">Number</span></td>
    <td><span itemprop="cardinality">1</span></td>
    <td><span itemprop="description">The price in dollars</span></td>
</tr>

Usage in Data

<span itemprop="price">19.99</span>

See Also