Skip to content

Validate

Used in combination with the itemstore configuration variable, in order to find approproate bundles for validation metadata in the harvest. Used only in the validation transform.

Configuration

An object, consisting of variables, for more info see specific variable below.

module.exports = {
    validate: {
        mandatoryFieldsRequired: true,
        saveReport: true,
        type2template: {
            "dcat:Catalog": "dcat:OnlyCatalog",
            "dcat:Dataset": "dcat:OnlyDataset",
            "dcat:Distribution": "dcat:OnlyDistribution",
            "vcard:Kind": "dcat:contactPoint",
            "vcard:Individual": "dcat:contactPoint",
            "vcard:Organization": "dcat:contactPoint",
            "foaf:Agent": "dcat:foaf:Agent"
        },
        mandatoryTypes: ["dcat:Dataset", "dcat:Catalog"],
    },
};

Mandatory fields required

If set, it stops resources without mandatory fields to be harvested. Boolean.

Mandatory types

Decides which resource types to be considered as mandatory. Array of strings.

Save report

If set, saves validation report as a entry resource. Boolean.

Type 2 template

Used in combination with the itemstore configuration variable, in order to find approproate bundles for validation metadata in the harvest. Key-value object.