Reports generation

While LIBSAFE offers some already made reports plus the possibility of deploying custom reports, there are cases in which the organization could prefer to create its own reports and explore LIBSAFE data. When this is needed, you can request LIBNOVA the configuration of METABASE, that is not part of the LIBSAFE package, but can interact with it.

Please refer to the METABASE user guide for additional information on using it.

After it has been deployed, you can access it in your Advanced options -> Reports section

Using METABASE you can create reports or data exports in three main ways:

  • Making "Simple questions", that are going to display a table data,

  • Making "Custom questions" that allow you to perform join operations and advanced filters visually or

  • Making "Native queries" that imply using SQL queries to build your reports.

For advanced queries, knowing SQL is desirable. This is a very good guide to start understanding its basic principles.

Let's start making a simple report:

Files by file format sample report

Go to Ask a question -> Custom question

Select the LIBSAFE database, or the Tenants database if you are running in a multi-tenancy environment:

As you want to create a file format (for your files) report, you'll need to load the table that includes the preserved files, that is Object Files

As you are not interested in all information of your files, you can select the Columns option to just leave the ones that you need:

If you are in doubt of the information you need, you can always select Visualize, and Metabase will present you a table with a few records, so you can understand how information is organized.

In this case, when you Visualize your data, you will see something interesting:

LIBSAFE is using a relational data model to organize your information, so it is keeping the file format associated to each file in another table. For instance, for the file with id=1, the file format is 806. On the other hand, what you need is a PRONOM format in your report, but what PRONOM id corresponds to a given FileDataFormat is stored in another database table. This way, you need then to combine two tables or, in SQL terms, to do a Join.

Select the Join Data option and METABASE will show you other tables. In there, select Data Formats, and then, how to relate both tables: In your case,

You can always use the Visualize option to see if you are doing it right. In this case, we are as, as you can see, we are now relating each file with its PRONOM format using the Join:

In the same way, you don't need all columns there, so we are leaving only the ones we are interested in:

Now we are finally getting a table that includes, for each of your files, their PRONOM format.

At this stage, you may just want to export and download your results in Excel, CSV or json format. To do it, you can just select the small cloud icon at the bottom right area of the interface:

You may also want to save your query for future use, selecting Save (saved queries can then be used as building blocks for dashboards),

You may just want want to know the number of distinct files formats, selecting Summarize and then selecting Number of distinct values of:

And then your UIDFormat.

Or you could want to build a visualization with your data. In this case, select Visualization, and then select the Summarize option. In your case, you are interested in the count and unique formats, so you select:

If you then select Visualize, you will be able to see the data table:

That you can then convert to a Pie chart selecting it from the available ones:

When you select it, you will get something close to this:

As you can see, the file format is not sorted. Let's improve it: Go back to your query, and add a Sort criteria:

This way, you can continue refining your query until you get what you need.

When you have saved it, you can create a dashboard and include it inside. Select the + icon in the top bar, and create a new dashboard:

and start adding your saved questions selecting the pencil icon and then the + icon:

Last updated