This namespace contains functions to create BEL and BELHop types.
Namespaces
Methods
-
staticbelhop.factory.callback(success, error) {belhop.Callback}
-
Create a callback. See the
typethis factory produces for more.Name Type Description successfunction Function to call on success
errorfunction Function to call on error
Returns:
Type Description belhop.Callback the BELHop type produced by this factory -
staticbelhop.factory.callbackNoErrors(success) {belhop.Callback}
-
Create a callback that treats errors as a no-op. See the
typethis factory produces for more.Name Type Description successfunction Function to call on success
Returns:
Type Description belhop.Callback the BELHop type produced by this factory -
staticbelhop.factory.callbackNoSuccess(error) {belhop.Callback}
-
Create a callback that treats success as a no-op. See the
typethis factory produces for more.Name Type Description errorfunction Function to call on error
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
typethis factory produces for more.Name Type Description idstring | number Refer to the factory type
typestring Refer to the factory type
namestring optional nullable Refer to the factory type
datestring optional nullable Refer to the factory type
authorsArray.<string> optional nullable Refer to the factory type
commentstring 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
typethis factory produces for more.Name Type Description stmtstring Refer to the factory type
citationbelhop.Citation Refer to the factory type
ctxtobject optional nullable Refer to the factory type
summarystring optional nullable Refer to the factory type
metaobject 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
typethis factory produces for more.Name Type Description countnumber categorystring namestring valuestring Returns:
Type Description belhop.Facet the BELHop type produced by this factory