Learn R Programming

datapackage.r (version 1.3.5)

Profile: Profile class

Description

Class to represent JSON Schema profile from Profiles Registry.

Usage

# Profile.load(profile)

Arguments

Value

Object of R6Class .

Format

R6Class object.

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.

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.

See Also

Profile Specifications