FotoML v.3 Elements
<rdf:RDF>
This is the root element, which envelops RDF data. It is required by the RDF standard.
Required attributes:
xmlns:ftg - definition of the FotoML namespace - ftg
xmlns:rdf - definition of RDF namespace
<rdf:Description>
This sub-element of <RDF> envelops FotoML resource definition.
Required attributes:
rdf:about - the full URI of the picture. When the full URI is unavailable or does not make much sense (for example the picture is being tagged on PC) a picutre file name is stored here.
<ftg:version>
Version of FotoML format.
<ftg:layer>
Describes layer of tags (a set of texts grouped together). There must be at least one layer. Each tag should belong to one of the layers.
Required attributes:
rdf:parseType="Collection" - is needed keep format compatible with RDF; it indicates that elements inside it can be repeated.
UID - a unique ID of each layer.
The current version of FotoTagger supports only one layer.
<ftg:label>
This element describes is an envelop for FotoML tag (picture annotation). It must belong to a <ftg:layer>.
Optional attributes:
UID - This attribute is helpful to facilitate referring to specific tag.
<ftg:name>
Text of the FotoTagger tag (annotation text). It does not have attributes.
<ftg:pos_x>, <ftg:pos_y>
Horizontal and vertical position of the tag (annotation) in pixels. If the image is resized these numbers should be recalculated based on the original image size <ftg:pos_x0> and <ftg:pos_y0>. They belong to the <ftg:label> element. Don't have attributes.
<ftg:region>
Describes a region associated with label. Has an attribute <ftg:region_type="rect"> showing that the area associated with the label is rectangular.
<ftg:region_left>, <ftg:region_top>, <ftg:region_width>, <ftg:region_height>
These elements are nested into <ftg:region> and contain coordinates of the region's top left corner and region's width and height.
<ftg:label_style href="style.css"/>
Contains a link to stylesheet file or the style string. This style affects only the label it belongs to and it overrides global style settings.
<ftg:caption_name>
Text of the picture title. Does not have attributes. Belongs to <ftg:layer> and is on the same level as <ftg:label>.
<ftg:caption_pos_x>, <ftg:caption_pos_y>
Horizontal and vertical position of the caption in pixels. If the image is resized these numbers should be recalculated based on the original image size <ftg:pos_x0> and <ftg:pos_y0>. Don't have attributes. They belongs to <ftg:layer> and are located on the same level as <ftg:label>.
<ftg:caption_style href="style.css"/>
Contains a link to stylesheet file or the style string. This style affects only the label it belongs to and it overrides global style settings.
<ftg: size_x>, <ftg: size_y>
Image size in pixels, taken at the moment when the picture was tagged (annotated). That's why it differs from from RDF elements for size image specification.
<ftg:taggers rdf:parseType="Collection">
An optional element listing the taggers (authors) of tags on the picture. Must contain one or more <ftg:tagger> elements.
Required attributes:
rdf:parseType="Collection" - is needed keep format compatible with RDF; it indicates that elements inside it can be repeated.
<ftg:mat_size_top>, <ftg:mat_size_bottom>, <ftg:mat_size_left>, <ftg:mat_size_right>
Optional elements describing size of the mat (space around the picture). The current version of FotoTagger does not support them.
<ftg:tagger>
An optional element describing the tagger (author) of all tags on the picture. It is a sub-element of <ftg:taggers> element. This element contains tagger's first and last name, contact information and license type.
Required attributes:
UID - unique ID of the tagger (author).
The current version of FotoTagger does not support this element.
<ftg:style href="style.css" ftg:callout_color="255" ftg:show_regions="1"/>
href - a link to a global stylesheet file or the style string.
To directly set colors use following attributes:
color - color of comment background
text_color - color of comment text
caption_color - color of caption background
caption_text_color - color of caption text
callout_color - color of callout line.
If for some reason it's enough to use callouts and you don't want to show regions use following attribute:
show_regions - allows to remember curernt state - regions shown or not.
Learn more about FotoML structure.
|