Description Usage Arguments Details Value See Also Examples
literal
constructs a literal
object.
1 | literal(text_value, xsd_type, lang)
|
text_value |
|
xsd_type |
|
lang |
|
If for some reason the supplied text value is meaningless (empty string, just spaces, invalid type, etc.), the returned object is the equivalent of NA
a literal
object, which is a list
with the
following fields:
text_value
character
The textual value of literal.
xsd_type
identifier
The XSD type.
lang
character
The language code.
squote
character
The value with added quotes and
types, e.g. "'John'^^xsd:string"
Other literal functions: is.literal
,
print.literal
,
represent.literal
1 2 3 4 5 6 7 8 9 | lking_lear = literal(text_value = "King Lear", lang = "en")
lshakespeare = literal(text_value = "Shakespeare")
l1599 = literal(text_value = "1599", xsd_type = xsd_integer)
lking_lear
lshakespeare
l1599
# see vignette
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.