
Recently, we have been hearing from a number of organizations in Europe and the United States that want to make available a catalog of datasets similar to the EU Open Data Portal. In response to this interest, we decided to write a series of blogs on this topic:
The steps involved in creating this catalog in TopBraid EDG are:
With this done, your users can use Search the EDG to search and browse the datasets. For our example, we used several datasets that we downloaded in RDF from the EU portal and uploaded into EDG using its Import RDF functionality. EU datasets do not have any rdfs:labels and labels are important to the TopBraid EDG display, so we have generated labels from the values for dcat:title. With respect to the ontology, you can:
We used the latter approach since we wanted to get not just the generic DCAT ontology, but an ontology that reflects how the EU portal uses DCAT.
The screenshot below shows Search the EDG user interface in TopBraid EDG which, out of the box, gives you similar capabilities to the search pages of the EU Open Data Portal.
To get the search results shown above we entered “pollution” as the search string. We have less results than the number of results one would see in the EU portal since we only loaded about 100 different datasets.
In the TopBraid EDG search results page, the field for entering search terms is at the top of the page. Use Advanced Syntax option lets users enter Boolean searches, wildcards and other options described in these documentation pages.
Facets are presented to the left of the search results. For facets, TopBraid EDG will use any relationship. It will dynamically select 10 most populated relationships for your search results. Show More link at the bottom of the facet list lets you see more facets if the result set has more than 10 types of relationships.
In our case, there were additional facets, beyond the 10 displayed in the first screenshot – as shown below.
A user could also look for a particular facet, if they know its name. They could then ask EDG to add just that one facet. These steps are demonstrated in the two screenshots below.
If you prefer certain facets over others, you can configure TopBraid EDG so that its default selection of facets would be, for example, exactly the same as on the EU portal — or any other default selection of your choice.
The search results page is also configurable. By default, it will show a title and a description for each dataset. In the EU portal, results page also displays what formats are available for download as well as the number of times a given dataset was viewed or downloaded. This can be easily accomplished in EDG through a configuration. Alternatively, you could elect some other data values (such as status, period or anything else) to be displayed directly on the results page.
As shown in the first screenshot, search results page in TopBraid EDG displays a number of icons below each result. These are:
As we have already mentioned, the user interface and capabilities shown and discussed here are fully out of the box. In addition to the configurations mentioned above, you can easily style the pages with the stylesheets, logos and colors of your choice.
Dataset PageWhen you click on a dataset, you will see a page displaying it’s information. A subset of the information is shown below.
This page is auto-generated. The order in which fields are displayed and their grouping into sections is fully configurable. By default, all available information is displayed. This could be configured to only display certain fields. TopBraid EDG also lets you create role specific views so that some users will see more or different information than others.
Users that have edit permissions can not only see dataset information, but can also modify it.
Linked Data AccessTopBraid EDG lets you query all information using either SPARQL or GraphQL.
The screenshot above shows an example of SPARQL query in TopBraid EDG – selecting datasets with the “energy production” subject which has URI of <http://eurovoc.europa.eu/2715>.
Each dataset (and any asset in EDG) has a URI and information about an asset is readily available in RDF, with your choice of RDF serialization formats.
Adding Data to Your Catalog in TopBraid EDGYou can add new datasets to your dataset catalog in EDG, using one or more of the following approaches:
Key aspects of a dataset descriptions use controlled vocabularies. These capture commonly used entities such as:
As you create your data catalog, you will need to establish relevant taxonomies, reference datasets and/or enumerations or authority files. In case of the EU portal, we used its SPARQL endpoint to query for and export these vocabularies.
We used this downloaded data to create in TopBraid EDG two reference datasets, Countries and Languages, and a Taxonomy of the Eurovoc concepts to be used as subjects characterizing datasets. We used Enumerations in EDG to capture smaller sets of controlled values such as file formats and periodicity of updates.
The screenshot below shows a fragment of the Eurovoc vocabulary in EDG.
Since all information in a Knowledge Graph captured by EDG is connected, we can easily see and/or query for all datasets that are, for example, about “natural hazards”, then navigate to a concept related to “natural hazards” and see all datasets associated with a related topic.
In ConclusionIn this blog we have demonstrated a simple implementation of a dataset catalog in TopBraid EDG, uploading dataset definitions from the EU Open Data Portal.
In the next blog, we will explore pre-built dataset models in TopBraid EDG, discuss why you may want to base your catalog on the EDG data assets ontology and discuss transformation EDG and DCAT models.