PHP Class Tdt\Core\Repositories\DcatRepository

Inheritance: implements Tdt\Core\Repositories\Interfaces\DcatRepositoryInterface
Mostrar archivo Open project: tdt/core

Public Methods

Method Description
__construct ( Tdt\Core\Repositories\Interfaces\LicenseRepositoryInterface $licenses, Tdt\Core\Repositories\Interfaces\LanguageRepositoryInterface $languages, Tdt\Core\Repositories\Interfaces\SettingsRepositoryInterface $settings, Tdt\Core\Repositories\Interfaces\ThemeRepositoryInterface $themes )
getDcatDocument ( array $definitions, $oldest_definition ) : EasyRdf_Graph Return a DCAT document based on the definitions that are passed
getNamespaces ( ) : array Return the used namespaces in the DCAT document

Private Methods

Method Description
getIssuedDate ( ) : string Return the issued date (in ISO8601 standard) of the catalog
isDataGeoFormatted ( $definition )

Method Details

__construct() public method

public __construct ( Tdt\Core\Repositories\Interfaces\LicenseRepositoryInterface $licenses, Tdt\Core\Repositories\Interfaces\LanguageRepositoryInterface $languages, Tdt\Core\Repositories\Interfaces\SettingsRepositoryInterface $settings, Tdt\Core\Repositories\Interfaces\ThemeRepositoryInterface $themes )
$licenses Tdt\Core\Repositories\Interfaces\LicenseRepositoryInterface
$languages Tdt\Core\Repositories\Interfaces\LanguageRepositoryInterface
$settings Tdt\Core\Repositories\Interfaces\SettingsRepositoryInterface
$themes Tdt\Core\Repositories\Interfaces\ThemeRepositoryInterface

getDcatDocument() public method

Return a DCAT document based on the definitions that are passed
public getDcatDocument ( array $definitions, $oldest_definition ) : EasyRdf_Graph
$definitions array
return EasyRdf_Graph

getNamespaces() public method

Return the used namespaces in the DCAT document
public getNamespaces ( ) : array
return array