afs_annotations_merge - AFS - Reference Guides

AFS Filters Description

Product
AFS
AFS_Version
7.12
Category
Reference Guides
language
English

Used to merge XML annotate block for afs_layer_annotate AFS filter.

The filter is declared with the afs_annotations_merge type. It is in the antidot-paf-misc package. It is a visitor filter.

This filter can be instantiated only once at any given moment. It will not read the "instances" parameter in the configuration.

The Merge annotation files filter specifications are described in the following table:

Parameter name

Mandatory

Type

Default

Description

enable_flexions

No

string

false

Value to export for the "flexions" attribute in the output file (see afs_layer_annotate for semantic)

enable_lowercase

No

string

false

Value to export for the "lowercase" attribute in the output file (see afs_layer_annotate for semantic)

remove_accents

No

string

false

Value to export for the "remove_accents" attribute in the output file (see afs_layer_annotate for semantic)

language_tag

No

string

fr

Value to export for the "xml:lang" attribute in the output file (see afs_layer_annotate for semantic)

output_file

No

file

afs_merge_files_result.xml

The output file

input_layer

No

layer

CONTENTS

It is the input layer which contains annotation block

old_annotation_file

No

string

A new file is generated

An old annotation file, if available

See afs_layer_annotate filter documentation for more details of input/output format uses. Features:
  • support of metadata for normalize : flexions, lowercase and removeAccents
  • language tag
  • incremental mode : load an old annotation file to complete it with new annotation statements

Input format (what the input layer should contain):
<afs:annotations label="my optional label">
    <afs:annotation uri="urn:afs:skos:concept:52013599904094111601825679">
        <afs:labels>
            <afs:label>my label</afs:label>
            <afs:label>my other label</afs:label>
        </afs:labels>
    </afs:annotation>
<afs:annotations>
Output example:
<afs:annotate xmlns:afs="http://ref.antidot.net/v7/afs#">
    <afs:normalize xml:lang="#LANGUAGE_TAG_PARAMETER" flexions="#FLEXION_PARAMETER" lowercase="#LOWER_PARAMETER" removeAccents="#REMOVE_ACCENT_PARAMETER"/>
        <afs:annotations label="mix cantons et matiere">
             <!-- Here the afs:annotation blocks in input layers -->
        </afs:annotations>
    ...
These output data correspond to the input XML file of the afs_layer_annotate filter.