How to enable federation
UI
In the configuration file config/bioportal_config_appliance.rb add/update $PORTAL_INSTANCES variable, all items with an apikey present we be enabled to be federate with.
$PORTALS_INSTANCES = [
{
name: 'AgroPortal',
ui: 'https://agroportal.lirmm.fr/',
color: '#3CB371',
api: 'https://data.agroportal.lirmm.fr',
apikey: 'you_api_key',
'light-color': '#F1F6FA'
},
{
name: 'BioPortal',
ui: 'https://bioportal.bioontology.org/',
color: '#234979'
},
{
name: 'SIFR BioPortal',
apikey: 'you_api_key',
color: '#74a9cb'
},
{
name: 'EcoPortal',
ui: 'https://ecoportal.lifewatch.eu/',
color: '#0F4E8A',
api: 'https://data.ecoportal.lifewatch.eu',
apikey: 'you_api_key',
'light-color': '#F0F5F6'
},
{
name: 'MedPortal',
ui: 'http://medportal.bmicc.cn/',
color: '#234979',
},
{
name: 'MatPortal',
ui: 'https://matportal.org/',
color: '#009574',
},
{
name: 'IndustryPortal',
ui: 'http://industryportal.enit.fr',
color: '#1c0f5d'
},
{
name: 'EarthPortal',
ui: 'https://earthportal.eu/',
color: '#1e2251',
api: 'https://data.earthportal.eu/',
apikey: "you_api_key",
'light-color': '#F0F5F6'
},
{
name: 'BiodivPortal',
ui: 'https://biodivportal.gfbio.org/',
color: '#349696',
api: 'https://data.biodivportal.gfbio.org/',
apikey: "you_api_key",
'light-color': '#EBF5F5',
}
]API
in the configuration file config/environments/appliance.rb add/edit this lines.
config.ui_name = 'TestPortal'
config.title = 'TestPortal'
config.description = "The home of ontologies and semantic artefacts in agri-food and related domains."
config.color = '#3CB371'
config.logo = 'https://ontoportal.org/images/logo.png'
config.fundedBy = [
{
img_src: 'https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg',
url: 'https://commission.europa.eu/research-and-innovation_en'
},
{
img_src: 'https://www.inrae.fr/themes/custom/inrae_socle/logo.svg',
url: 'https://www.inrae.fr/enm'
},
{
img_src: 'https://upload.wikimedia.org/wikipedia/commons/d/dc/CNR_Consiglio_Nazionale_delle_Ricerche_logo.png',
url: 'https://www.cnr.it/en',
},
{
img_src: 'https://identity.stanford.edu/wp-content/uploads/sites/3/2020/07/stanford-university-stacked.png',
url: 'https://www.stanford.edu'
}
]
config.federated_portals = {
agroportal: {
name: 'AgroPortal',
api: 'https://data.agroportal.lirmm.fr',
ui: 'https://agroportal.lirmm.fr/',
color: '#3CB371',
apikey: '1de0a270-29c5-4dda-b043-7c3580628cd5',
'light-color': '#F1F6FA',
},
bioportal: {
name: 'BioPortal',
ui: 'https://bioportal.bioontology.org/',
api: 'https://data.bioontology.org/',
color: '#234979',
'light-color': '#E9F2FA',
},
sifr: {
name: 'SIFR BioPortal',
ui: 'https://bioportal.lirmm.fr/',
color: '#74a9cb',
},
ecoportal: {
name: 'EcoPortal',
ui: 'https://ecoportal.lifewatch.eu/',
api: 'https://data.ecoportal.lifewatch.eu/',
apikey: "you_api_key",
color: '#2076C9',
'light-color': '#E9F2FA',
},
medportal: {
name: 'MedPortal',
ui: 'http://medportal.bmicc.cn/',
color: '#234979',
},
matportal: {
name: 'MatPortal',
ui: 'https://matportal.org/',
color: '#009574',
},
industryportal: {
name: 'IndustryPortal',
ui: 'http://industryportal.enit.fr',
color: '#1c0f5d',
},
earthportal: {
name: 'EarthPortal',
ui: 'https://earthportal.eu/',
api: 'https://data.earthportal.eu/',
apikey: "you_api_key",
color: '#404696',
'light-color': '#F0F5F6'
},
biodivportal: {
name: 'BiodivPortal',
ui: 'https://biodivportal.gfbio.org/',
api: 'https://data.biodivportal.gfbio.org/',
apikey: "you_api_key",
color: '#349696',
'light-color': '#EBF5F5',
}
}