Profile: Profile class

Description Usage Format Value Methods Properties Methods See Also

Description

Class to represent JSON Schema profile from Profiles Registry.

Usage

1
# 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.

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


datapackage.r documentation built on Jan. 11, 2022, 5:07 p.m.