Getting started with the Knowledge Accelerators

The Knowledge Accelerators components must first be loaded into Watson Knowledge Catalog before they can be customized.

A project administrator can import the Knowledge Accelerators into Watson Knowledge Catalog using REST API endpoints provided as part of the content and available to call through the Knowledge Accelerators OpenAPI user interface.

Figure 1. Knowledge Accelerators REST APIs user interface
Image showing the Knowledge Accelerators REST APIs user interface.
Tip: For details on how to install Watson Knowledge Catalog, please see the installing documentation.

Quick start

The following table outlines the main steps to import a Knowledge Accelerators artifact.

Step Action or API endpoint More details
KA OpenAPI user interface Append
v1/knowledge_accelerators/api/explorer/
to your IBM Cloud Pak for Data URL
Accessing the Knowledge Accelerators OpenAPI endpoints
Authenticate
POST
/icp4d-api/v1/authorize
Authenticating and Authorizing
Import POST
/v1/knowledge_accelerators/{ka_id}
/import_items
Importing the Knowledge Accelerators
Status of import GET
/v3/governance_artifact_types/
import/status/{process_id}
Checking the status of the import job

Watch this video describing how to import the Knowledge Accelerators.

This video provides a visual method as an alternative to following the written steps in this documentation.

Video disclaimer: Some minor steps and graphical elements in this video may differ from your Cloud Pak for Data deployment.

Detailed import instructions and other useful API endpoints

Requirements and permissions

The Knowledge Accelerators are available to import into Watson Knowledge Catalog, to IBM Cloud Pak for Data users with the following user permissions.

Required permissions
You must have this user permission to import the Knowledge Accelerators:
  • Manage governance categories

Accessing the Knowledge Accelerators OpenAPI endpoints

The REST API endpoints for your IBM Cloud Pak for Data instance can be found by appending v1/knowledge_accelerators/api/explorer/ to your IBM Cloud Pak for Data URL.
For example,
  • https://cpd-wkc.apps.host.company.com becomes https://cpd-wkc.apps.host.company.com/v1/knowledge_accelerators/api/explorer/
Tip: Descriptions of the API endpoints for the Knowledge Accelerators can be found at https://cloud.ibm.com/apidocs/watson-data-api-cpd#list-kas.

Choosing which Knowledge Accelerator items to import

There are two main options to consider when you are planning to import Knowledge Accelerators content.

Importing a selection of Business Scopes
A selection of Knowledge Accelerator Business Scopes are available to be imported separately, for example Data Privacy and other industry specific scopes. If one or more of these business scopes exists for an area you are interested in, and if you prefer to start with a relatively small number of business terms, for example 200 to 500 terms, then you can install one or more of these separate scopes.
Importing some or all of the Knowledge Accelerator vocabularies
The Knowledge Accelerators vocabularies exist for each of the four specific industries and contain the complete Business Vocabulary, Industry Alignment Vocabularies, and all the Business Scopes. You can choose to import all or a selection of these vocabularies. If there is a need to import an extensive set of business terms to address the breadth of an industry, for example 5,000 to 20,000 terms, then select this option.
For a detailed list of all available items for each industry, including a definition, the identifiers and more information, see the links below.

Authenticating and Authorizing

To authenticate with Cloud Pak for Data, you need to generate a bearer token. For more details, see Authentication.

  1. Generate your bearer token using the POST/icp4d-api/v1/authorize.
    1. Select POST/icp4d-api/v1/authorize call and click Try it out.
    2. Replace "string" with your username and api_key for example:
      {
        "username": "admin",
        "api_key": "your_api_key"
      }
      To get your API key, see Generating API keys for authentication.
      Tip: Alternatively, you can use your password as a way generate your bearer token. For example:
      {
        "username": "admin",
        "password": "your_password"
      }
    3. Click Execute. If successful, you get a response containing the token.
      Sample response:
      { 
      "_messageCode_": "200",
       "message": "Success",
       "token": "eyJhbGciOiJSUzI1.…..DOCtm5Mbzyg" 
      }
    4. Copy the token value which is between the quotes, for example:
      eyJhbGciOiJSUzI1.…..DOCtm5Mbzyg
  2. Click Authorize and in the Value: box, paste the bearer token value.
  3. Once authorized, click Close. The Authorize button shows a lock symbol.

Checking which items are available for import

To check which Knowledge Accelerators are available for import, call the GET /v1/knowledge_accelerators Get all Knowledge Accelerators API endpoint.
  1. Select GET /v1/knowledge_accelerators and click Try it out.
  2. Click Execute.
Response example:
{
  "count": 6,
  "knowledge_accelerators": [
    {
      "id": "kahc20",
      "name": "Knowledge Accelerator for Healthcare",
      "definition": "IBM Knowledge Accelerator for Healthcare
      Licensed Materials − Property of IBM 
      © Copyright IBM Corp. 2020, 2023. All Rights Reserved 
      Documentation for this offering https://www.ibm.com/docs/SSQNUZ_4.7.x/ka/ka-cpd.HTML 
      Notices for this offering https://www.ibm.com/docs/SSQNUZ_4.7.x/ka/notices.html ",
      "type": "knowledge_accelerator",
      "format": "wkc_glossary",
      "version": "…..
      …....

Checking which items are available for import per industry

To check which Knowledge Accelerators are available for import, call the GET /v1/knowledge_accelerators/{id} Get a specific Knowledge Accelerator API endpoint.
  1. Select GET /v1/knowledge_accelerators/{id} and click Try it out.
  2. Enter the id value for the Knowledge Accelerator industry. See the following table for valid values.
    Cross Industry Energy and Utilities Financial Services Healthcare Insurance
    kaci20
    kaeu20
    kafs20
    kahc20
    kain20
  3. Click Execute.
Response example:
{
  "id": "kafs20",
  "name": "Knowledge Accelerators",
  "definition": "A category that groups governance artifacts that are used across the 
Knowledge Accelerators.
Licensed Materials − Property of IBM 
© Copyright IBM Corp. 2020, 2023. All Rights Reserved
Documentation for this offering https://www.ibm.com/docs/SSQNUZ_4.7.x/ka/ka-cpd.html
Notices for this offering https://www.ibm.com/docs/SSQNUZ_4.7.x/ka/notices.html",
  "type": "knowledge_accelerator",…..
      …....

Checking which Knowledge Accelerators are already imported

To check whether any Knowledge Accelerators are imported into an instance of Watson Knowledge Catalog, call the GET/v1/knowledge_accelerators/import_items Get what Knowledge Accelerator items are currently imported into glossary API endpoint.
  1. Select GET /v1/knowledge_accelerators/import_items and click Try it out.
  2. Click Execute.
Response example:
{
  "message": "KA008I: The following knowledge accelerator items are imported",
  "import_evaluation": [
    {
      "knowledge_accelerator": "CPD_URL/v1/knowledge_accelerators/kaci20",
      "items": [
        {
          "id": "personal-data",
          "evaluation": "imported_at_undeterminable_version",
          "latest_version": "2.0.2023XX"

Importing the Knowledge Accelerators

To import Knowledge Accelerators items into an instance of Watson Knowledge Catalog, call the POST /v1/knowledge_accelerators/{ka_id}/import_items Import specified Knowledge Accelerator items into the glossary API endpoint.

  1. Choose the items you want to install. See Checking which items are available for import and Checking which items are available for import per industry.
    Tip: For each industry, you have the option of importing specific business scopes or the full industry Business Core Vocabulary and optional Industry Alignment Vocabularies. For a detailed list of all available items, including a definition, the identifiers and more information, see the links below.
  2. Select POST /v1/knowledge_accelerators/{ka_id}/import_items and click Try it out.
  3. Enter values for the following parameters.
    For example:
    Parameter Description Example
    ka_id The id for an industry kafs20
    ids The id for one or more Knowledge Accelerator items you want to import separated by a comma. Please note that you can only import one scope at a time. core-bpi,ccpa,fhir, gdpr
    merge_option The merge option to be used when importing into Watson Knowledge Catalog. all
    dependencies Indicates which dependencies of the item ids specified should also be imported. mandatory
    do_import
    • Select false to check the parameters and find out what will be imported.
    • Select true to import.
    false
  4. Click Execute.
  5. In the response, take note of the "process_id" as you can use this to check the status of the import job in the next section, Checking the status of the import job. It might be necessary or desirable to do this check, as sometimes the import can take some time, depending on the number and size of the items that were imported.
Note:
  • If you import multiple KA Business Scopes, some relationships from shared artifacts such as Policies and Rules to vocabulary Terms may be overwritten by a subsequent Business Scope import.
  • If you import the Knowledge Accelerators for multiple industries, relationships from shared artifacts such as Policies and Rules to vocabulary Terms may not be merged for the subsequent import - the mappings from the initially imported KA artifacts are retained. You may see some messages (GIM00010E or GIM00015E) in the import log relating to the Policies and Governance Rules, which can be ignored.

Checking the status of the import job

To check the status of the import, call the GET/v3/governance_artifact_types/import/status/{process_id} API endpoint where {process_id} is the value from Importing the Knowledge Accelerators.

The import status will remain "IN_PROGRESS" until all the artifacts have been imported.

Response examples:
  • "IN_PROGRESS": Import is in progress and shows what step number the process is at out of the total number of steps.
    ..."status": "IN_PROGRESS",
    ....
        "step_number": 32,
        "total_steps": 50,.....
  • "SUCCEEDED": Response shows how many artifacts were created or modified.
      "process_id": "ea29dd39-f46e-4a8f-beee-297b72d4f7f1",
      "status": "SUCCEEDED",
      "step_number": 50,
      "total_steps": 50,
  • "IMPORT_SYNCHRONIZATION": Synchronization process is complete and content is imported into Watson Knowledge Catalog.
          "process_id": "e0f4c893-54b3-40d6-8e35-42baded25333",
          "type": "IMPORT_SYNCHRONIZATION",
          "name": "Import synchronization process",
          "status": "SUCCEEDED",
          "percentage": 100,

Adding collaborators

You need to add collaborators to the Knowledge Accelerators categories, otherwise only the person who imports the accelerator can use the artifacts. See Managing access to a category for details on how to do this.

Copying into a project

Additionally, you can add the Knowledge Accelerators artifacts as CSV files in a Cloud Pak for Data project, by using the POST /v1/knowledge_accelerators/{ka_id}/copy_items Copy Knowledge Accelerator items into project API endpoint.
Tip:

The CSV files can be downloaded locally and the content can be imported with the Watson Knowledge Catalog user interface. For more information on how to use the CSV import in Watson Knowledge Catalog, see the Importing governance artifacts by type with CSV files.

  1. Select POST /v1/knowledge_accelerators/{ka_id}/copy_items and click Try it out.
  2. Enter the Knowledge Accelerator industry id, the id's for the items you wish to import and the project id and click Execute.

Summary of import steps and API endpoints

The import method and API endpoints are described in the following table.
Section Action or API endpoint Description
Requirements and permissions   The offering plan and user permissions required to import the Knowledge Accelerators.
Accessing the Knowledge Accelerators OpenAPI endpoints   How to access the REST API endpoints.
Choosing which Knowledge Accelerator items to import   Choosing which items artifacts to import for example, the separate Business Scopes or the complete Knowledge Accelerators Vocabulary.
Authenticating and Authorizing
POST
/icp4d-api/v1/authorize
Generates Bearer Token for use with Authorize button.
Checking which items are available for import GET
 /v1/knowledge_accelerators
Lists all the Knowledge Accelerators and items that can be imported along with statistics and dependencies.
Checking which items are available for import per industry GET
 /v1/knowledge_accelerators/
{id}
Lists all the items that can be imported for a particular industry, along with statistics and dependencies.
Checking which Knowledge Accelerators are already imported GET
/v1/knowledge_accelerators/
import_items
Lists any Knowledge Accelerators that are already imported into the Watson Knowledge Catalog instance.
Importing the Knowledge Accelerators POST
/v1/knowledge_accelerators/
import_items
Imports Knowledge Accelerator items.
Checking the status of the import job GET
/v3/governance_artifact_types/
import/status/{process_id}
Checks the status of an import.
Adding collaborators   Enables other users to access the artifacts.
Copying into a project POST /v1/knowledge_accelerators/{ka_id}/copy_items Copy Knowledge Accelerator items as CSV files into a project.