Skip to contents

A term is an S7 class to reflect an RDF term. In RDF, vocabularies are sets of terms used to describe things. A term is either a class or a property. In practice, term is a thin wrapper around function.

Usage

term(x, hint = "")

Arguments

x

function to be decorated to term.

hint

Character scalar. Used to print nicer information for generated functions.

Value

an object of class term.

Slots

hint

Character scalar. Used to print nicer information for generated functions.

Examples

term
#> <pallas::term> class
#> @ parent     : <function>
#> @ constructor: function(x, hint) {...}
#> @ validator  : <NULL>
#> @ properties :
#>  $ hint: <character>