Procedures

Automation procedures in the YAML BDK Book.

to convert a yaml to a (text)

Convert a YAML concept into text

Input Concepts

Concept
Description
Type
Required
Default Value

The YAML concept

yaml

Yes

Output Concepts

Concept
Description
Type

text

The serialized YAML concept

text

Examples

Example 1: Convert the YAML concept into text

convert the yaml to a text

to delete or remove a (yaml)'s property

Remove a property in a YAML concept

Input Concepts

Concept
Description
Type
Required
Default Value

The YAML concept which contains the property to be removed

yaml

Yes

property

The name of the property to be removed

conceptual or text

Yes

Output Concepts

Concept
Description
Type

The updated YAML concept

yaml

Examples

Example 1: Remove the Year property

delete the yaml's year

to get a (yaml's property)

Retrieve a property by name from a YAML concept

Input Concepts

Concept
Description
Type
Required
Default Value

The YAML concept

yaml

Yes

property

The name of the property that should be retrieved from the YAML

conceptual or text

Yes

Output Concepts

Concept
Description
Type

yaml's property

The property that was retrieved from the YAML

boolean or list of any or number or text or yaml

Examples

Example 1: Retrieve the Movies property using exact match on the name Example 2: Retrieve the Movies property using natural language

    get yaml's "Movies"
    get yaml's movies

to get a yaml as a (file)

Convert a YAML concept into a file

Input Concepts

Concept
Description
Type
Required
Default Value

The YAML concept

yaml

Yes

Output Concepts

Concept
Description
Type

file

The file containing the serialized YAML concept

file

Examples

Example 1: Convert the YAML concept into a file

get the yaml as a file

to get a file as a (yaml)

Convert a file into a YAML concept

Input Concepts

Concept
Description
Type
Required
Default Value

file

The file that contains the serialized YAML concept

file

Yes

Output Concepts

Concept
Description
Type

The YAML concept

yaml

Examples

Example 1: Convert the file into a YAML concept

get the file as a yaml

to get a text as a (yaml)

Convert a text into a YAML concept

Input Concepts

Concept
Description
Type
Required
Default Value

text

The text to be converted

text

Yes

Output Concepts

Concept
Description
Type

The YAML concept

yaml

Examples

Example 1: Convert the text into a YAML concept

get the text as a yaml

to merge a (yaml) to another yaml

Merge two YAML concepts into a YAML concept.

Input Concepts

Concept
Description
Type
Required
Default Value

The first YAML concept

yaml

Yes

The second YAML concept

yaml

Yes

Output Concepts

Concept
Description
Type

The YAML concept that has been merged

yaml

Examples

Example 1: Merge the one YAML concept into another

merge the yaml to the other yaml

to set or change a (yaml)'s property to a value

Change a property in a YAML concept to a specific text value

Input Concepts

Concept
Description
Type
Required
Default Value

The YAML concept which contains the property to be changed

yaml

Yes

property

The name of the property to be changed

conceptual or text

Yes

value

The concept to be used as value for the property to be changed

boolean or list of any or number or text or yaml

Yes

Output Concepts

Concept
Description
Type

The updated YAML concept

yaml

Examples

Example 1: Change the Year property to 2000

set the yaml's year to 2000

Last updated

Was this helpful?