wterberg/dcat-ap-donl

Allows for creation and validation of datasets conforming to the DCAT-AP-DONL 1.1 metadata standard

0.6.0 2021-02-24 13:33 UTC

This package is auto-updated.

Last update: 2024-10-29 14:10:30 UTC


README

github.com/WterBerg/php-dcatapdonl

This package allows for creation and validation of datasets conforming to the DCAT-AP-DONL 1.1 metadata standard.

License

View the LICENSE.md file for licensing details.

Installation

Installation of wterberg/dcat-ap-donl is done via Composer.

composer require wterberg/dcat-ap-donl

Usage

Usage can be as simple as:

use DCAT_AP_DONL\DCATDataset;
use DCAT_AP_DONL\DCATLiteral;

$dataset = new DCATDataset();
$dataset->setTitle(new DCATLiteral('My new dataset');

$validation = $dataset->validate();
var_dump($validation->getMessages());