@oml/owl 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +46 -0
  2. package/out/index.d.ts +10 -0
  3. package/out/index.js +12 -0
  4. package/out/index.js.map +1 -0
  5. package/out/owl/owl-abox.d.ts +79 -0
  6. package/out/owl/owl-abox.js +765 -0
  7. package/out/owl/owl-abox.js.map +1 -0
  8. package/out/owl/owl-imports.d.ts +9 -0
  9. package/out/owl/owl-imports.js +102 -0
  10. package/out/owl/owl-imports.js.map +1 -0
  11. package/out/owl/owl-interfaces.d.ts +121 -0
  12. package/out/owl/owl-interfaces.js +3 -0
  13. package/out/owl/owl-interfaces.js.map +1 -0
  14. package/out/owl/owl-mapper.d.ts +80 -0
  15. package/out/owl/owl-mapper.js +1217 -0
  16. package/out/owl/owl-mapper.js.map +1 -0
  17. package/out/owl/owl-service.d.ts +65 -0
  18. package/out/owl/owl-service.js +552 -0
  19. package/out/owl/owl-service.js.map +1 -0
  20. package/out/owl/owl-shacl.d.ts +28 -0
  21. package/out/owl/owl-shacl.js +337 -0
  22. package/out/owl/owl-shacl.js.map +1 -0
  23. package/out/owl/owl-sparql.d.ts +71 -0
  24. package/out/owl/owl-sparql.js +260 -0
  25. package/out/owl/owl-sparql.js.map +1 -0
  26. package/out/owl/owl-store.d.ts +32 -0
  27. package/out/owl/owl-store.js +142 -0
  28. package/out/owl/owl-store.js.map +1 -0
  29. package/out/owl/owl-tbox.d.ts +98 -0
  30. package/out/owl/owl-tbox.js +575 -0
  31. package/out/owl/owl-tbox.js.map +1 -0
  32. package/out/owl-module.d.ts +15 -0
  33. package/out/owl-module.js +22 -0
  34. package/out/owl-module.js.map +1 -0
  35. package/package.json +52 -0
  36. package/src/index.ts +12 -0
  37. package/src/owl/owl-abox.ts +930 -0
  38. package/src/owl/owl-imports.ts +108 -0
  39. package/src/owl/owl-interfaces.ts +145 -0
  40. package/src/owl/owl-mapper.ts +1510 -0
  41. package/src/owl/owl-service.ts +642 -0
  42. package/src/owl/owl-shacl.ts +400 -0
  43. package/src/owl/owl-sparql.ts +317 -0
  44. package/src/owl/owl-store.ts +173 -0
  45. package/src/owl/owl-tbox.ts +727 -0
  46. package/src/owl-module.ts +52 -0
@@ -0,0 +1,52 @@
1
+ // Copyright (c) 2026 Modelware. All rights reserved.
2
+
3
+ import type { Module } from 'langium';
4
+ import { inject } from 'langium';
5
+ import { createDefaultModule, createDefaultSharedModule, type DefaultSharedModuleContext, type LangiumSharedServices, type PartialLangiumServices, type PartialLangiumSharedServices } from 'langium/lsp';
6
+ import {
7
+ OmlGeneratedModule,
8
+ OmlGeneratedSharedModule,
9
+ OmlModule,
10
+ OmlSharedModule,
11
+ OmlServices,
12
+ registerValidationChecks,
13
+ } from '@oml/language';
14
+ import { ReasoningService } from './owl/owl-service.js';
15
+
16
+ export type OwlAddedServices = {
17
+ reasoning: {
18
+ ReasoningService: ReasoningService
19
+ }
20
+ };
21
+
22
+ export type OwlServices = OmlServices & OwlAddedServices;
23
+
24
+ export const OwlModule: Module<OwlServices, PartialLangiumServices & OwlAddedServices> = {
25
+ reasoning: {
26
+ ReasoningService: (services) => new ReasoningService(services as OwlServices)
27
+ }
28
+ };
29
+
30
+ export function createOwlServices(context: DefaultSharedModuleContext): {
31
+ shared: LangiumSharedServices,
32
+ Oml: OwlServices
33
+ } {
34
+ const shared = inject(
35
+ createDefaultSharedModule(context),
36
+ OmlGeneratedSharedModule,
37
+ OmlSharedModule as Module<LangiumSharedServices, PartialLangiumSharedServices>
38
+ );
39
+ const Oml = inject(
40
+ createDefaultModule({ shared }),
41
+ OmlGeneratedModule,
42
+ OmlModule as Module<OwlServices, PartialLangiumServices>,
43
+ OwlModule
44
+ );
45
+ shared.ServiceRegistry.register(Oml);
46
+ registerValidationChecks(Oml);
47
+ void Oml.reasoning.ReasoningService;
48
+ if (!context.connection) {
49
+ shared.workspace.ConfigurationProvider.initialized({});
50
+ }
51
+ return { shared, Oml };
52
+ }