Text DataType

The Text type represents a string of Unicode characters. It is the most basic textual data type.

Definition

Type URL https://rustybeam.net/schema/Text
Base Type text
Default Pattern .* (matches any string)

Usage in Property Definitions

When defining a property with Text type:

<tr itemscope itemtype="https://rustybeam.net/schema/Property">
    <td><span itemprop="name">username</span></td>
    <td><span itemprop="type">Text</span></td>
    <td><span itemprop="cardinality">1</span></td>
    <td><span itemprop="description">The user's name</span></td>
</tr>

Usage in Data

When using a Text property in actual data:

<span itemprop="username">John Doe</span>

Validation

By default, any string value is valid. Validation software should:

  1. Check that the value is a string
  2. Apply the validation pattern (default: .*)
  3. Apply any additional constraints if specified

See Also