\acdhOeaw\oai\metadataRdfXml

Creates OAI-PMH <metadata> element in as an RDF-XML serialization of a FedoraResource RDF metadata.

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
$res
N/A

Properties

$res

$res : \acdhOeaw\fedora\FedoraResource

Repository resource object

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

Returns

\DOMElement

extendSearchQuery()

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

This implementation has no need to extend the SPRARQL search query.

Returned string must be a valid SPARQL query part one can insert as ... in a query like SELECT * WHERE { ... LIMIT (someRule)}. It means if you need your own LIMIT clause or other advanced constructs, you must return a subquery.

Remark! PHP doesn't consider static methods as an interface part therefore existance of this method in classes implementing this interface is not enforced.

Parameters

\acdhOeaw\oai\data\MetadataFormat $format

metadata format descriptor

string $resVar

variable used in the search query to denote the repository resource

Returns

string