PropertyMapping
in package
Defines a single target ARCHE property mapping
Tags
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
- $datatype : string|null
- $langProcess : string
- $langValue : string
- $match : string
- $maxPerLang : int
- $path : array<string|int, NamedNodeInterface>
- $preferredLangs : array<string|int, string>
- $property : NamedNodeInterface
- $replace : string
- $skip : string
- $type : string
- $value : TermInterface
Methods
- __construct() : mixed
- getProperty() : NamedNodeInterface
- resolve() : DatasetNodeInterface
- resolveAndMerge() : void
- resolvePath() : DatasetNodeInterface
- assureType() : void
- filterAndReplace() : void
- normalize() : void
- processLang() : void
- resolveRecursively() : DatasetInterface
Constants
ACTION_ADD
public
mixed
ACTION_ADD
= 'add'
ACTION_IF_MISSING
public
mixed
ACTION_IF_MISSING
= 'if missing'
ACTION_REPLACE
public
mixed
ACTION_REPLACE
= 'replace'
LANG_ASSURE
public
mixed
LANG_ASSURE
= 'assure'
LANG_OVERWRITE
public
mixed
LANG_OVERWRITE
= 'overwrite'
LANG_PASS
public
mixed
LANG_PASS
= 'pass'
LANG_REMOVE
public
mixed
LANG_REMOVE
= 'remove'
TYPE_ID
public
mixed
TYPE_ID
= 'id'
TYPE_LITERAL
public
mixed
TYPE_LITERAL
= 'literal'
TYPE_RESOURCE
public
mixed
TYPE_RESOURCE
= 'resource'
Properties
$action
private
string
$action
$datatype
private
string|null
$datatype
$langProcess
private
string
$langProcess
$langValue
private
string
$langValue
$match
private
string
$match
$maxPerLang
private
int
$maxPerLang
$path
private
array<string|int, NamedNodeInterface>
$path
$preferredLangs
private
array<string|int, string>
$preferredLangs
$property
private
NamedNodeInterface
$property
$replace
private
string
$replace
$skip
private
string
$skip
$type
private
string
$type
$value
private
TermInterface
$value
Methods
__construct()
public
__construct(object $cfg) : mixed
Parameters
- $cfg : object
getProperty()
public
getProperty() : NamedNodeInterface
Return values
NamedNodeInterfaceresolve()
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
DatasetNodeInterfaceresolveAndMerge()
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
DatasetNodeInterfaceassureType()
private
assureType(DatasetInterface $values) : void
Parameters
- $values : DatasetInterface
filterAndReplace()
private
filterAndReplace(DatasetInterface $values) : void
Parameters
- $values : DatasetInterface
normalize()
private
normalize(DatasetInterface $meta, UriNormalizer $normalizer) : void
Parameters
- $meta : DatasetInterface
- $normalizer : UriNormalizer
processLang()
private
processLang(DatasetInterface $meta) : void
Parameters
- $meta : DatasetInterface
resolveRecursively()
private
resolveRecursively(DatasetInterface $meta, TermInterface $sbj, UriNormalizer $normalizer, array<string|int, NamedNodeInterface> $path) : DatasetInterface
Parameters
- $meta : DatasetInterface
- $sbj : TermInterface
- $normalizer : UriNormalizer
- $path : array<string|int, NamedNodeInterface>