Namespace: factory

belhop. factory

This namespace contains functions to create BEL and BELHop types.

Namespaces

annotations
options

Methods

Create a callback. See the type this factory produces for more.

Name Type Description
success function

Function to call on success

error function

Function to call on error

See:
Returns:
Type Description
belhop.Callback the BELHop type produced by this factory

Create a callback that treats errors as a no-op. See the type this factory produces for more.

Name Type Description
success function

Function to call on success

See:
Returns:
Type Description
belhop.Callback the BELHop type produced by this factory

Create a callback that treats success as a no-op. See the type this factory produces for more.

Name Type Description
error function

Function to call on error

See:
Returns:
Type Description
belhop.Callback the BELHop type produced by this factory

staticbelhop.factory.citation(id, type, name, date, authors, comment) {belhop.Citation}

Citation factory. See the type this factory produces for more.

Name Type Description
id string | number

Refer to the factory type

type string

Refer to the factory type

name string optional nullable

Refer to the factory type

date string optional nullable

Refer to the factory type

authors Array.<string> optional nullable

Refer to the factory type

comment string optional nullable

Refer to the factory type

Returns:
Type Description
belhop.Citation the BELHop type produced by this factory

staticbelhop.factory.evidence(stmt, citation, ctxt, summary, meta) {belhop.Evidence}

Evidence factory. See the type this factory produces for more.

Name Type Description
stmt string

Refer to the factory type

citation belhop.Citation

Refer to the factory type

ctxt object optional nullable

Refer to the factory type

summary string optional nullable

Refer to the factory type

meta object optional nullable

Refer to the factory type

Returns:
Type Description
belhop.Evidence the BELHop type produced by this factory

staticbelhop.factory.facet(count, category, name, value) {belhop.Facet}

Facet factory. See the type this factory produces for more.

Name Type Description
count number
category string
name string
value string
Returns:
Type Description
belhop.Facet the BELHop type produced by this factory