DcMetadata
in package
implements
MetadataInterface
Creates OAI-PMH <metadata> element in Dublin Core format from an RDF metadata.
Simply takes all Dublin Core Elements properties and their Dublin Core Terms counterparts and skips all other metadata properties.
Skips Dublin Core Terms which don't have Dublin Core Elements counterparts.
Tags
Table of Contents
Interfaces
- MetadataInterface
- Interface for different metadata providers.
Constants
- DCE_NMSP = 'http://purl.org/dc/elements/1.1/'
- DCE_PROPS = ['contributor', 'coverage', 'creator', 'date', 'description', 'format', 'identifier', 'language', 'publisher', 'relation', 'rights', 'source', 'subject', 'title', 'type']
- DCT_NMSP = 'http://purl.org/dc/terms/'
Properties
- $res : RepoResourceDb
- Repository resource object
Methods
- __construct() : mixed
- Creates a metadata object for a given repository resource.
- extendSearchDataQuery() : QueryPart
- This implementation has no need to extend the search query.
- extendSearchFilterQuery() : QueryPart
- This implementation has no need to extend the search query.
- getXml() : DOMElement
- Creates resource's XML metadata
Constants
DCE_NMSP
public
mixed
DCE_NMSP
= 'http://purl.org/dc/elements/1.1/'
DCE_PROPS
public
mixed
DCE_PROPS
= ['contributor', 'coverage', 'creator', 'date', 'description', 'format', 'identifier', 'language', 'publisher', 'relation', 'rights', 'source', 'subject', 'title', 'type']
DCT_NMSP
public
mixed
DCT_NMSP
= 'http://purl.org/dc/terms/'
Properties
$res
Repository resource object
private
RepoResourceDb
$res
Methods
__construct()
Creates a metadata object for a given repository resource.
public
__construct(RepoResourceDb $resource, HeaderData $searchResultRow, MetadataFormat $format) : mixed
Parameters
- $resource : RepoResourceDb
-
a repository resource object
- $searchResultRow : HeaderData
-
search query result row
- $format : MetadataFormat
-
metadata format descriptor describing this resource
extendSearchDataQuery()
This implementation has no need to extend the search query.
public
static extendSearchDataQuery(MetadataFormat $format) : QueryPart
Parameters
- $format : MetadataFormat
Return values
QueryPartextendSearchFilterQuery()
This implementation has no need to extend the search query.
public
static extendSearchFilterQuery(MetadataFormat $format) : QueryPart
Parameters
- $format : MetadataFormat
Return values
QueryPartgetXml()
Creates resource's XML metadata
public
getXml() : DOMElement