# Federation configuration 

:::info
Moved the ontoportal documentation, this page will be removed soon

:::

# 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.

```ruby
$PORTALS_INSTANCES = [
  {
    name: 'AgroPortal',
    ui: 'https://agroportal.lirmm.fr/',
    color: '#3CB371',
    api: 'https://data.agroportal.lirmm.fr',
    apikey: '1de0a270-29c5-4dda-b043-7c3580628cd5',
    'light-color': '#F1F6FA'
  },
  {
    name: 'BioPortal',
    ui: 'https://bioportal.bioontology.org/',
    color: '#234979'
  },
  {
    name: 'SIFR BioPortal',
    apikey: '1de0a270-29c5-4dda-b043-7c3580628cd5',
    color: '#74a9cb'
  },
  {
    name: 'EcoPortal',
    ui: 'https://ecoportal.lifewatch.eu/',
    color: '[#0F4E8A](https://www.notion.so/Note-de-travail-135e345b8027803686b1d77de11cceac?pvs=21)',
    api: 'https://data.ecoportal.lifewatch.eu',
    apikey: '019adb70-1d64-41b7-8f6e-8f7e5eb54942',
    '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: "c9147279-954f-41bd-b068-da9b0c441288",
    'light-color': '#F0F5F6'
  },
  {
    name: 'BiodivPortal',
    ui: 'https://biodivportal.gfbio.org/',
    color: '#349696',
    api: 'https://data.biodivportal.gfbio.org/',
    apikey: "47a57aa3-7b54-4f34-b695-dbb5f5b7363e",
    'light-color': '#EBF5F5',
  }
]
```

# API

in the configuration file `config/environments/appliance.rb`  add/edit this lines.

```ruby
 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: "43a437ba-a437-4bf0-affd-ab520e584719",
      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: "c9147279-954f-41bd-b068-da9b0c441288",
      color: '#404696',
      'light-color': '#F0F5F6'
    },
    biodivportal: {
      name: 'BiodivPortal',
      ui: 'https://biodivportal.gfbio.org/',
      api: 'https://data.biodivportal.gfbio.org/',
      apikey: "47a57aa3-7b54-4f34-b695-dbb5f5b7363e",
      color: '#349696',
      'light-color': '#EBF5F5',
    }
  }
```

---

**Documents**

- [💁‍♂️ Acknowledgments](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/acknowledgments-15GdRXLQdm)
- [📚Publications and references](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/publications-and-references-87tEoeoGKy)
- [🗽Terms & Conditions](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/terms-conditions-naDsDo2Zxq)
- [🧞‍♂️Metadata guidelines and recommendations](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/metadata-guidelines-and-recommendations-pOFbK9sIfp)
- [📜 AgroPortal Release Notes](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/agroportal-release-notes-btKjZk5tU2)
- [ 👩‍🚀 User Guide](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/user-guide-ZszoBwfjGF)
- [📎 API Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/api-documentation-kMCurGKD97)
- [🤖 Developer Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/developer-documentation-LhsrucqGTa)
- [🗃External Documentation](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/external-documentation-vNPQCdArrr)
- [AgroPortal infrastructure](https://wiki.agroportal.eu/s/e6158eda-c109-4385-852c-51a42de9a412/doc/agroportal-infrastructure-ietsAU4kPs)