Bottom Up Data Traceability using UI
Last updated
Last updated
Statistics Definition โ a template which specifies schema/document fields, rules and formulas for creation of the Statistics.
Statistics Assessment โ a generated result/instance of the statistics (based on the definition) for a given collection of VC documents
Define new Statistics by specifying mandatory parameters:
Name โ the name of the statistic, this will be displayed in the statistics grid for users to choose from.
Policy โ the policy to which this statistic is related to. All data used in the statistics assessment will from documents produced by projects governed by this policy.
Statistics definition is configured via the corresponding configuration wizard.
1.3.1 Generic configuration options
1.3.2 Specifying data schemas and fields
To retrieve data from documents for use in the statistics Guardian relies on the schema and field specifications.
The main tool for their configuration is the โschema tree viewโ of the policy as shown below, which allows the identification of the needed fields by browsing and search.
1.3.2.1 Search
Field names and/or property names can be used in the search for lookup and identification of the target fields.
1.3.2.2 Selecting the fields
Selecting a schema โboxโ in the tree pop-ups a right-hand panel where the list of fields in the selected schema is displayed. The interface allows for the selection of multiple fields using checkboxes.
Note: The right-hand panel always shows fields from the parent (or top-level) schemas, which are directly used by Guardian Policies to generate documents. As sub-schemas do not map to their own stand-alone documents (they are embedded into the parent schemas), when a sub-schema is selected in the tree view the right hand-panel display also includes fields from the parent document for clarity.
1.3.2.3 Properties
By default files are searched and displayed by description. Users can navigate to the Select Properties tab to switch to search and display by Properties.
Note: for fields which do not have defined Properties the UI instead shows their description fields in greyed out text.
1.3.2.4 Document selection
In addition to fields, for each target schema users must specify rules for selecting the target documents which conforms to the schemas. On the basis of these rules Guardian would compose 2 lists:
Main โ these documents would be listed for user selection when creating Statistics Assessments. These are the documents that provide source data for statistics calculations.
Relationships โ contains the list of dependent documents for the main document.
Document selections settings:
Main โ each document conforming to this schema will be placed into the Main list to be available for use in creating Assessments.
Note: There must be at least a single schema marked as Main. Nominating more than one schema as Main for a single Assessment is not recommended.
Related โ if the schema is marked as related, for each Main document Guardian will find documents conforming to this schema and which are linked to the main document via the relationships field. The link does not have to be direct.
Unrelated โ all documents of this schema will be considered to be related to each Main document irrespectively whether they are linked or not.
Example: there are 3 schemas: device, organization, Standard Registry (SR) which issued this policy. For our device statistics, fields from the organization and SR schemas are also required. In this case: device schema - Main, organisation schema - Related, and SR schema - unrelated.
1.3.3 Configuring formulas and scores
The final step in statistics configuration is to configure the outputs of the statistics calculation.
1.3.3.1 Input Fields
The list of source fields and schemas, selected in the previous steps, their short identifiers serve to simplify the use in formulas.
1.3.3.2 Scores
Questions with lists of possible answers and their matching numerical scores. The creator of the Assessment would be required to select one of the answers after reviewing the content of the fields in the target documents.
Description โ text of the question
Relationships โ the list of the dependent fields from Input Fields. These fields would be shown with the question when the assessment is created. This fields are here for clarity - to assist the user and make the selection and later scoring simpler.
Options
Answer options, the associated numerical values are used in the formula[s].
1.3.3.3 Output Fields (Formulas)
Output fields, which contain the results of the calculations as specified by the corresponding formulas. Guardian supports https://mathjs.org/ syntax and Excel functions in the scope implemented in https://formulajs.info/functions/.
The values from the ID column (short names) of Input Fields and Scores can be used as variables in these formulas.
1.3.3.4 Preview
A sort of โdry-runโ mode for Formulas, useful for testing and validation of the correctness of formula specifications with test data.
In this view users can manually fill out the test data and verify that the formula calculates the expected value.
The changes to the Statistics Definition are saved once the โApply Changesโ button is pressed.
To enable the use of Definitions for creating Assessments of real data, they need to be published.
Published Definitions can be used for creating an Assessment by pressing the Create button for the corresponding Statistics Definition which launches the Assessment wizard.
3.1.1 Target documents
Users are presented with the choice of documents to select for the Assessment, this list contains all documents nominated as Main in the Statistics Definition.
3.1.2 Preview
The wizard then displays the relevant fields from the documents (which are configured in Rules in the Statistics Definition).
3.1.3 Scores
Users are then required to โscoreโ the questions (if questions and options for answers were configured in the Statistics Definition).
3.1.4 Statistics
Guardian calculates and presents the Assessment result. To confirm, create, and publish the document users need to press the Create button.
Existing Assessments can be found in the corresponding grid.
3.2.1 General information
Technical information about the selected Statistics, its Policy, Hedera Topic, Hedera message, the document, etc is presented in the Overview tab.
3.2.2 Document
The document content is viewable from the Document tab.
3.2.3 Links
Related documents can be browsed and viewed from the Relationships tab.
The detailed view of the related document.
Example Hedera message on the publication of a new Statistics Definition
Example Hedera message on the publication of a new Statistics Assessment