RdfDirection enum

Controls how RDF text direction is represented in JSON-LD output and how directional literals are interpreted during decoding.

See the JSON-LD 1.1 specification on base direction for background.

Inheritance
Available extensions

Values

i18nDatatype → const RdfDirection

Encode/decode text direction using the https://www.w3.org/ns/i18n# datatype convention.

A directional literal "text"@en with direction rtl is represented as a typed literal with datatype https://www.w3.org/ns/i18n#en_rtl.

compoundLiteral → const RdfDirection

Encode/decode text direction using compound literals — blank nodes with rdf:value, rdf:language, and rdf:direction properties.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromSpecString(String? value) RdfDirection?
Parses a JSON-LD spec string ('i18n-datatype' or 'compound-literal') into the corresponding enum value. Returns null for unrecognized input.

Constants

values → const List<RdfDirection>
A constant List of the values in this enum, in order of their declaration.