$metaRes
$metaRes : \acdhOeaw\fedora\FedoraResource
Repository resouce storing actual metadata as its binary content.
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.__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.
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 |