add_linkDefinition: Add a level definition. (A copy of the emuR function)

add_linkDefinitionR Documentation

Add a level definition. (A copy of the emuR function)

Description

Add / List / Remove new link definition to / of / from emuDB. A link definition specifies the relationship between two levels, the super-level and the sub-level. The entirety of all link definitions of a emuDB specifies the hierarchical structure of the database. For more information on the structural elements of an emuDB see vignette(emuDB).

Usage

add_linkDefinition(emuDBhandle, type, superlevelName, sublevelName)

Arguments

emuDBhandle

emuDB handle as returned by load_emuDB

type

type of linkDefinition (either "ONE_TO_MANY", "MANY_TO_MANY" or "ONE_TO_ONE")

superlevelName

name of super-level of linkDefinition

sublevelName

name of sub-level of linkDefinition

Details

Link type descriptions:

  • "ONE_TO_MANY"A single ITEM of the super-level can be linked to multiple ITEMs of the sub-level

  • "MANY_TO_MANY"Multiple ITEMs of the super-level can be linked to multiple ITEMs of the sub-level

  • "ONE_TO_ONE"A single ITEM of the super-level can be linked to a single ITEM of the sub-level

For all link types the rule applies that no links are allowed to cross any other links. Further, a linkDefinition can not be removed, if there are links present in the emuDB.

See Also

emuR::add_linkDefinition


humlab-speech/reindeer documentation built on May 21, 2023, 4:43 p.m.