# configuration/strings/ontology.strings.ts

> 25 lines of code and 8 definitions.

Tree: GovLab Context
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/context#file-context-configuration-strings-ontology-strings-ts
Source text: https://banes-lab.com/source/context/configuration/strings/ontology.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/context/configuration/strings.md), after [configuration/strings/ontology.report.strings.ts](https://banes-lab.com/source/context/configuration/strings/ontology.report.strings.ts.md) and before [configuration/strings/reason.strings.ts](https://banes-lab.com/source/context/configuration/strings/reason.strings.ts.md).

## Definitions

- `debugLine` (lexical_declaration, line 3, exported)
- `duplicateRecordId` (lexical_declaration, line 7, exported)
- `emptyRecordId` (lexical_declaration, line 11, exported)
- `duplicateCollection` (lexical_declaration, line 15, exported)
- `collectionCycle` (lexical_declaration, line 19, exported)
- `unregisteredCollection` (lexical_declaration, line 23, exported)
- `unbuiltCollection` (lexical_declaration, line 27, exported)
- `missingDependency` (lexical_declaration, line 31, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md)

## Used by

- [core/factories/ontology.factory.ts](https://banes-lab.com/source/context/core/factories/ontology.factory.ts.md)
- [core/guards/context.guard.ts](https://banes-lab.com/source/context/core/guards/context.guard.ts.md)
- [core/registries/ontology.registry.ts](https://banes-lab.com/source/context/core/registries/ontology.registry.ts.md)
- [core/reporters/ontology.reporter.ts](https://banes-lab.com/source/context/core/reporters/ontology.reporter.ts.md)

## Linked from

- [core/factories](https://banes-lab.com/anatomy/context/folder-context-core-factories.md)
- [core/guards](https://banes-lab.com/anatomy/context/folder-context-core-guards.md)
- [core/registries](https://banes-lab.com/anatomy/context/folder-context-core-registries.md)
- [core/reporters](https://banes-lab.com/anatomy/context/folder-context-core-reporters.md)

## Source

```typescript
import { DEBUG_NAMESPACE } from "#configuration/constants/ontology.constants";

export const debugLine = function debugLine(message: string): string {
    return `[${DEBUG_NAMESPACE}] ${message}`;
};

export const duplicateRecordId = function duplicateRecordId(label: string, id: string): string {
    return `${label}: duplicate id "${id}", and the later record wins`;
};

export const emptyRecordId = function emptyRecordId(label: string): string {
    return `${label}: skipped a record with an empty id`;
};

export const duplicateCollection = function duplicateCollection(name: string): string {
    return `ontology collection "${name}" is already registered`;
};

export const collectionCycle = function collectionCycle(name: string): string {
    return `ontology collection dependency cycle at "${name}"`;
};

export const unregisteredCollection = function unregisteredCollection(name: string): string {
    return `ontology collection "${name}" is not registered`;
};

export const unbuiltCollection = function unbuiltCollection(name: string): string {
    return `govlab.context: collection "${name}" was not built`;
};

export const missingDependency = function missingDependency(collection: string, dependency: string): string {
    return `${collection} collection requires the ${dependency} collection`;
};
```
