PHP code example of wterberg / dcat-ap-donl
1. Go to this page and download the library: Download wterberg/dcat-ap-donl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wterberg / dcat-ap-donl example snippets
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());