A value is an approximation for a JSON-LD value, which can be a native JSON literal
(string, number, boolean) or a JSON object (value object, typed value). In the case
of strings with a direction or a language, the string value may be a value object
rather than a JSON literal.
This is a sealed abstract class because JSON-LD has a fixed number of values.
You will normally use a value constructor rather than the specific instances, i.e.
val stringValue: Value[String] = Value("some string")
val numValue: Value[Int] = Value(1)
A value is an approximation for a JSON-LD value, which can be a native JSON literal (string, number, boolean) or a JSON object (value object, typed value). In the case of strings with a direction or a language, the string value may be a value object rather than a JSON literal.
This is a sealed abstract class because JSON-LD has a fixed number of values.
You will normally use a value constructor rather than the specific instances, i.e.
the underlying scala type.