$metaRes
$metaRes : \acdhOeaw\fedora\FedoraResource
Repository resouce storing actual metadata as its binary content.
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.__construct(\acdhOeaw\fedora\FedoraResource $resource, \stdClass $sparqlResultRow, \acdhOeaw\oai\data\MetadataFormat $format)
Creates a metadata object for a given repository resource.
\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 |
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.
\acdhOeaw\oai\data\MetadataFormat | $format | metadata format descriptor |
string | $resVar | name of the SPARQL variable holding the repository resource URI |