Define topic metadata - Fluid Topics - Latest

Fluid Topics Control File

Category
Technical Notes
Audience
public
Version
Latest

It is possible to define metadata for a topic file present in the archive as follows:

  1. Create a Fluid Topics control file.
  2. Find the resource node of the document containing the topic.
  3. Add a topics tag to the resource node.
  4. Add a topic tag to the topics node.
  5. Add a selector tag to the topic node.
  6. Add an originId tag with original originId of the topic to define metadata for.
  7. Close the selector tag.
  8. Add new metadata.

Since the topic must be present in the archive, the control file must be uploaded synchronously.

Defining topic metadata is not possible with FTML content.

The following lines show an example of a control file that defines metadata for a topic:

<?xml version="1.0" encoding="UTF-8"?>
<controlFile>
    <resources>
        <resource lang="en-GB">
            <filePath>path/to/document_id.h</filePath>
            <topics>
                <topic>
                    <selector>
                        <originId>original_topic_id</originId>
                    </selector>
                    <originId>new_origin_id</originId>
                    <clusterId>new_cluster_id</clusterId>
                    <title>new_title</title>
                    <originUrl>new_origin_url</originUrl>
                    <description>new_description</description>
                    <lastEdition>new_last_edition</lastEdition>
                    <metas>
                        <meta key="product">
                            <value>new_product_name</value>
                        </meta>
                    </metas>
                </topic>
            </topics>
        </resource>
    </resources>
</controlFile>
Element Required? Description
selector/originId Yes The originId of the targeted topic. For instructions, see Predict a topic's original originId.
originId No New value for ft:originId metadata.
clusterId No New value for ft:clusterId metadata.
title No New value for ft:title metadata.
description No New value for ft:description metadata.
lastEdition No New value for ft:lastEdition metadata.
originUrl No New value for ft:originUrl metadata.
metas No Contains all <meta> nodes.
meta No New custom metadata with key attribute as key, and <value> nodes as values.