Skip to content

eamena-project/eamena-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eamena-functions

Functions for EAMENA data management

type of functions

type description
reference_data reference_data.py
business_data business_data.py

reference_data

UUIDs

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 UUID 34cfea90-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, and business_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  ##
####################################################################################################################

About

Functions for EAMENA data management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published