Skip to main content

Metadata components

Similarly to how the dashboard components can be modified and added to display various kinds of information, Metadata components behave in the same way for the visualization of data fields of the metadata of a cell table.

Example - Adding a new component

We are goint to add a tag component to show the boolean match data field for each candidate entity retrieved with a reconciliator.

Each reconciliator has its own specific configuration. In the index.js file a metaToView property can be specified to map a data field of a returned candidate entity object to a React component, just like the dashboard view.

services/reconciliators/asiaGeonames
export default {
private: {
endpoint: process.env.ASIA_RECONCILIATION
},
public: {
name: 'ASIA (geonames)',
prefix: 'geo',
relativeUrl: '/asia/geonames',
description: 'Reconcile entities to Geonames using ASIA.',
uri: 'http://www.geonames.org/',
metaToView: {
id: {
label: 'ID',
},
name: {
label: 'Name',
type: 'link'
},
...,
// let's add a new data field called 'match' of type 'tag'
match: {
label: 'Match',
type: 'tag'
}
}
}
}

The result obtained will be the following: