Profile: Profile class

ProfileR Documentation

Profile class

Description

Class to represent a JSON Schema profile from the Profiles Registry.

Usage

# Profile$load(profile)

Arguments

profile

String: the name of a profile from the registry or a URL pointing to a JSON Schema.

Format

R6Class object.

Value

Object of class R6Class.

Methods

Profile$new(descriptor = descriptor)

Use Profile$load to instantiate a Profile class.

validate(descriptor)

Validate a tabular data package descriptor against the Profile.

descriptor

The dereferenced tabular data package descriptor to validate.

Return value

Returns TRUE if the descriptor is valid; otherwise returns FALSE with an error message.

Properties

name

Returns the profile name, if available.

jsonschema

Returns the contents of the profile's JSON Schema.

See Also

Profile Specifications


frictionlessdata/tableschema-r documentation built on April 13, 2025, 3:51 p.m.