/
Metroline Step: Analyse data semantics

Metroline Step: Analyse data semantics

status:status: in development

… selecting a relevant subset of the data and defining driving user questions(s) are highly relying on being familiar with the data (Generic)

In this step, the aim is to gain more insight into the existing data, or the data that you aim to collect. Clearly defining the meaning (semantics) of the data is an important step for creating the semantic model, as well as for data collection via, for example, electronic case report forms (eCRFs). 

Short description 

Understanding and clearly defining the meaning (semantics) of (meta)data is an important preparation for creating the semantic model, as well as for data collection via, for example, electronic case report forms (eCRFs). In this step, the aim is to ensure you gain a clear and unambiguous understanding of the (meta)data elements. The step provides guidance for both existing data and data that is to be collected.

To illustrate the issue, consider the example where you receive a dataset with a variable called “date”. Without clearly defined semantics, it is unclear whether this means “date of data collection”, “admission date”, “date of birth”, or something else. This must be resolved before you can start with the semantic (meta)data model. In the How to section of this page we provide instructions to achieve this, along with an example following the different steps.

The outcome of this step is a set of data elements (variables) with clear and unambiguous semantics, known as a codebook. For metadata, the outcome is a set of clearly defined metadata elements. Note that finding machine-actionable items from ontologies for the data elements is not yet part of this step, but is described in Create or reuse a semantic (meta)data model.

Why is this step important

Several of the Metroline steps that follow rely on being familiar with your data. For example, in order to create or reuse your semantic (meta)data model, it is crucial to understand the meaning and relationships of variables.

While performing this step, keep your FAIRification goals in mind. If you have a clear idea of your FAIRification goals, it might be easier to define what elements should be present in your (meta)data and how these elements should be represented.

For example, in a dataset a variable to collect sex-related data might be called ‘sex’. If the semantics of such variable are not provided or not analysed, it would be unclear if it means ‘biological sex at birth', ‘phenotypic sex’, or ‘gender’. These issues have to be solved before you start with Metroline Step: Create or reuse a semantic (meta)data model or Metroline Step: Apply (meta)data model.

How to

This How to-section describes three steps to take in order to make your (meta)data elements clear and unambiguous. It is applicable to both FAIRification of existing data or de novo data collection. In both cases, you will perform the following steps (in different order):

  • Compile Information: Compile all the information of (meta)data elements, (meta)data values, and (meta)data structure. We describe this step separately for existing (meta)data elements or elements that are to be collected.

  • Check for an existing standard/codebook: For both existing and de novo (meta)data, check if there are codebooks or standards that are (partially) compatible with your (meta)data elements.

  • Check and improve (meta)data semantics: Make sure that the meaning of the (meta)data elements is clear and unambiguous.

After completing these steps, you will end up with a set of clearly defined (meta)data elements.

To see which steps are relevant for your case, please follow the flowchart below.

afbeelding-20250313-154145.png

For easier understanding, we will follow the example of the below set of metadata elements. The steps we are following in our example can be seen with the red arrows in the flowchart above.

Metadata Field

Value

Metadata Field

Value

Dataset Name

Health Data

Date of Upload

01/02/2023

Keywords

BP, HR, Conditions

Creator

Dr. Smith

Description

Patient health data including BP and HR

Format

CSV

Source

Hospital A

Rights

Open

Example - part 0: In this example, we are working with existing metadata. According to the flowchart, we should start with Check for an existing standard/codebook.

Step: Compile information

Compile all the information of (meta)data elements, (meta)data values, and (meta)data structure. Examine the (meta)data in the way it is currently stored, including its format (e.g. JSON, CSV) and how the information is organized within it. This step helps to identify inconsistencies, ambiguities, and errors in the data.

If you are not the original creator of the data, if possible, try to get the creator involved to help with the questions you may have.

a) For existing (meta)data

Locate all relevant sources in which the (meta)data is stored. You can compile the information in a spreadsheet, as shown in the example below, including the following:

  • Which variables are present in the (meta)data?

    • For example, check the eCRFs used to collect the data.

  • What are the value ranges for each variable, as in determine the type of values each variable can have?

    • For example Dataset Name has a range of Text (e.g., "Health Data").

  • What are the allowed value ranges for data elements.

    • For example, for the variable ‘sex', are only ‘male' and 'female’ present, or also ’intersex'?

  • Are there any existing relationships between the variables in your (meta)data and do they make sense?

    • For example, the “sex” variable is an attribute of “patient”, which may imply that the semantics of this “sex” variable is “sex of patient”.

Example - part 2: In our example, we are working on FAIRifying existing metadata of a dataset. Let’s compile and examine the information we have.

Value

Metadata field / Variable

Description of the field

Value range

Value

Metadata field / Variable

Description of the field

Value range

Health Data

Dataset Name

The name of the dataset.

Text

01/02/2023

Date of Upload

The date on which the dataset was uploaded

Date values in the format MM/DD/YYYY

BP, HR, Conditions

Keywords

Terms that describe the main topics of the dataset

Text, some keywords are abbreviations

Dr. Smith

Creator

The person or organisation that created the dataset

Text, in our example title and last name

Patient health data including BP and HR

Description

A brief summary of the dataset

Text

CSV

Format

A file format of the dataset

Text, in our example a short string indicating the file format

Hospital A

Source

The origin of the dataset

Text, in our case the name of the institution

Open

Rights

The usage rights or licence of the dataset

Text

We now have a compiled a table of information for our example metadata. Looking at the flowchart, we see that we can now proceed to the step Check for an existing standard/codebook b) to check if there is a standard that fits our compiled elements.

b) In case you are aiming to collect FAIR (meta)data from the start

Start by identifying the data elements/variables you plan to collect. Defining these elements early ensures that your dataset is structured, standardized, and aligned with FAIR principles. To guide this process, consider using Competency Questions (CQs) - questions that help clarify which data is necessary and how it will be used.

Here are some resources you can refer to in this step:

Once you have identified your data elements, determine the expected value range for each variable where possible. This helps maintain data quality and consistency. Examples include:

  • ‘Biological sex at birth’ → Text; the values ‘female', 'male', 'intersex' are allowed

  • ‘Age’ → Non-negative integer, indicating the age in years

Clearly defining these aspects from the start supports data integrity, interoperability, and future reuse.

Also keep in mind the relationships between your data elements and make sure it is clear which variables belong together.

  • For example, if you add variables for “Biological sex at birth” and “Age” make sure it’s clear that it refers to “Patient”.

You should end up with a compiled table of information, like you can see in the table below step a) and continue to Step Check for an existing standard/codebook (for new (meta)data).

Step: Check for an existing standard/codebook

a) For existing (meta)data

Check if your (meta)data comes with a codebook or metadata standard. In case it does, it is recommended to still check if the semantics of the codebook or standard are clear or need improvement. Jump to this part of the how-to here.

If the (meta)data is not coming with a codebook or standard, proceed to Compile information.

Example - part 1: In our example, we are working on FAIRifying existing metadata. We have checked our metadata, but it does not come with a metadata standard, so we’ll have to compile all information of our existing metadata first.

b) For new (meta)data

Before defining your own, check if there is a codebook or metadata standard you can use for the information you compiled before. Using established standards helps to make your (meta)data more interoperable and reusable.

You can find relevant standards and codebooks by:

  • Consulting domain experts (for data) or FAIR data stewards/semantic experts (for metadata)

  • Explore community-driven repositories

Below are listed some of the resources you could explore:

  • For clinical and biomedical data:

    • CDASH - Standardized way to collect and structure clinical trial data.

    • ART-DECOR - A tool for developing, managing, and sharing clinical data sets, templates, and terminologies.

    • OpenEHR - A widely used standard for structuring and sharing electronic health records (EHR).

  • For metadata standards:

    • FAIRsharing - A curated registry of metadata standards, repositories, and data policies across scientific domains.

    • RDA Metadata Standards Catalog - A collection of metadata standards maintained by the Research Data Alliance (RDA).

    • Dublin Core Metadata Initiative - A widely adopted metadata schema for dataset descriptions.

    • DCAT - A W3C standard for structuring datasets in catalogs.

    • ISA Model - A metadata framework for describing life science experiments.

You can find more about metadata standards and ontologies at the following link: Links and Additional reading - How to FAIR

If you find a codebook or standard that might fit your (meta)data, check if the definitions are compliant with the ones in your data. Are the value ranges correct? How well does it match your (meta)data elements? In the best case, you find a resource that fully matches your (meta)data. It could also be the case, that you find a partially matching standard, or none. Depending on the outcome of the search, do one of the following:

  • If you find a fully compatible codebook or metadata standard, apply it directly. You can find more relevant information in the Metroline step Apply (meta)data model.

  • If you find a partial match, use the relevant elements and document any modifications for missing components. For the missing components, also proceed to step Check (meta)data semantics.

  • If no suitable standard exists, proceed to the step Check (meta)data semantics, where you will define and structure metadata elements to ensure consistency and interoperability.

Health-RI, together with domain representatives, will be aiming to develop domain-specific national (meta)data standards in the future.

Example - part 3: After having compiled all elements in our metadata, let’s say we explored the relevant repositories and, for the purpose of following the example through all of the steps, couldn’t find one that would be applicable to our example metadata. According to the flowchart, we should now move to the Check and improve (meta)data semantics step.

Step: Check and improve (meta)data semantics

In order to end up with clearly defined (meta)data elements, we should check the semantics to identify things that are unclear or ambiguous. Next, we can improve these ambiguities. For this, first check:

  • Is the definition or description of the (meta)data elements clear and unambiguous? For those with ambiguous meaning, try to improve their definition.
    In the example of collecting data on a patient’s 'sex', it might be unclear if it means ‘biological sex at birth' or ‘administrative gender’.

  • It might help to look into the intended value range of a variable - is the exact range known and is it clear enough?
    In another example, 'age' of a subject can be expressed in years, but in some cases, such as studies with small children, could also be expressed in months. It should therefore be clearly stated if the value range for age should be expressed in years or months.

In case the definitions or value ranges for any elements are not clear, try to pinpoint the issues per element and based on that apply improvements to all elements with issues.

This recipe in the FAIR cookbook gives some additional guidance on specifying the semantics of elements of your data.

Example - part 4: In the below spreadsheet we can see what the issues are with our current metadata and applied improvements in order to make the meaning of them clearer.
For example, we split the element Creator into Creator Name and Creator Identifier, to improve the identification of the Creator. We also defined the format in which the Date of Upload should be stated to prevent confusion with dates/months.

Metadata Field

Original Value

Issue

New variable description

New Value Range

New Value

Metadata Field

Original Value

Issue

New variable description

New Value Range

New Value

Dataset Name

Health Data

Generic and not descriptive.

The name of the dataset.

Text

Patient Health Records 2023

Date of Upload

01/02/2023

Ambiguous format
(MM/DD/YYYY or
DD/MM/YYYY).

Date when the dataset was uploaded, in ISO 8601 format (YYYY-MM-DD).

Date in ISO 8601 format (YYYY-MM-DD)

2023-01-02

Keywords

BP, HR, Conditions

Abbreviations used without context.

Keywords describing the main topics covered by the dataset.

Text

Blood Pressure, Heart Rate, Hypertension

Creator Name

Dr. Smith

Generic name without additional identifying information.

Full name of the dataset creator.

Text

Dr. John Smith

Creator Identifier

None

Missing in the original example metadata, we need the identifier to make sure we refer to the correct agent.

ORICD of the creator.

ORCID identifier

ORCID: 0001-0002-3456-7890

Creator Institute

None

Missing in the original example metadata, we added it to make the creator more identifiable.

Affiliation of the dataset creator.

Text

Hospital A

Description

Patient health data including BP and HR

Lacks detail.

Extended description providing context and details about the dataset.

Text

Detailed patient health records including measurements of blood pressure (BP) and heart rate (HR), along with diagnosed medical conditions and prescribed medications.

Format

CSV

None

Data format of the dataset.

Text

CSV

Source Name

Hospital A

Lacks detail, too generic.

Specific department and institution where the data was sourced.

Text

Hospital A, Department of Cardiology

Source Identifier

None

Missing in the example to unambiguously identify the institute.

ROR identifier that is specific to the (research) institute.

ROR identifier

https://ror.org/example

Rights

Open

Too broad.

Licensing terms specifying the rights for data usage.

URL to CC License

CC BY 4.0

Step: Go to the next Metroline Step

Congratulations, you have now successfully analyzed your (meta)data semantics. You should now have a set of data elements (variables) with clear and unambiguous semantics - a codebook. For metadata, you should be left with a set of clearly defined metadata elements.

You can now continue to the next step: Metroline Step: Create or reuse a semantic (meta)data model, which uses work done in this step as a basis to find correct ontologies that can be coupled to your data elements.

Example - part 5: Great job! After checking and improving our metadata semantics, we can now move to the next Metroline step.

Expertise requirements for this step 

Below are experts that may need to be involved, as described in Metroline Step: Build the Team.

  • Semantic data / modelling specialists: Can help understanding the data’s structure and ambiguity.

  • Domain expert: Can help understanding the data’s elements and their potential ambiguity.

  • FAIR data steward: Can help identifying ambiguity in the data elements.

Practical examples from the community 

Examples of how this step is applied in a project (link to demonstrator projects).  

Training

Relevant training will be added soon.

Suggestions

This page is under construction. Learn more about the contributors here and explore the development process here. If you have any suggestions, visit our How to contribute page to get in touch.

Related content