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

<!-- 

  $Id: metadata_config_photodemo.xml 10855 2007-05-19 02:54:08Z bberndt $

  Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  Use is subject to license terms.

Use /opt/honeycomb/bin/metadata_merge_config.sh to add this config to
the existing one -->

  <metadataConfig>
  <schema>
    
    <namespace name="photo" writable="true" extensible="true">
      <field name="Sensing_Method" type="string" length="32"/>
      <field name="Components_Configuration" type="string" length="16"/>
      <field name="Exposure_Bias_Value" type="string" length="8"/>
      <field name="Exif_Image_Height" type="string" length="16"/>
      <field name="F_Number" type="string" length="8"/>
      <field name="Focal_Length" type="string" length="16"/>
      <field name="Date_Time" type="string" length="32"/>
      <field name="X_Resolution" type="string" length="64"/>
      <field name="Resolution_Unit" type="string" length="16"/>
      <field name="Date_Time_Original" type="string" length="32"/>
      <field name="Brightness_Value" type="string" length="16"/>
      <field name="Exposure_Time" type="string" length="16"/>
      <field name="Software" type="string" length="32"/>
      <field name="Make" type="string" length="32"/>
      <field name="Aperture_Value" type="string" length="8"/>
      <field name="Light_Source" type="string" length="32"/>
      <field name="Exposure_Program" type="string" length="16"/>
      <field name="Date_Time_Digitized" type="string" length="32"/>
      <field name="Exif_Version" type="string" length="8"/>
      <field name="YCbCr_Positioning" type="string" length="32"/>
      <field name="Shutter_Speed_Value" type="string" length="16"/>
      <field name="FlashPix_Version" type="string" length="8"/>
      <field name="User_Comment" type="string" length="1024"/>
      <field name="Thumbnail_Data" type="string" queryable="false"/>
      <field name="Focal_Plane_Resolution_Unit" type="string" length="16"/>
      <field name="Y_Resolution" type="string" length="64"/>
      <field name="Thumbnail_Offset" type="string" length="16"/>
      <field name="Color_Space" type="string" length="16"/>
      <field name="Exposure_Index" type="string" length="16"/>
      <field name="Focal_Plane_X_Resolution" type="string" length="64"/>
      <field name="Scene_Type" type="string" length="32"/>
      <field name="Orientation" type="string" length="32"/>
      <field name="Image_Description" type="string" queryable="false"/>
      <field name="Metering_Mode" type="string" length="32"/>
      <field name="Focal_Plane_Y_Resolution" type="string" length="64"/>
      <field name="Model" type="string" length="64"/>
      <field name="Copyright" type="string" length="64"/>
      <field name="Subject_Distance" type="string" length="32"/>
      <field name="ISO_Speed_Ratings" type="string" length="16"/>
      <field name="Flash" type="string" length="32"/>
      <field name="Compression" type="string" length="32"/>
      <field name="File_Source" type="string" length="64"/>
      <field name="Compressed_Bits_Per_Pixel" type="string" length="16"/>
      <field name="Exif_Image_Width" type="string" length="16"/>
      <field name="Thumbnail_Length" type="string" length="16"/>
      <field name="Max_Aperture_Value" type="string" length="8"/>
      <field name="Photo_Location" type="string" length="64"/>
    </namespace>

  </schema>

  <tables>
    <table name="photo">
      <column name="photo.Sensing_Method"/>
      <column name="photo.Components_Configuration"/>
      <column name="photo.Exposure_Bias_Value"/>
      <column name="photo.Exif_Image_Height"/>
      <column name="photo.F_Number"/>
      <column name="photo.Focal_Length"/>
      <column name="photo.Date_Time"/>
      <column name="photo.X_Resolution"/>
      <column name="photo.Resolution_Unit"/>
      <column name="photo.Date_Time_Original"/>
      <column name="photo.Brightness_Value"/>
      <column name="photo.Exposure_Time"/>
      <column name="photo.Software"/>
      <column name="photo.Make"/>
      <column name="photo.Aperture_Value"/>
      <column name="photo.Light_Source"/>
      <column name="photo.Exposure_Program"/>
      <column name="photo.Date_Time_Digitized"/>
      <column name="photo.Exif_Version"/>
      <column name="photo.YCbCr_Positioning"/>
      <column name="photo.Shutter_Speed_Value"/>
      <column name="photo.FlashPix_Version"/>
      <column name="photo.User_Comment"/>
      <column name="photo.Focal_Plane_Resolution_Unit"/>
      <column name="photo.Y_Resolution"/>
      <column name="photo.Thumbnail_Offset"/>
      <column name="photo.Color_Space"/>
      <column name="photo.Exposure_Index"/>
      <column name="photo.Focal_Plane_X_Resolution"/>
      <column name="photo.Scene_Type"/>
      <column name="photo.Orientation"/>
      <column name="photo.Metering_Mode"/>
      <column name="photo.Focal_Plane_Y_Resolution"/>
      <column name="photo.Model"/>
      <column name="photo.Copyright"/>
      <column name="photo.Subject_Distance"/>
      <column name="photo.ISO_Speed_Ratings"/>
      <column name="photo.Flash"/>
      <column name="photo.Compression"/>
      <column name="photo.File_Source"/>
      <column name="photo.Compressed_Bits_Per_Pixel"/>
      <column name="photo.Exif_Image_Width"/>
      <column name="photo.Thumbnail_Length"/>
      <column name="photo.Max_Aperture_Value"/>
      <column name="photo.Photo_Location"/>
    </table>
  </tables>

  <fsViews>
    <fsView name="byMake" filename="${photo.Date_Time_Original}.jpg">
      <attribute name="photo.Make"/>
      <attribute name="photo.Model"/>
      <attribute name="photo.Flash"/>
      <attribute name="photo.Focal_Length"/>
    </fsView>
    <fsView name="byLocation" filename="${photo.Date_Time_Original}.jpg">
      <attribute name="photo.Photo_Location"/>
    </fsView>
  </fsViews>
  
</metadataConfig>
