get_valid_values_from_json_schema: Retrieve valid subclasses of a value in a JSON-LD schema

View source: R/assign_study_data_types.R

get_valid_values_from_json_schemaR Documentation

Retrieve valid subclasses of a value in a JSON-LD schema

Description

Retrieve valid subclasses of a value in a JSON-LD schema generated by schematic.

Usage

get_valid_values_from_json_schema(
  schema_url =
    "https://raw.githubusercontent.com/nf-osi/nf-metadata-dictionary/main/NF.jsonld",
  parent_name = "DataType",
  parent_context = "bts"
)

Arguments

schema_url

Default: the NF-OSI JSON-LD schema.

parent_name

Default = DataType. The value for which you'd like to find the associated subclasses.

parent_context

Default = bts. The JSON-LD context for the value in question.

Value

A character vector of values.


nf-osi/nfportalutils documentation built on Feb. 26, 2024, 1:05 p.m.