smia_ism.external_infrastructures.smia_kb_infrastructure module

class smia_ism.external_infrastructures.smia_kb_infrastructure.SMIAKBInfrastructure[source]

Bases: object

Class to store information about the SMIA KB infrastructure.

SMIA_KB_OPEN_API_VERSION = '/api/v3'
SMIA_KB_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_capability_url(capability_iri)[source]

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

classmethod get_capabilities_url()[source]

This method returns the URL to obtain the information of all Capabilities within SMIA KB in JSON format.

classmethod get_assets_of_capability_url(capability_iri)[source]

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

classmethod get_skills_url()[source]

This method returns the URL to obtain the information of all Skills within SMIA KB in JSON format.

classmethod get_smia_instances_url()[source]

This method returns the URL to obtain all the registered SMIA instances in the SMIA KB.

classmethod get_smia_instance_url(instance_id)[source]

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