Boolean DataType

The Boolean type represents true/false values.

Definition

Type URL https://rustybeam.net/schema/Boolean
Base Type boolean
Default Pattern ^(true|false|1|0|yes|no|on|off)$
Constraints {"case_insensitive": true}

Accepted Values

The validation pattern accepts (case-insensitive):

Usage in Property Definitions

<tr itemscope itemtype="https://rustybeam.net/schema/Property">
    <td><span itemprop="name">isActive</span></td>
    <td><span itemprop="type">Boolean</span></td>
    <td><span itemprop="cardinality">1</span></td>
    <td><span itemprop="description">Whether the account is active</span></td>
</tr>

Usage in Data

<meta itemprop="isActive" content="true">

Note: For boolean values in HTML, use <meta> tags with the content attribute, or store the value in element text content.

Normalization

Validation software should normalize all accepted values to canonical true or false:

See Also