\acdhOeaw\oai\metadataCmdiMetadata

Specialization of ResMetadata class checking if the CMDI schema matches metadata format requested by the user.

Required metadata format definitition properties:

  • cmdiResProp
  • cmdiSchemaProp
  • idProp so that SPARQL path ?res cmdiResProp / ^idProp ?metaRes will fetch right metadata resources assuming that ?metaRes cmdiSchemaProp 'cmdiResSchema' matches the requested metadata format schema.

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 (implemented in parent class) - assuring that the linked CMDI resource has the right schema

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