Models

Literal Value

The LiteralValue model represents a literal value with an optional datatype URI.

See the documentation for the Literal Value concept.

class LiteralValue(BaseModel):
    value: Any
    datatype: Optional[str] = None
AttributeTypeDescription
valueAnyThe actual value of the literal.
datatypeOptional[str]An optional URI specifying the datatype of the literal value. Defaults to None.