\acdhOeaw\oai\metadataResMetadata

Creates <metadata> element by simply taking binary content of another repository resource.

Of course it will work only if the target resource is an XML file satisfying requested OAI-PMH metadata schema (but checking it is out of scope of this class)

Required metadata format definitition properties:

  • metaResProp
  • idProp so that SPARQL path ?res metaResProp / ^idProp ?metaRes will fetch a correct metadata resource.

Summary

Methods
Properties
Constants
__construct()
getXml()
extendSearchQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$metaRes
N/A

Properties

$metaRes

$metaRes : \acdhOeaw\fedora\FedoraResource

Repository resouce storing actual metadata as its binary content.

Type

\acdhOeaw\fedora\FedoraResource

Methods

__construct()

__construct(\acdhOeaw\fedora\FedoraResource  $resource, \stdClass  $sparqlResultRow, \acdhOeaw\oai\data\MetadataFormat  $format) 

Creates a metadata object for a given repository resource.

Parameters

\acdhOeaw\fedora\FedoraResource $resource

repository resource object

\stdClass $sparqlResultRow

SPARQL search query result row

\acdhOeaw\oai\data\MetadataFormat $format

metadata format descriptor describing this resource

getXml()

getXml() : \DOMElement

Creates resource's XML metadata

Throws

\acdhOeaw\oai\OaiException

Returns

\DOMElement

extendSearchQuery()

extendSearchQuery(\acdhOeaw\oai\data\MetadataFormat  $format, string  $resVar) : string

Returns a SPARQL search query part fetching additional data required by the `__construct()` method.

In this case it is an URI of the repository resource storing the actual metadata as its binary content.

Parameters

\acdhOeaw\oai\data\MetadataFormat $format

metadata format descriptor

string $resVar

name of the SPARQL variable holding the repository resource URI

Returns

string