# `RDF.XSD`
[🔗](https://github.com/rdf-elixir/rdf-ex/blob/v3.0.1/lib/rdf/xsd/xsd.ex#L1)

An implementation of the XML Schema (XSD) datatype system for use within `RDF.Literal.Datatype` system.

It consists of

- `RDF.XSD.Datatype`: a more specialized `RDF.Literal.Datatype` behaviour for XSD datatypes
- `RDF.XSD.Datatype.Primitive`: macros for the definition of `RDF.Literal.Datatype` and
  `RDF.XSD.Datatype` implementations for primitive XSD datatypes
- `RDF.XSD.Datatype.Restriction`: macros for the definition of `RDF.Literal.Datatype` and
  `RDF.XSD.Datatype` implementations for derived XSD datatypes
- `RDF.XSD.Facet`: a behaviour for XSD facets which can be used to constrain values on
  datatype derivations

see <https://www.w3.org/TR/xmlschema11-2/>

# `any_uri`

# `any_uri`

# `anyURI`

# `anyURI`

# `base64_binary`

# `base64_binary`

# `base64Binary`

# `base64Binary`

# `boolean`

# `boolean`

# `byte`

# `byte`

# `datatype?`

Returns if the given value is a `RDF.XSD.Datatype` struct or `RDF.Literal` with a `RDF.XSD.Datatype`.

# `date`

# `date`

# `date_time`

# `date_time`

# `dateTime`

# `dateTime`

# `datetime`

# `datetime`

# `decimal`

# `decimal`

# `double`

# `double`

# `facet`

Get a `RDF.XSD.Facet` by its name.

# `facets`

```elixir
@spec facets() :: Enum.t()
```

The list of all XSD facets.

# `false`

# `float`

# `float`

# `int`

# `int`

# `integer`

# `integer`

# `long`

# `long`

# `negative_integer`

# `negative_integer`

# `negativeInteger`

# `negativeInteger`

# `non_negative_integer`

# `non_negative_integer`

# `non_positive_integer`

# `non_positive_integer`

# `nonNegativeInteger`

# `nonNegativeInteger`

# `nonPositiveInteger`

# `nonPositiveInteger`

# `positive_integer`

# `positive_integer`

# `positiveInteger`

# `positiveInteger`

# `short`

# `short`

# `string`

# `string`

# `time`

# `time`

# `true`

# `unsigned_byte`

# `unsigned_byte`

# `unsigned_int`

# `unsigned_int`

# `unsigned_long`

# `unsigned_long`

# `unsigned_short`

# `unsigned_short`

# `unsignedByte`

# `unsignedByte`

# `unsignedInt`

# `unsignedInt`

# `unsignedLong`

# `unsignedLong`

# `unsignedShort`

# `unsignedShort`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
