Skip to content

Labels

String type properties are used for short descriptive text, such as a sector classification. For longer narrative descriptions, the type text is used.

Attribute Value Detail
name string Used in schema definitions
label Label plural: Labels
max_length 1024 Space to be allocated in fixed-length database definitions
matchable Suitable for use in entity matching
pivot Suitable for use as a pivot point for connecting to other entities

Python API

followthemoney.types.StringType

Bases: PropertyType

A simple string property with no additional semantics.

Source code in followthemoney/types/string.py
class StringType(PropertyType):
    """A simple string property with no additional semantics."""

    name = const("string")
    label = _("Label")
    plural = _("Labels")
    matchable = False
    max_length = 1024

    def node_id(self, value: str) -> None:
        return None