\acdhOeaw\util\metaLookupMetaLookupGraph

Searches for file metadata inside an RDF graph.

Summary

Methods
Properties
Constants
__construct()
getMetadata()
$debug
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$graph
N/A

Properties

$debug

$debug : boolean

Debug flag - setting it to true causes loggin messages to be displayed.

Type

boolean

$graph

$graph : \EasyRdf\Graph

Graph with all metadata

Type

\EasyRdf\Graph

Methods

__construct()

__construct(\EasyRdf\Graph  $graph) 

Creates a MetaLookupGraph from a given EasyRdf\Graph

Parameters

\EasyRdf\Graph $graph

metadata graph

getMetadata()

getMetadata(string  $path, \EasyRdf\Resource  $meta, boolean  $require = false) : \EasyRdf\Resource

Searches for metadata of a given file.

Parameters

string $path

path to the file (just for conformance with the interface, it is not used)

\EasyRdf\Resource $meta

file's metadata

boolean $require

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

Throws

\acdhOeaw\util\metaLookup\MetaLookupException

Returns

\EasyRdf\Resource —

fetched metadata