Class: OAI::Provider::Metadata::Europeana

Inherits:
Format
  • Object
show all
Defined in:
lib/oai/provider/metadata_format/oai_europeana.rb

Overview

OAI::Metadata::Europeana

Simple implementation of the Europeana metadata format.

Instance Attribute Summary

Attributes inherited from Format

#element_namespace, #fields, #namespace, #prefix, #schema

Instance Method Summary collapse

Methods inherited from Format

#encode

Constructor Details

#initializeEuropeana

Returns a new instance of Europeana.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/oai/provider/metadata_format/oai_europeana.rb', line 7

def initialize
  @prefix = 'ese'
  @schema = 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd'
  @namespace = 'http://www.openarchives.org/OAI/2.0/oai_dc/'
  @element_namespace = 'ese'
  @fields = {:dc => [:title, :creator, :subject, :description, :publisher,
              :contributor, :date, :type, :format, :identifier,
              :source, :language, :relation, :coverage, :rights],
             :dcterms => :provenance,
             :ese => [:userTag, :unstored, :object, :language, :provider,
               :type, :uri, :year, :hasObject, :country]
              }
end

Instance Method Details

#header_specificationObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/oai/provider/metadata_format/oai_europeana.rb', line 21

def header_specification
  {
    'xmlns:oai_dc'    =>  'http://www.openarchives.org/OAI/2.0/oai_dc/',
    'xmlns:ese'       =>  'http://europeana.eu/terms/',
    'xmlns:dc'        =>  'http://purl.org/dc/terms/',
    'xmlns:dcterms'   =>  'http://purl.org/dc/terms/',
    'xmlns:europeana' =>  'http://europeana.eu/terms/',
    'xmlns:local'     =>  'http://metadata.cerl.org/oai/namespace/local/',
    'xmlns:xsi'       =>  'http://www.w3.org/2001/XMLSchema-instance',
    'xsi:schemaLocation' => 
      %{http://purl.org/dc/elements/1.1/
        http://dublincore.org/schemas/xmls/qdc/dc.xsd http://purl.org/dc/terms/
        http://dublincore.org/schemas/xmls/qdc/dcterms.xsd}
  }
end