@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.
- package/README.md +46 -0
- package/out/index.d.ts +10 -0
- package/out/index.js +12 -0
- package/out/index.js.map +1 -0
- package/out/owl/owl-abox.d.ts +79 -0
- package/out/owl/owl-abox.js +765 -0
- package/out/owl/owl-abox.js.map +1 -0
- package/out/owl/owl-imports.d.ts +9 -0
- package/out/owl/owl-imports.js +102 -0
- package/out/owl/owl-imports.js.map +1 -0
- package/out/owl/owl-interfaces.d.ts +121 -0
- package/out/owl/owl-interfaces.js +3 -0
- package/out/owl/owl-interfaces.js.map +1 -0
- package/out/owl/owl-mapper.d.ts +80 -0
- package/out/owl/owl-mapper.js +1217 -0
- package/out/owl/owl-mapper.js.map +1 -0
- package/out/owl/owl-service.d.ts +65 -0
- package/out/owl/owl-service.js +552 -0
- package/out/owl/owl-service.js.map +1 -0
- package/out/owl/owl-shacl.d.ts +28 -0
- package/out/owl/owl-shacl.js +337 -0
- package/out/owl/owl-shacl.js.map +1 -0
- package/out/owl/owl-sparql.d.ts +71 -0
- package/out/owl/owl-sparql.js +260 -0
- package/out/owl/owl-sparql.js.map +1 -0
- package/out/owl/owl-store.d.ts +32 -0
- package/out/owl/owl-store.js +142 -0
- package/out/owl/owl-store.js.map +1 -0
- package/out/owl/owl-tbox.d.ts +98 -0
- package/out/owl/owl-tbox.js +575 -0
- package/out/owl/owl-tbox.js.map +1 -0
- package/out/owl-module.d.ts +15 -0
- package/out/owl-module.js +22 -0
- package/out/owl-module.js.map +1 -0
- package/package.json +52 -0
- package/src/index.ts +12 -0
- package/src/owl/owl-abox.ts +930 -0
- package/src/owl/owl-imports.ts +108 -0
- package/src/owl/owl-interfaces.ts +145 -0
- package/src/owl/owl-mapper.ts +1510 -0
- package/src/owl/owl-service.ts +642 -0
- package/src/owl/owl-shacl.ts +400 -0
- package/src/owl/owl-sparql.ts +317 -0
- package/src/owl/owl-store.ts +173 -0
- package/src/owl/owl-tbox.ts +727 -0
- 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
|
+
}
|