Class to represent JSON Schema profile from Profiles Registry.

# Profile.load(profile)

Format

R6Class object.

Value

Object of R6Class .

Methods

Profile$new(descriptor = descriptor)

Use Profile.load to instantiate Profile class.

validate(descriptor)

Validate a tabular data package descriptor against the Profile.

descriptor Retrieved and dereferenced tabular data package descriptor. (Object) Returns TRUE if descriptor is valid or FALSE with error message.

Properties

name

Returns profile name if available.

jsonschema

Returns profile JSON Schema contents.

See also

Methods

Public methods


Method new()

Usage

Profile$new(profile)

Arguments

profile

string profile name in registry or URL to JSON Schema


Method validate()

Usage

Profile$validate(descriptor)


Method clone()

The objects of this class are cloneable with this method.

Usage

Profile$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.