Build a CERIF entity fragment
build_entityGenerate a CERIF 1.6 entity (e.g., person, project) with a unique ID, populate fields, and automatically add language attributes. Use build_document to assemble the entity into a valid CERIF document.
Instructions
Builds a single top-level CERIF 1.6 entity element (e.g. , , ) with a generated primary id. Pass values for scalar child elements (names like cfFamilyNames, cfFirstNames, cfBirthdate, cfGender, cfTitle, cfKeyw). Language-dependent elements automatically get cfLangCode/cfTrans attributes. Use build_document to wrap fragments into a valid CERIF document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Value for the primary id element (default: example-<entity>-1) | |
| lang | No | Language code for language-dependent elements (default "en") | |
| entity | Yes | Entity name or alias, e.g. "cfPers", "person", "cfResPubl" | |
| values | No | Map of child element name -> value, e.g. { cfFamilyNames: "Doe", cfFirstNames: "Jane", cfGender: "f" } |