MetadataChecker
in package
Description of MetadataChecker
Tags
Table of Contents
Properties
- $checkRanges : array<string, array<string|int, string>>
- $log : LoggerInterface|null
- $meta : DatasetInterface
- $normalizers : array<string, UriNormalizer>
- $ontology : Ontology
- $schema : Schema
- $vocabularies : array<string, array<string, string>>
Methods
- __construct() : mixed
- check() : bool
- checkClass() : void
- checkForLocalEntities() : void
- Removes "Failed to fetch RDF data from {URI}" errors related to locally defined entities (having a given subject or identifier).
- checkNamedEntity() : void
Properties
$checkRanges
private
array<string, array<string|int, string>>
$checkRanges
$log
private
LoggerInterface|null
$log
$meta
private
DatasetInterface
$meta
$normalizers
private
array<string, UriNormalizer>
$normalizers
$ontology
private
Ontology
$ontology
$schema
private
Schema
$schema
$vocabularies
private
array<string, array<string, string>>
$vocabularies
Methods
__construct()
public
__construct(Ontology $ontology, Schema $schema[, LoggerInterface|null $log = null ]) : mixed
Parameters
check()
public
check(DatasetInterface $meta[, bool $reportProgress = true ]) : bool
Parameters
- $meta : DatasetInterface
- $reportProgress : bool = true
Return values
boolcheckClass()
public
checkClass(DatasetInterface $sbjMeta, ClassDesc|string $class, array<string|int, DoorkeeperException|string> &$errors) : void
Parameters
- $sbjMeta : DatasetInterface
- $class : ClassDesc|string
- $errors : array<string|int, DoorkeeperException|string>
checkForLocalEntities()
Removes "Failed to fetch RDF data from {URI}" errors related to locally defined entities (having a given subject or identifier).
private
checkForLocalEntities(array<string|int, DoorkeeperException> &$errors, DatasetInterface $meta) : void
Doesnt' check if entities themselves are valid (but this is checked in the check() method loop)
Parameters
- $errors : array<string|int, DoorkeeperException>
- $meta : DatasetInterface
checkNamedEntity()
private
checkNamedEntity(NamedNodeInterface $value, bool $resolve, PropertyDesc $propDesc, array<string|int, DoorkeeperException|string> &$errors) : void
Parameters
- $value : NamedNodeInterface
- $resolve : bool
- $propDesc : PropertyDesc
- $errors : array<string|int, DoorkeeperException|string>