Documentation

PropertyMapping
in package

Defines a single target ARCHE property mapping

Tags
author

zozlak

Table of Contents

Constants

ACTION_ADD  = 'add'
ACTION_IF_MISSING  = 'if missing'
ACTION_REPLACE  = 'replace'
LANG_ASSURE  = 'assure'
LANG_OVERWRITE  = 'overwrite'
LANG_PASS  = 'pass'
LANG_REMOVE  = 'remove'
TYPE_ID  = 'id'
TYPE_LITERAL  = 'literal'
TYPE_RESOURCE  = 'resource'

Properties

$action  : string
$langProcess  : string
$langValue  : string
$match  : string
$maxPerLang  : int
$path  : array<string|int, NamedNodeInterface>
$property  : NamedNodeInterface
$skip  : string
$type  : string
$value  : TermInterface

Methods

__construct()  : mixed
getProperty()  : NamedNodeInterface
resolve()  : DatasetNodeInterface
resolveAndMerge()  : void
resolvePath()  : DatasetNodeInterface
filter()  : void
normalize()  : void
processLang()  : void
resolveRecursively()  : DatasetInterface

Constants

Properties

Methods

__construct()

public __construct(object $cfg) : mixed
Parameters
$cfg : object

getProperty()

public getProperty() : NamedNodeInterface
Return values
NamedNodeInterface

resolve()

public resolve(DatasetNodeInterface $meta, UriNormalizer $normalizer, bool $normalize[, TermInterface|null $subject = null ]) : DatasetNodeInterface
Parameters
$meta : DatasetNodeInterface
$normalizer : UriNormalizer

UriNormalizer object allowing for recursive resolution of URIs.

$normalize : bool
$subject : TermInterface|null = null

optional triples subject to be enforeced on ther returned data

Return values
DatasetNodeInterface

resolveAndMerge()

public resolveAndMerge(DatasetNodeInterface $meta, DatasetNodeInterface $extDbMeta, UriNormalizer $normalizer, bool $normalize) : void
Parameters
$meta : DatasetNodeInterface
$extDbMeta : DatasetNodeInterface
$normalizer : UriNormalizer
$normalize : bool

resolvePath()

public resolvePath(DatasetNodeInterface $meta, UriNormalizer $normalizer[, TermInterface|null $subject = null ]) : DatasetNodeInterface
Parameters
$meta : DatasetNodeInterface
$normalizer : UriNormalizer

UriNormalizer object allowing for recursive resolution of URIs.

$subject : TermInterface|null = null

optional triples subject to be enforeced on ther returned data

Return values
DatasetNodeInterface

filter()

private filter(DatasetInterface $values) : void
Parameters
$values : DatasetInterface

processLang()

private processLang(DatasetInterface $meta) : void
Parameters
$meta : DatasetInterface

resolveRecursively()

private resolveRecursively(DatasetInterface $meta, NamedNodeInterface $sbj, UriNormalizer $normalizer, array<string|int, NamedNodeInterface$path) : DatasetInterface
Parameters
$meta : DatasetInterface
$sbj : NamedNodeInterface
$normalizer : UriNormalizer
$path : array<string|int, NamedNodeInterface>
Return values
DatasetInterface

        
On this page

Search results