Data Hub - AtlasOfLivingAustralia/documentation Wiki


A Data Hub is a front end to a LA portal, its main goal is to show a subset of the whole data.

The subset of data can be split by region, taxonomy, basisofrecord (specimen only), temporal lapse or by any other query.

A display of a subset is a Hub. Hubs can be regional, taxonomic and thematic (depending on how the data is split).

One LA portal can have a lot of Hubs, each of them focused on different data and environnements: one can be about the data inside a specific region, an institution (like an Herbarium), another can show the data about a species in the 20s, et cetera.

Hubs can have differents active modules inside them, each of them are independant from the others (at least on the front-end).

Hub Examples

Notable examples of hubs:

Biocache, Regions and BIE

Biocache (records), Regions and BIE (species pages) are used as query context; they can be configured in externals configuration files:

Demo queries in the biocache can be made with dq=.

BIE load Darwin Core Archive (DwCA) and can be extensible, support for adhoc fields and for the "Distribution" extension exist. Example of a query on BIE : fq=distribution:Scotland

Basic steps to setup a Hub

Styling your Hub

You can create a different branding for each of your hubs so can be different from you LA main branding. Also probably you'll use a different domain or subdomain from the institution that hub will belongs to (some local community or some herbarium, etc).

For details about styling see Styling the web app.

Create and configure the hub in the Collectory

In the collectory admin interface look for the View all data hubs option, here you can add a new DataHub. Edit the name and any other information you required.

In the Members section add the identifier of the Institutions, Collections and Data Resources that belong to the Hub. This is the information that will actually show in the web app.

Configure the web app to show the records of the new hub

Find the UID of the hub you already created in the Collectory admin interface. In the web app config file (grails-app/conf/config.groovy) add the property with the appropiate UID.

biocache.queryContext = "data_hub_uid:dh1"

Or via ala-install inventory:

enable_query_context = true
biocache_query_context = data_hub_uid:dh1

Hub detailed configuration and deployment

You can deploy your hub using your main LA inventories, plus some specific hub configuration. For instance:





# used in biocache and bie hubs
biocache_query_context = data_hub_uid:dh1

# used in regions
enable_query_context = true
query_context = data_hub_uid:dh1
hub_filter = data_hub_uid:dh1
enable_hub_data = true

orgNameLong = Herbarium of ACME
orgNameShort = Herb-ACME

header_and_footer_baseurl =
header_and_footer_version = 2

orgCity=Some city
orgStateProvince=Some state
orgCountry=Some country
org_url =

skin_favicon_baseurl =
favicon_url =
skin_favicon =

# TODO put here other page
explore_url =
regions_explore_url =,Explore

biocache_hub_hostname =
biocache_hub_url =
biocache_hub_base_url =
biocache_hub_context_path =
biocache_base_url =
biocache_records_url =

bie_hub_base_url =
bie_hub_hostname =
bie_hub_context_path =
bie_base_url =

regions_base_url =
regions_hostname =


skin_home_url =
ala_base_url =


skin_home_url =
ala_base_url =


skin_home_url =
ala_base_url =

And deploy using the rest of your inventories:

ansible-playbook -u ubuntu -i -i -i -i hubdemo.yml ../../ala-install/ansible/biocache-hub-standalone.yml --limit

Process and Index your data again

Now we need to "mark" which records belongs to that datahub. For this we need to ingest again the data resources that form part of this datahub. At the end, in cassandra field dataHubUid_p should contain your dh1 hub id after processing. Similarly in solr the data_hub_uid should containt dh1 after indexing.

Configure the facet fields

The config variables starting with facets. are responsible for this:

Note, you can also change the default set of facets but this is set in the biocache-service application, also via config vars (I think). You may also want to change the way facets are grouped together (see ${biocache.baseUrl}/search/grouped/facets).

CORS configuration

As you will request data from your main LA deployment, you'll need to allow your new hub domain to access to your main LA biocache.

Allow Data Hub IP address

You have to add the IP of the userdetails to your list of authorized systems to


See this page for info about hubs customizations.

More information

For more technical information, see section 2.6 Data Hub on the ALA Key Technical Documentation (English).