smia_ism.external_infrastructures.aas_repository_infrastructure module

class smia_ism.external_infrastructures.aas_repository_infrastructure.AASRepositoryInfrastructure[source]

Bases: object

Class to store information about the SMIA KB infrastructure.

AAS_OPEN_API_VERSION = '/api/v3'
AAS_OPEN_API_COMMON_HEADERS = {'Accept': 'application/json'}
classmethod get_ip_address()[source]
classmethod set_ip_address_host(ip_address)[source]
classmethod set_ip_address(ip_address)[source]
classmethod get_port()[source]
classmethod set_port(port)[source]
classmethod get_aas_repository_url()[source]
classmethod get_all_aas_json_url()[source]
classmethod get_aas_json_url_by_id(aas_id)[source]

This method returns the URL to obtain the information of a specific AAS in JSON format. The AAS identifier must be added in Base64-URL-encoded.

classmethod get_submodel_json_url_by_id(submodel_id)[source]

This method returns the URL to obtain the information of a specific Submodel in JSON format. The Submodel identifier must be added in Base64-URL-encoded.

static clean_aas_json_information(data)[source]

This method removes all the data from previous versions of the AAS meta-model so that it can be read by BaSyx SDK. For instance, the attribute ‘Referable/Category’ is deprecated, so it must be removed if it is defined.