ValueMapper
    
            
            in package
            
        
    
    
    
Provides vocabulary mappings. Assumes a value is an URL which can be resolved to the RDF. Then extracts given property values from the RDF.
Implements caching.
Tags
Table of Contents
Properties
- $cache : array<string, DatasetNode>
 - $client : Client
 - $failed : array<string, bool>
 - $staticMaps : array<string, array<string, string>>
 
Methods
- __construct() : mixed
 - getMapping() : array<string|int, TermInterface>
 - Returns mapped values.
 - getStaticMapping() : string|null
 - fetch() : void
 - Fetches mappings from the value URL into the cache.
 
Properties
$cache
    private
        array<string, DatasetNode>
    $cache
     = []
    
    
    
$client
    private
        Client
    $client
    
    
    
    
$failed
    private
        array<string, bool>
    $failed
     = []
    
    
    
$staticMaps
    private
        array<string, array<string, string>>
    $staticMaps
    
    
    
    
Methods
__construct()
    public
                    __construct([array<string|int, mixed>|null $staticMaps = null ][, array<string, mixed> $guzzleOptions = [] ]) : mixed
    Parameters
- $staticMaps : array<string|int, mixed>|null = null
 - $guzzleOptions : array<string, mixed> = []
 - 
                    
connection options to be used while fetching the data - see http://docs.guzzlephp.org/en/stable/request-options.html
 
getMapping()
Returns mapped values.
    public
                    getMapping(string $value, string $property) : array<string|int, TermInterface>
    Parameters
- $value : string
 - 
                    
value to be mapped
 - $property : string
 - 
                    
RDF property which value should be returned
 
Return values
array<string|int, TermInterface> —mapped values
getStaticMapping()
    public
                    getStaticMapping(string $map, string $value) : string|null
    Parameters
- $map : string
 - $value : string
 
Return values
string|nullfetch()
Fetches mappings from the value URL into the cache.
    private
                    fetch(string $uri) : void
    Parameters
- $uri : string
 - 
                    
URI value to be resolved