Functions for EAMENA data management
type | description |
---|---|
reference_data | reference_data.py |
business_data | business_data.py |
Run the Python function nodes_uuids() on a RM (JSON) or a file of concepts (XML) to collect the UUIDs of the nodes
- RM (example)
df_nodes = nodes_uuids(choice = "rm", rm = "https://raw.githubusercontent.com/eamena-project/eamena/master/eamena/pkg/graphs/resource_models/Heritage%20Place.json")
file_path = "C:/Rprojects/eamenaR/inst/extdata/ids_temp.csv"
df_nodes.to_csv(file_path, sep=',', index=False)
Gives this ids_temp.csv file. Such a mapping table can be used in the eamenaR package
- concepts (example)
nodes_uuids(choice = "concept")
Gives the concepts_readonly.tsv listing
Note: Fieldnames (ex: "Effect type") have UUIDs. To check these correspondances, check the
nodeid
in the RM. For example, the "Effect type" field has the UUID34cfea90-c2c0-11ea-9026-02e7594ce0a0
(see its fieldname and uuid).
TODO:
- add all reference data based function in only one script:
reference_data.py
for reference data, andbusiness_data
for business data
##################################################################################################################
## renamed, adapted and moved to https://github.com/eamena-project/eamena-functions/tree/main/reference_data.py ##
## renamed, adapted and moved to https://github.com/eamena-project/eamena-functions/tree/main/business_data.py ##
####################################################################################################################
- archive all previous scripts (
grids.py
,https://github.com/eamena-project/eamena-arches-dev/blob/main/dbs/database.eamena/data/reference_data/uuids/nodes_uuids.py, etc.)