Class: EasyData::RDF::EXIF

Inherits:
Namespaces show all
Defined in:
lib/data_models/namespaces/exif.rb

Constant Summary collapse

@@uri =
"http://www.w3.org/2003/12/exif/ns#"
@@properties =
{"_unknown" => "",
    "apertureValue" => "",
    "artist" => "",
    "bitsPerSample" => "",
    "brightnessValue" => "",
    "cfaPattern" => "",
    "colorSpace" => "",
    "componentsConfiguration" => "",
    "compressedBitsPerPixel" => "",
    "compression" => "",
    "contrast" => "",
    "copyright" => "",
    "customRendered" => "",
    "datatype" => "",
    "date" => "",
    "dateAndOrTime" => "",
    "dateTime" => "",
    "dateTimeDigitized" => "",
    "dateTimeOriginal" => "",
    "deviceSettingDescription" => "",
    "digitalZoomRatio" => "",
    "exifAttribute" => "",
    "exifVersion" => "",
    "exif_IFD_Pointer" => "",
    "exifdata" => "",
    "exposureBiasValue" => "",
    "exposureIndex" => "",
    "exposureMode" => "",
    "exposureProgram" => "",
    "exposureTime" => "",
    "fNumber" => "",
    "fileSource" => "",
    "flash" => "",
    "flashEnergy" => "",
    "flashpixVersion" => "",
    "focalLength" => "",
    "focalLengthIn35mmFilm" => "",
    "focalPlaneResolutionUnit" => "",
    "focalPlaneXResolution" => "",
    "focalPlaneYResolution" => "",
    "gainControl" => "",
    "geo" => "",
    "gpsAltitude" => "",
    "gpsAltitudeRef" => "",
    "gpsAreaInformation" => "",
    "gpsDOP" => "",
    "gpsDateStamp" => "",
    "gpsDestBearing" => "",
    "gpsDestBearingRef" => "",
    "gpsDestDistance" => "",
    "gpsDestDistanceRef" => "",
    "gpsDestLatitude" => "",
    "gpsDestLatitudeRef" => "",
    "gpsDestLongitude" => "",
    "gpsDestLongitudeRef" => "",
    "gpsDifferential" => "",
    "gpsImgDirection" => "",
    "gpsImgDirectionRef" => "",
    "gpsInfo" => "",
    "gpsInfo_IFD_Pointer" => "",
    "gpsLatitude" => "",
    "gpsLatitudeRef" => "",
    "gpsLongitude" => "",
    "gpsLongitudeRef" => "",
    "gpsMapDatum" => "",
    "gpsMeasureMode" => "",
    "gpsProcessingMethod" => "",
    "gpsSatellites" => "",
    "gpsSpeed" => "",
    "gpsSpeedRef" => "",
    "gpsStatus" => "",
    "gpsTimeStamp" => "",
    "gpsTrack" => "",
    "gpsTrackRef" => "",
    "gpsVersionID" => "",
    "height" => "",
    "ifdPointer" => "",
    "imageConfig" => "",
    "imageDataCharacter" => "",
    "imageDataStruct" => "",
    "imageDescription" => "",
    "imageLength" => "",
    "imageUniqueID" => "",
    "imageWidth" => "",
    "interopInfo" => "",
    "interoperabilityIndex" => "",
    "interoperabilityVersion" => "",
    "interoperability_IFD_Pointer" => "",
    "isoSpeedRatings" => "",
    "jpegInterchangeFormat" => "",
    "jpegInterchangeFormatLength" => "",
    "length" => "",
    "lightSource" => "",
    "make" => "",
    "makerNote" => "",
    "maxApertureValue" => "",
    "meter" => "",
    "meteringMode" => "",
    "mm" => "",
    "model" => "",
    "oecf" => "",
    "orientation" => "",
    "photometricInterpretation" => "",
    "pictTaking" => "",
    "pimBrightness" => "",
    "pimColorBalance" => "",
    "pimContrast" => "",
    "pimInfo" => "",
    "pimSaturation" => "",
    "pimSharpness" => "",
    "pixelXDimension" => "",
    "pixelYDimension" => "",
    "planarConfiguration" => "",
    "primaryChromaticities" => "",
    "printImageMatching_IFD_Pointer" => "",
    "recOffset" => "",
    "referenceBlackWhite" => "",
    "relatedFile" => "",
    "relatedImageFileFormat" => "",
    "relatedImageLength" => "",
    "relatedImageWidth" => "",
    "relatedSoundFile" => "",
    "resolution" => "",
    "resolutionUnit" => "",
    "rowsPerStrip" => "",
    "samplesPerPixel" => "",
    "saturation" => "",
    "sceneCaptureType" => "",
    "sceneType" => "",
    "seconds" => "",
    "sensingMethod" => "",
    "sharpness" => "",
    "shutterSpeedValue" => "",
    "software" => "",
    "spatialFrequencyResponse" => "",
    "spectralSensitivity" => "",
    "stripByteCounts" => "",
    "stripOffsets" => "",
    "subSecTime" => "",
    "subSecTimeDigitized" => "",
    "subSecTimeOriginal" => "",
    "subjectArea" => "",
    "subjectDistance" => "",
    "subjectDistanceRange" => "",
    "subjectLocation" => "",
    "subseconds" => "",
    "tag_number" => "",
    "tagid" => "",
    "transferFunction" => "",
    "userComment" => "",
    "userInfo" => "",
    "versionInfo" => "",
    "whiteBalance" => "",
    "whitePoint" => "",
    "width" => "",
    "xResolution" => "",
    "yCbCrCoefficients" => "",
    "yCbCrPositioning" => "",
    "yCbCrSubSampling" => "",
    "yResolution" => "" 
}

Class Method Summary collapse

Methods inherited from Namespaces

list, list_form

Class Method Details

.get_uriObject

Return Namespace URI



169
170
171
# File 'lib/data_models/namespaces/exif.rb', line 169

def self.get_uri
  @@uri
end

.propertiesObject

Return a list of Namespace’s properties



179
180
181
# File 'lib/data_models/namespaces/exif.rb', line 179

def self.properties
   @@properties.keys
end

.properties_formObject



183
184
185
186
187
188
189
# File 'lib/data_models/namespaces/exif.rb', line 183

def self.properties_form 
  list = {}
  @@properties.keys.each do |property|
    list[property] = property
  end
  list
end

.to_s(property, uri, value) ⇒ Object

Return tag to rdf doc



174
175
176
# File 'lib/data_models/namespaces/exif.rb', line 174

def self.to_s(property,uri,value)
   @@properties[property].gsub("%uri%",uri).gsub('%value%',value)
end