Documentation

MetaLookupInterface

It is a common problem to couple binary data with their metadata.

This interface provides a method for returning metadata object based on the binary file path.

Tags
author

zozlak

Table of Contents

Methods

getMetadata()  : DatasetNodeInterface
Returns metadata coupled with a file.

Methods

getMetadata()

Returns metadata coupled with a file.

public getMetadata(string $path, array<string|int, string|NamedNodeInterface$identifiers[, bool $require = false ]) : DatasetNodeInterface
Parameters
$path : string

path to the data file

$identifiers : array<string|int, string|NamedNodeInterface>

identifiers (URIs) of the file

$require : bool = false

should error be thrown when no metadata was found (when false a resource with no triples is returned)

Return values
DatasetNodeInterface

fetched metadata


        
On this page

Search results