Create a function to create a deeper context. A deeper context is a context with a longer path. Deep, because mapping requires for recursive data mapping and entity generation.

  • Parameters

    • disableLogging: boolean

    Returns (
        context: StrategyContext,
        pathElement: string,
    ) => {
        authorityAccess?: Record<string, AuthorityConfiguration>;
        authorityIRI: string;
        createDeeperContext: CreateDeeperContextFn;
        currentMapping?: DeclarativeMappings;
        getPrimaryIRIBySecondaryIRI: (
            secondaryIRI: string,
            authorityIRI: string,
            typeIRI?: string,
        ) => Promise<string>;
        logger: {
            error: (message: string) => void;
            log: (message: string) => void;
            warn: (message: string) => void;
        };
        mappingTable?: DeclarativeMapping;
        newIRI: (typeIRI: string) => string;
        normDataMappings: NormDataMappings<DeclarativeMapping>;
        onNewDocument?: (document: any) => Promise<any>;
        options?: {
            strictCheckSourceData?: boolean;
            strictCheckTargetData?: boolean;
        };
        path: string[];
        primaryFields: Partial;
        searchEntityByLabel: (label: string, typeIRI: string) => Promise<string>;
        typeIRItoTypeName: IRIToStringFn;
    }