Categories:
Kernel configuration for URM Global script
Guidelines for the configuration of the script URM Global in Kernel
Introduction
Aura NLP dictionaries can now be generated and configured using the URM Global script build_local_catalogs_etl.sh.
In order to have a correct behavior for the URM data extraction used in the global script, it is necessary to execute the tasks defined in the following sections, that are a particularization of the general guidelines “Kernel configuration: General steps”.
1. Check APIs publication in Kernel
-
Check that the directsql:query API is published in Kernel: List of available APIS on Telefónica Kernel.
-
If not, follow the guidelines in the document Publish an API in Kernel.
2. Check datasets publication in Kernel
-
Check that the required datasets for the configuration of the URM Global script are published in Kernel: List of available datasets on Telefónica Kernel.
- D_Gbl_Video_Content_Type
- Video_Content
- D_Gbl_Video_Staff_Role
- Video_Content_Staff_Rel
- D_Video_Staff_Role
- D_Video_Staff
3. Create a Kernel application
A Kernel application with the name aura-cognitive-trainings must be created and configured with specific scopes.
- Ask the Kernel Team to create the new application in Kernel:
"id": "aura-cognitive-trainings"
Once the app is created, two parameters will be provided for securely accessing:
- client_id: unique identifier of the consuming app acting as Kernel API client.
- client_secret: password.
4. Assign purpose/scopes to the application
-
No purpose is required, as datasets do not include personal information.
-
Ask the Kernel Team to assign the following scopes to the application:
- data:Video_Content:read
- data:Video_Content_Staff_Rel:read
- data:D_Video_Staff:read
- data:D_Video_Content_Category:read
- data:D_Video_Staff_Role:read
- data:D_Video_Age_Rating:read
- data:D_Gbl_Video_Content_Category:read
- data:D_Gbl_Video_Staff_Role:read
- data:D_Gbl_Video_Content_Type:read
- data:D_Gbl_Video_Age_Rating:read
- directsql:query
5. Add other required fields
Provide the Kernel Team with other necessary fields, as shown in the code snippet.
The final file for the configuration of the application, including all the above-mentioned parameters, is shown below:
{
"name": "Data consumption for Aura Cognitive Trainings",
"grant_types": [
{
"authentication": "client_credentials"
"scopes": [
"data:Video_Content:read",
"data:Video_Content_Staff_Rel:read",
"data:D_Video_Staff:read",
"data:D_Video_Content_Category:read",
"data:D_Video_Staff_Role:read",
"data:D_Video_Age_Rating:read",
"data:D_Gbl_Video_Content_Category:read",
"data:D_Gbl_Video_Staff_Role:read",
"data:D_Gbl_Video_Content_Type:read",
"data:D_Gbl_Video_Age_Rating:read",
"directsql:query"
]
"purposes": []
"api": "directsql:query"
}
],
"description": "Aura cognitive application to consumption data of the kernel",
"raw_dataset_read": true,
"tags": {},
"encrypt_access_tokens": true,
"id": "aura-cognitive-trainings",
"requires_authorization_id": true,
"client_type": "CONFIDENTIAL",
"legal_entity_id": "telefonica",
"redirect_uris": []
}