Added a data_source term.

This commit is contained in:
mbsantiago 2025-04-19 12:24:38 +01:00
parent dfd14df7b9
commit 355847346e

View File

@ -25,6 +25,7 @@ from batdetect2.configs import load_config
__all__ = [ __all__ = [
"call_type", "call_type",
"individual", "individual",
"data_source",
"get_tag_from_info", "get_tag_from_info",
"TermInfo", "TermInfo",
"TagInfo", "TagInfo",
@ -35,6 +36,16 @@ __all__ = [
GENERIC_CLASS_KEY = "class" GENERIC_CLASS_KEY = "class"
data_source = data.Term(
name="soundevent:data_source",
label="Data Source",
definition=(
"A unique identifier for the source of the data, typically "
"representing the project, site, or deployment context."
),
)
call_type = data.Term( call_type = data.Term(
name="soundevent:call_type", name="soundevent:call_type",
label="Call Type", label="Call Type",
@ -225,6 +236,7 @@ term_registry = TermRegistry(
*getmembers(terms, lambda x: isinstance(x, data.Term)), *getmembers(terms, lambda x: isinstance(x, data.Term)),
("call_type", call_type), ("call_type", call_type),
("individual", individual), ("individual", individual),
("data_source", data_source),
(GENERIC_CLASS_KEY, generic_class), (GENERIC_CLASS_KEY, generic_class),
] ]
) )