LiteralContent class

Represents the content for building an RDF Literal.

Use the default constructor for a value that will be combined with a datatype, or LiteralContent.withLanguage for a language-tagged string.

Constructors

LiteralContent(String value)
Creates content for a literal that will be combined with a datatype.
const
LiteralContent.withLanguage(String value, String? language)
Creates content for a language-tagged string literal.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
language String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

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

Operators

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

Static Methods

fromLiteralTerm(LiteralTerm term) LiteralContent