Metadata

dcmeta


Introduction

An experimental tool for extracting and validating DC metadata encoded as XHTML meta elements.

dcmeta

Examples

Structure of Profile File

A "profile" is a set of rules which specifies:

A profile is a simple XML document containing:

Each my:element element must have the following child elements:

Each my:element element may have the following additional child elements:

Examples from Profile Files

Example 1

<?xml version="1.0" encoding="UTF-8"?>

<my:elements xmlns:my="http://www.ukoln.ac.uk/metadata/dcmeta/">

  <my:element>
    <my:prefix>DC</my:prefix>
    <my:name>title</my:name>
    <my:minoccurs>0</my:minoccurs>
    <my:maxoccurs>unbounded</my:maxoccurs>
  </my:element>

</my:elements>

The DC.title element is optional and may be repeated an unlimited number of times. No encoding schemes are permitted, and there is no checking of the values of the DC.title element.

Example 2

<?xml version="1.0" encoding="UTF-8"?>

<my:elements xmlns:my="http://www.ukoln.ac.uk/metadata/dcmeta/">

  <my:element>
    <my:prefix>DC</my:prefix>
    <my:name>subject</my:name>
    <my:minoccurs>0</my:minoccurs>
    <my:maxoccurs>unbounded</my:maxoccurs>
    <my:schemes>
      <my:scheme><my:schemename>[None]</my:schemename></my:scheme>
      <my:scheme><my:schemename>LCSH</my:schemename></my:scheme>
      <my:scheme><my:schemename>MESH</my:schemename></my:scheme>
      <my:scheme><my:schemename>DDC</my:schemename></my:scheme>
      <my:scheme><my:schemename>LCC</my:schemename></my:scheme>
      <my:scheme><my:schemename>UDC</my:schemename></my:scheme>
    </my:schemes>
  </my:element>

</my:elements>

The DC.subject element is optional and may be repeated an unlimited number of times. Five encoding schemes are permitted, but the "[None]" entry means that the use of an encoding scheme is not mandatory.

Example 3

<?xml version="1.0" encoding="UTF-8"?>

<my:elements xmlns:my="http://www.ukoln.ac.uk/metadata/dcmeta/">

  <my:element>
    <my:prefix>DC</my:prefix>
    <my:name>subject</my:name>
    <my:minoccurs>1</my:minoccurs>
    <my:maxoccurs>unbounded</my:maxoccurs>
    <my:schemes>
      <my:scheme><my:schemename>LCSH</my:schemename></my:scheme>
    </my:schemes>
  </my:element>

</my:elements>

The DC.subject element is mandatory and may be repeated an unlimited number of times. Values must be associated with the LCSH encoding scheme.

Example 4

<?xml version="1.0" encoding="UTF-8"?>

<my:elements xmlns:my="http://www.ukoln.ac.uk/metadata/dcmeta/">

  <my:element>
    <my:prefix>DC</my:prefix>
    <my:name>publisher</my:name>
    <my:minoccurs>1</my:minoccurs>
    <my:maxoccurs>1</my:maxoccurs>
    <my:schemes>
      <my:scheme><my:schemename>[None]</my:schemename></my:scheme>
    </my:schemes>
    <my:fixedvalues><my:fixedvalue>UKOLN</my:fixedvalue></my:fixedvalues>
 </my:element>

</my:elements>

The DC.publisher element is mandatory and may only occur once. No encoding scheme is valid, and only one value is permissible.

Example 5

<?xml version="1.0" encoding="UTF-8"?>

<my:elements xmlns:my="http://www.ukoln.ac.uk/metadata/dcmeta/">

  <my:element>
    <my:prefix>DC</my:prefix>
    <my:name>type</my:name>
    <my:minoccurs>1</my:minoccurs>
    <my:maxoccurs>1</my:maxoccurs>
    <my:schemes>
      <my:scheme>
        <my:schemename>DCMIType</my:schemename>
        <my:schemevalues>
          <my:schemevalue>Collection
          <my:schemevalue>Dataset
          <my:schemevalue>Event
          <my:schemevalue>Image
          <my:schemevalue>Interactive Resource
          <my:schemevalue>Service
          <my:schemevalue>Software
          <my:schemevalue>Sound
          <my:schemevalue>Text
          <my:schemevalue>Physical Object
        </my:schemevalues>
      </my:scheme>
    </my:schemes>
 </my:element>

</my:elements>

The DC.type element is mandatory and may only occur once. Values must use the DCMIType encoding scheme and must be drawn from the enumerated list.