Skip to content

Validation suite for the CESSDA Data Catalogue

License

Notifications You must be signed in to change notification settings

cessda/cessda.cmv.console

Repository files navigation

SQAaaS badge

SQAaaS badge shields.io

Build Status Bugs Code Smells Coverage Duplicated Lines (%) Lines of Code Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities

CESSDA Metadata Validator: Command Line Runner

This repository contains the source code for a command line application of the CESSDA Metadata Validator.

Prerequisites

Java 11 or greater is required to build and run this application.

Quick Start

  1. Check prerequisites and install any required software.
  2. Clone the repository to your local workspace.
  3. Build the application using .\mvnw clean verify.
  4. Run the application using the following command: .\mvnw exec:java.

Project Structure

This project uses the standard Maven project structure.

<ROOT>
├── .mvn                # Maven wrapper.
├── src                 # Contains all source code and assets for the application.
|   ├── main
|   |   ├── java        # Contains release source code of the application.
|   |   └── resources   # Contains release resources assets.
|   └── test
|       ├── java        # Contains test source code.
|       └── resources   # Contains test resource assets.
└── target              # The output directory for the build.

Technology Stack

Several frameworks are used in this application.

Framework/Technology Description
CESSDA Metadata Validator Validates XMLs according to the CMM
Jib Java Docker/OCI image builder
Jackson JSON/YAML Serializer/Deserializer
logstash-logback-encoder JSON Encoder for Logback
Apache Commons IO Library of utilities for IO functionality

Configuration

The validator is configured using configuration.yaml.

rootDirectory:
repositories:
  - code: UKDS # Friendly name of the repository.
    directory: UKDS/ # Base directory to search for metadata.
    profile: file://validation-profile.xml # URL to the validation profile.
    validationGate: BASIC # The validation gate to use. Acceptable values are BASIC, BASICPLUS, STANDARD, EXTENDED and STRICT.

About

Validation suite for the CESSDA Data Catalogue

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages