Create Framework
Last updated
Last updated
Before we get into details of how to create a new framework in Sunbird, its important to explain the concepts and differences between a Taxonomy and Framework. Both a taxonomy and framework describe the same domain. A taxonomy is an arrangement or division according to a predetermined system, while a framework is the resultant catalog that gives freedom for discussion, analysis and information retrieval. The framework extends the knowledge model of a taxonomy. The intent of creating a framework is to enable organizations organize their content in a structure which is easily discoverable. Within Sunbird, the main objective of the framework is to ensure that content creators have an easy interface to tag content with relevant metadata. Appropriate metadata allows user to search for content and get relevant results. Separating the taxonomy from its extension, in the form of framework(s) provides experts and pedagogues the power and flexibility to model and tag content. The framework consists of categories and terms within a specific domain.
Sunbird enables seamless access and discoverability of content through a framework. An organization can use existing framework categories (concepts) and terms (specifications) and further link them to their own framework.
Let us consider an example of an organization, ABC Organization, which works in the domain of water conservation and works with multiple NGOs, village panchayats, and district administration authorities in multiple states of India. They need to create the framework for the water management domain. Their framework will have terms associated with categories specific to the domain. The following example depicts the categories and terms specifically used for the water management framework:
FRAMEWORK NAME | CATEGORIES | TERMS |
---|---|---|
ABC Organization, may choose a predefined category and associate it to their own framework. Each category in the framework has terms associated with it. These terms are relevant to the created framework and can be created by the organization.
While creating a new framework, the framework creator needs to set up a new framework and align it to the categories and terms. A category can have terms either in sequential list or in hierarchical structure. Terms can be associated with other terms across categories. As a result, it is possible to select a term in the first category and hence restrict the set of available terms for the next category and so on. The organizations that are adopting Sunbird can link the categories and also change the labels but cannot override or add a new categories on their own. However, the Sunbird instance has the following categories in its predefined frameworks:
A user can select one or more category amongst the defined category.
For example, for the organization ABC organization the framework name is ABC and code as abc1; the category selected is Subject and the label is modified as Resources which defines the various water resources and contains the terms as Ground Water, Spring, Surface Water and so on.
An intialized Sunbird instance with channel
API Key to access Sunbird APIs. To create an API key refer How to generate a Sunbird API key
Software that can make API calls like curl or POSTMAN
Onboarding the following with access to the API
Admin user
Individual user
Individual Organization access
Map users to the organization
Access to Framework API
The sequence of tasks the organization administrator follows to create a framework includes:
Create Framework
Use the Create Framework API, to create a new framework. Specify values for the parameters in the request body of the API. Following is an example of request body for creating a framework, the sample values provided in the request body are indicative:
Path for creating the Framework: /framework/v1/create
Request Body to Create Framework
To retrieve the channels for the request parameter, use List Channel API
Description of Parameters
Name: The name of the framework as provided by the organization
Code: A user defined value that is used as the framework identifier
Description: Describes the framework
Translations: Enables framework in different languages
Type: defines the type of content
Response Body to Create Framework
Create Category
Use the Add Category API, to create a new category in the framework.
Note: You must send a request to Sunbird Team for creating new category.
The sample values provided in the request body are indicative. The API describes the procedure to change the label(resources) of an existing category (subject):
Path for creating category: /framework/v1/category/create?framework=abc1
Request Body to Create Categories
Response Body to Create Categories
Create a Term
Use the Add Term API, to create a new term in the category. The categories can be retrieved and listed using Fetch API. The sample values provided in the request body are indicative.
Path for creating category: /framework/v1/term/create?framework=abc1&category=subject
Request Body to Add Terms
Response Body to Add Terms
Framework- A structure designed to define the scope of something. On Sunbird, the framework is defined through a string of vocabularies
ABC
Resources
Ground Water, Spring, Surface Water
Governance
Ground Water, Spring, Surface Water
Measurement & Mapping
Ground Water, Spring, Surface Water
Funds
State, Central, Global
Management
Ground Water, Spring, Surface Water