Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function createVocabularyService

    • Create a new VocabularyService instance.

      Parameters

      • OptionaldomainsDir: string

        Optional override for the domain JSON directory path.

      Returns VocabularyService

      A new vocabulary service instance.

      Returns a fresh service with no domains loaded. Call VocabularyService.loadDomain before searching.

      The domainsDir parameter is optional — by default the service locates the bundled JSON files relative to this source file. Override it in tests to point at mock data.

      const svc = createVocabularyService();
      await svc.loadDomain('procurement');
      const results = await svc.search('vendor');