User Tools

Site Tools


This page is in the 'old' namespace, and was imported from our previous wiki. We recommend checking for more up-to-date information using the search box.

More about Metadata

How to manually specify filenames in metadata.xml

If you're writing your own metadata.xml files that will specify what metadata is attached to which folders and files, you will need to specify the <FileName> element as a regular expression and any filepaths must be in URI format (which uses forward slashes). Because such filepaths represent regular expressions, backslashes can be used to escape special characters, e.g. "\." means the literal full-stop character.

An example of a valid metadata.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DirectoryMetadata SYSTEM "">
            <Metadata name="dc.Title">Lala</Metadata>
            <Metadata name="dc.Title">Nono</Metadata>
            <Metadata name="dc.Title">Toto</Metadata>

Can I get any information about the metadata coverage in my collection?

Metadata coverage statistics can be gathered during collection building by adding the line store_metadata_coverage true to the collection's etc/collect.cfg file. Rebuild the collection (don't need to reimport), then the collection's GDBM database will contain the following information in the 'collection' entry. Examples are from the demo collection.

  • Which metadata sets have been used in the collection
  • Which elements are present in each metadata set.
  • The frequency of each metadata element.

Note, to view all the entries in the GDBM database, run

 db2txt path-to-collection/index/text/collname.gdb > database.txt
old/more_about_metadata.txt · Last modified: 2023/03/13 01:46 by