GRC Schema

Data types

Every datatype a property can carry, and how it renders in published schema JSON.

NameDescription
AlgorithmA process or set of rules to be followed in calculations or other problem-solving operations.
AnyA special datatype used for values that are dynamic and/or varies.
ArrayA collection of Things.
BinaryBinary numeric data type.
BooleanA binary variable, having two possible values called "true" and "false".
CharThe grapheme for a single Latin letter.
ClassA class or type.
ContextThe URL to find the JSON-LD for the element.
DataTypeThe basic data types such as Integeters, Strings, etc.
DateA date value in ISO 8601 date format. See https://www.w3.org/TR/xmlschema11-2/#date.
DatetimeA combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] See https://www.w3.org/TR/xmlschema11-2/#dateTime.
DecimalA real number expressed using decimal numerals.
DomainNameAn internationalized Internet domain name string formatted according to RFC 1035. See https://datatracker.ietf.org/doc/html/rfc1035
EmailAn email address string formatted according to RFC 6531. See https://tools.ietf.org/htmlrfc6531.
EndPointThe URL to find the API endpoint.
HexThe hexadecimal numeric type.
HostnameAn internationalized Internet host name string formatted according to section 2.3.2.3 of RFC 5890. See https://tools.ietf.org/html/rfc5890#section-2.3.2.3.
IDThe queryable URL to find the designated record.
IntegerA whole number; a number that is not a fraction.
IPAddressA 32-bit numeric address written as four numbers separated by periods. Each number can be zero to 255.
LocalDatetimeA string containing a date and time formatted according to date-time as defined RFC3339. See https://tools.ietf.org/html/rfc3339#section-5.6.
NegativeIntegerAn integer value that is less than 0.
NumericDigits expressed as a number or numbers.
ObjectA collection of fields.
Paginated ListA listing of items in paginated form.
PositiveIntegerAn integer value that is equal to or greater than 1.
StringAny sequence of Unicode characters, inserted between double quotes.
StubAn Object reference to a Thing.
TelephoneNumberHolds international telephone numbers based on the RFC 3966 standard. See https://tools.ieft/org/html/rfc3966.
TextFreeform text.
ThingA top-level addressable type definition. The property's name (e.g. Person, Regulation) becomes the @type in JSON-LD output. This is the GRC Schema datatype label for "this property defines its own type" — it does not literally emit @type:Thing in the output.
UnicodeThe unicode code numeric data type.
URIUniform Resource Identifier (URI) is a unique sequence of characters that identifies a logical or physical resource used by web technologies.
URLHolds URIs, URNs, and URLs as defined in RFC1738. See https://www.w3.org/TR/WD-html40-970708/htmlweb.html.
YearThe four digit date value for a given year. See https://www.w3.org/TR/xmlschema11-2/#date.