@intellectual-frontiers/libraries 0.5.0 → 0.5.1
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/dist/changes.js +2 -1
- package/dist/check.js +21 -2
- package/dist/generate-ontology.d.ts +2 -0
- package/dist/generate-ontology.js +41 -1
- package/dist/metapackages.js +0 -3
- package/dist/readme.js +3 -0
- package/package.json +13 -13
- package/src/changes.ts +2 -1
- package/src/check.ts +21 -2
- package/src/generate-ontology.ts +42 -1
- package/src/metapackages.ts +0 -3
- package/src/readme.ts +3 -0
package/dist/changes.js
CHANGED
|
@@ -45,6 +45,7 @@ import { readSpecTexts } from "@intellectual-frontiers/mizan/spec-files";
|
|
|
45
45
|
import { packagingTerms } from "@intellectual-frontiers/ontology/audit";
|
|
46
46
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
47
47
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
48
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
48
49
|
import { terms } from "@intellectual-frontiers/ontology/mizan";
|
|
49
50
|
/** The rules that need no range of commits: the declaration's own, and its history. */
|
|
50
51
|
const WITHOUT_RANGE = ["changes/declaration", "changes/gate-relaxed"];
|
|
@@ -115,7 +116,7 @@ function sourcesUnder(root) {
|
|
|
115
116
|
}
|
|
116
117
|
/** The citations of requirements by the terms of commons' own ontologies (`mz:definedBy`), for the chain's third stage (`--terms commons`, and the default of `--trace`). */
|
|
117
118
|
function termCitations() {
|
|
118
|
-
return [...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms].map((t) => ({
|
|
119
|
+
return [...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms].map((t) => ({
|
|
119
120
|
term: t.values.termIri,
|
|
120
121
|
cites: t.values.definedBy ?? [],
|
|
121
122
|
file: "commons/ontology",
|
package/dist/check.js
CHANGED
|
@@ -26,6 +26,7 @@ import { audienceModels, bases, classes, conformanceLevels, conformanceRequireme
|
|
|
26
26
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
27
27
|
import * as ifrOntology from "@intellectual-frontiers/ontology/ifr";
|
|
28
28
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
29
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
29
30
|
import { pm } from "@intellectual-frontiers/ontology/supply-chain/packaging";
|
|
30
31
|
import { rulePlugins } from "@intellectual-frontiers/mizan/rules";
|
|
31
32
|
import { holdHarness } from "@intellectual-frontiers/mizan/harness";
|
|
@@ -57,7 +58,7 @@ export function termRecordsOf(audit) {
|
|
|
57
58
|
}
|
|
58
59
|
/** Mizan's own terms and the packaging ontology's as the rules read them. */
|
|
59
60
|
export function mizanTermRecords() {
|
|
60
|
-
return termRecordsOf([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...ifrOntology.terms]);
|
|
61
|
+
return termRecordsOf([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms, ...ifrOntology.terms]);
|
|
61
62
|
}
|
|
62
63
|
/** The prefixes of commons' own ontologies and their namespaces. */
|
|
63
64
|
const PREFIXES = {
|
|
@@ -65,6 +66,7 @@ const PREFIXES = {
|
|
|
65
66
|
pm: "https://www.intellectualfrontiers.com/ontology/packaging#",
|
|
66
67
|
ifccm: ifccmOntology.IFCCM.iri,
|
|
67
68
|
ifqs: ifqsOntology.IFQS.iri,
|
|
69
|
+
oto: otoOntology.OTO.iri,
|
|
68
70
|
ifr: ifrOntology.IFR.iri,
|
|
69
71
|
};
|
|
70
72
|
/** The CURIE of a term of commons' own ontologies: `mz:` or `pm:` and its local name, or the IRI where it is of neither. */
|
|
@@ -76,7 +78,7 @@ function curieOf(iri) {
|
|
|
76
78
|
}
|
|
77
79
|
/** The deprecated terms of commons' own ontologies, by CURIE, with what replaces each (0018-standards-first): a specification that names one is found. */
|
|
78
80
|
export function deprecatedTerms() {
|
|
79
|
-
return new Map([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...ifrOntology.terms].flatMap((t) => t.values.deprecatedOn === undefined ? [] : [[curieOf(t.values.termIri), curieOf(t.values.replacedBy ?? "")]]));
|
|
81
|
+
return new Map([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms, ...ifrOntology.terms].flatMap((t) => t.values.deprecatedOn === undefined ? [] : [[curieOf(t.values.termIri), curieOf(t.values.replacedBy ?? "")]]));
|
|
80
82
|
}
|
|
81
83
|
/** The command line. Returns the exit status: 0, or 1 where a finding is new or a baseline line is stale. */
|
|
82
84
|
export function main(argv, plugins = rulePlugins, today = new Date().toISOString().slice(0, 10)) {
|
|
@@ -126,6 +128,11 @@ export function main(argv, plugins = rulePlugins, today = new Date().toISOString
|
|
|
126
128
|
ontology: ifqsOntology.classes.map((c) => c.iri),
|
|
127
129
|
recorded: ifqsOntology.terms.map((t) => t.values.termIri),
|
|
128
130
|
},
|
|
131
|
+
{
|
|
132
|
+
file: "commons/ontology/src/oto/oto.ts",
|
|
133
|
+
ontology: otoOntology.classes.map((c) => c.iri),
|
|
134
|
+
recorded: otoOntology.terms.map((t) => t.values.termIri),
|
|
135
|
+
},
|
|
129
136
|
{
|
|
130
137
|
file: "commons/ontology/src/ifr/ifr.ts",
|
|
131
138
|
ontology: ifrOntology.classes.map((c) => c.iri),
|
|
@@ -146,6 +153,18 @@ export function main(argv, plugins = rulePlugins, today = new Date().toISOString
|
|
|
146
153
|
...Object.keys(audienceModels),
|
|
147
154
|
]),
|
|
148
155
|
pm: new Set(Object.keys(pm)),
|
|
156
|
+
oto: new Set([
|
|
157
|
+
...Object.keys(otoOntology.oto),
|
|
158
|
+
...[
|
|
159
|
+
otoOntology.domains,
|
|
160
|
+
otoOntology.invariants,
|
|
161
|
+
otoOntology.pillars,
|
|
162
|
+
otoOntology.principles,
|
|
163
|
+
otoOntology.maturityLevels,
|
|
164
|
+
otoOntology.dimensions,
|
|
165
|
+
otoOntology.alignmentStates,
|
|
166
|
+
].flatMap((l) => Object.keys(l)),
|
|
167
|
+
]),
|
|
149
168
|
ifr: ifrOntology.termNames,
|
|
150
169
|
ifccm: new Set([
|
|
151
170
|
...Object.keys(ifccmOntology.ifccm),
|
|
@@ -11,6 +11,8 @@ export declare const MIZAN: OntologyPublication;
|
|
|
11
11
|
export declare const IFCCM: OntologyPublication;
|
|
12
12
|
/** The ontology of the Intellectual Frontiers Quality System (commons 0021-ifqs, 0022-trust), as it is published. */
|
|
13
13
|
export declare const IFQS: OntologyPublication;
|
|
14
|
+
/** The Operational Truth Ontology (commons ontology 0002-oto), as it is published. */
|
|
15
|
+
export declare const OTO: OntologyPublication;
|
|
14
16
|
/** The ontology of Intellectual Frontiers Releases (commons 0026-works-versioning), as it is published. */
|
|
15
17
|
export declare const IFR: OntologyPublication;
|
|
16
18
|
/** The ontology of Kanon (commons 0033-kanon), as it is published. */
|
|
@@ -19,6 +19,7 @@ import { Authority, bases, classes, Decision, files, integrationDirections, rung
|
|
|
19
19
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
20
20
|
import * as ifrOntology from "@intellectual-frontiers/ontology/ifr";
|
|
21
21
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
22
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
22
23
|
import * as kanonOntology from "@intellectual-frontiers/ontology/kanon";
|
|
23
24
|
import { formatRdfFinding, validate } from "@intellectual-frontiers/rdf";
|
|
24
25
|
import { stdio } from "@intellectual-frontiers/system";
|
|
@@ -172,6 +173,45 @@ export const IFQS = {
|
|
|
172
173
|
viewTitle: "Intellectual Frontiers Quality System: the ontology",
|
|
173
174
|
license: CC0,
|
|
174
175
|
};
|
|
176
|
+
/** The Operational Truth Ontology (commons ontology 0002-oto), as it is published. */
|
|
177
|
+
export const OTO = {
|
|
178
|
+
name: "oto",
|
|
179
|
+
ns: { prefix: "oto", iri: otoOntology.OTO.iri },
|
|
180
|
+
idNs: { prefix: "mzid", iri: MZID.iri },
|
|
181
|
+
curies: [
|
|
182
|
+
["oto", otoOntology.OTO.iri],
|
|
183
|
+
["ifqs", ifqsOntology.IFQS.iri],
|
|
184
|
+
["mz", MZ.iri],
|
|
185
|
+
["xsd", "http://www.w3.org/2001/XMLSchema#"],
|
|
186
|
+
["rdfs", "http://www.w3.org/2000/01/rdf-schema#"],
|
|
187
|
+
["skos", "http://www.w3.org/2004/02/skos/core#"],
|
|
188
|
+
["dcterms", "http://purl.org/dc/terms/"],
|
|
189
|
+
["prov", "http://www.w3.org/ns/prov#"],
|
|
190
|
+
],
|
|
191
|
+
files: otoOntology.files,
|
|
192
|
+
ontology: otoOntology.otoOntology,
|
|
193
|
+
classes: otoOntology.classes,
|
|
194
|
+
properties: otoOntology.properties,
|
|
195
|
+
terms: otoOntology.terms,
|
|
196
|
+
schemas: [otoOntology.DomainSchema, otoOntology.MaturityLevelSchema, otoOntology.Alignment],
|
|
197
|
+
lists: listsOf("oto", [
|
|
198
|
+
["Domain", otoOntology.domains],
|
|
199
|
+
["Invariant", otoOntology.invariants],
|
|
200
|
+
["Pillar", otoOntology.pillars],
|
|
201
|
+
["Principle", otoOntology.principles],
|
|
202
|
+
["MaturityLevel", otoOntology.maturityLevels],
|
|
203
|
+
["Dimension", otoOntology.dimensions],
|
|
204
|
+
["AlignmentState", otoOntology.alignmentStates],
|
|
205
|
+
]),
|
|
206
|
+
source: "commons/ontology/src/oto/*.ts",
|
|
207
|
+
run: RUN,
|
|
208
|
+
shapes: { prefix: "otosh", iri: "https://www.intellectualfrontiers.com/ontology/oto-shapes#" },
|
|
209
|
+
schemasIri: "https://www.intellectualfrontiers.com/ontology/oto-schemas",
|
|
210
|
+
sssomSetId: "https://www.intellectualfrontiers.com/ontology/oto-mappings",
|
|
211
|
+
sssomCuries: { dcterms: "http://purl.org/dc/terms/", prov: "http://www.w3.org/ns/prov#", ifqs: ifqsOntology.IFQS.iri },
|
|
212
|
+
viewTitle: "Operational Truth Ontology",
|
|
213
|
+
license: CC0,
|
|
214
|
+
};
|
|
175
215
|
/** The ontology of Intellectual Frontiers Releases (commons 0026-works-versioning), as it is published. */
|
|
176
216
|
export const IFR = {
|
|
177
217
|
name: "ifr",
|
|
@@ -241,7 +281,7 @@ export const KANON = {
|
|
|
241
281
|
license: CC0,
|
|
242
282
|
};
|
|
243
283
|
/** The ontologies of commons that are published, each from its own typed modules: Mizan's, then the ones its specifications define. */
|
|
244
|
-
export const publications = [MIZAN, IFCCM, IFQS, IFR, KANON];
|
|
284
|
+
export const publications = [MIZAN, IFCCM, IFQS, OTO, IFR, KANON];
|
|
245
285
|
/** Where the generated files are downloaded from: this repository's `commons/` folder on its default branch. */
|
|
246
286
|
const DOWNLOAD_BASE = "https://raw.githubusercontent.com/intellectual-frontiers/.github/main/commons/";
|
|
247
287
|
/** The exports of the ontology (0019-mizan-integrations FR-010): everything but its Turtle, by its path from commons' folder. */
|
package/dist/metapackages.js
CHANGED
|
@@ -27,14 +27,11 @@ import { DEFAULT_LICENSE } from "./license/standard.js";
|
|
|
27
27
|
import { ROLE_OF } from "./readme.js";
|
|
28
28
|
/** The libraries that are not in any set yet, each with why: they declare npm and are not ready to be installed (commons 0036-distribution FR-006). A library leaves this list when its owner releases it. */
|
|
29
29
|
export const HELD_BACK = new Map([
|
|
30
|
-
["archon", "the Archon library is not released yet"],
|
|
31
30
|
["archon-dialect-apt", "a dialect of Archon, which is not released yet"],
|
|
32
31
|
["archon-dialect-homebrew", "a dialect of Archon, which is not released yet"],
|
|
33
32
|
["archon-dialect-mise", "a dialect of Archon, which is not released yet"],
|
|
34
33
|
["archon-dialect-native-pinned", "a dialect of Archon, which is not released yet"],
|
|
35
34
|
["archon-dialect-winget", "a dialect of Archon, which is not released yet"],
|
|
36
|
-
["package-managers", "the kit of the dialects of Archon and Toolchain, which are not released yet"],
|
|
37
|
-
["toolchain", "the Toolchain library is not released yet"],
|
|
38
35
|
]);
|
|
39
36
|
/** The roles' sets: a role is in exactly one. */
|
|
40
37
|
export const BUNDLE_OF_ROLE = {
|
package/dist/readme.js
CHANGED
|
@@ -82,6 +82,9 @@ export const ROLE_OF = new Map([
|
|
|
82
82
|
["integrations-github", "program"],
|
|
83
83
|
["libraries", "program"],
|
|
84
84
|
["repoctl", "program"],
|
|
85
|
+
["machine-probe", "program"],
|
|
86
|
+
["lab", "program"],
|
|
87
|
+
["evidence-capture", "program"],
|
|
85
88
|
["integrations-fhir", "standard"],
|
|
86
89
|
["integrations-x12", "standard"],
|
|
87
90
|
["mizan", "standard"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intellectual-frontiers/libraries",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The libraries of a repository of commons as code: the manifest of a library and the check that it and its folder agree, which libraries a change affects, the typed workflows of GitHub Actions and their generator, the pinned Bun, the packer that builds, inspects and packs a library for npm with its declarations, and the commands that hold a whole repository to Mizan (check, change control, versions, the register and the ontologies).",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"type": "module",
|
|
@@ -142,18 +142,18 @@
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
|
-
"@intellectual-frontiers/core": "0.2.
|
|
146
|
-
"@intellectual-frontiers/crypto": "0.2.
|
|
147
|
-
"@intellectual-frontiers/formats": "0.2.
|
|
148
|
-
"@intellectual-frontiers/githost": "0.2.
|
|
149
|
-
"@intellectual-frontiers/kanon": "0.3.
|
|
150
|
-
"@intellectual-frontiers/mizan": "0.2.
|
|
151
|
-
"@intellectual-frontiers/net": "0.2.
|
|
152
|
-
"@intellectual-frontiers/ontology": "0.4.
|
|
153
|
-
"@intellectual-frontiers/quality": "0.3.
|
|
154
|
-
"@intellectual-frontiers/rdf": "0.2.
|
|
155
|
-
"@intellectual-frontiers/system": "0.2.
|
|
156
|
-
"@intellectual-frontiers/terminal": "0.2.
|
|
145
|
+
"@intellectual-frontiers/core": "0.2.1",
|
|
146
|
+
"@intellectual-frontiers/crypto": "0.2.1",
|
|
147
|
+
"@intellectual-frontiers/formats": "0.2.1",
|
|
148
|
+
"@intellectual-frontiers/githost": "0.2.1",
|
|
149
|
+
"@intellectual-frontiers/kanon": "0.3.1",
|
|
150
|
+
"@intellectual-frontiers/mizan": "0.2.1",
|
|
151
|
+
"@intellectual-frontiers/net": "0.2.1",
|
|
152
|
+
"@intellectual-frontiers/ontology": "0.4.1",
|
|
153
|
+
"@intellectual-frontiers/quality": "0.3.1",
|
|
154
|
+
"@intellectual-frontiers/rdf": "0.2.1",
|
|
155
|
+
"@intellectual-frontiers/system": "0.2.1",
|
|
156
|
+
"@intellectual-frontiers/terminal": "0.2.1"
|
|
157
157
|
},
|
|
158
158
|
"files": [
|
|
159
159
|
"dist",
|
package/src/changes.ts
CHANGED
|
@@ -80,6 +80,7 @@ import { readSpecTexts } from "@intellectual-frontiers/mizan/spec-files";
|
|
|
80
80
|
import { packagingTerms } from "@intellectual-frontiers/ontology/audit";
|
|
81
81
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
82
82
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
83
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
83
84
|
import { terms } from "@intellectual-frontiers/ontology/mizan";
|
|
84
85
|
|
|
85
86
|
/** One rule's result in a run of the check (0020-ifccm FR-031): its findings, or the reason it did not run. Its shape is the quality system's `CheckRule`, so a caller keeps it as a record without this file knowing the quality system. */
|
|
@@ -174,7 +175,7 @@ function sourcesUnder(root: string): readonly { readonly path: string; readonly
|
|
|
174
175
|
|
|
175
176
|
/** The citations of requirements by the terms of commons' own ontologies (`mz:definedBy`), for the chain's third stage (`--terms commons`, and the default of `--trace`). */
|
|
176
177
|
function termCitations(): readonly { readonly term: string; readonly cites: readonly string[]; readonly file: string }[] {
|
|
177
|
-
return [...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms].map((t) => ({
|
|
178
|
+
return [...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms].map((t) => ({
|
|
178
179
|
term: t.values.termIri,
|
|
179
180
|
cites: t.values.definedBy ?? [],
|
|
180
181
|
file: "commons/ontology",
|
package/src/check.ts
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
39
39
|
import * as ifrOntology from "@intellectual-frontiers/ontology/ifr";
|
|
40
40
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
41
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
41
42
|
import { pm } from "@intellectual-frontiers/ontology/supply-chain/packaging";
|
|
42
43
|
import { type RulePlugin, rulePlugins } from "@intellectual-frontiers/mizan/rules";
|
|
43
44
|
import { holdHarness } from "@intellectual-frontiers/mizan/harness";
|
|
@@ -73,7 +74,7 @@ export function termRecordsOf(audit: readonly (typeof terms)[number][]): readonl
|
|
|
73
74
|
|
|
74
75
|
/** Mizan's own terms and the packaging ontology's as the rules read them. */
|
|
75
76
|
export function mizanTermRecords(): readonly TermRecord[] {
|
|
76
|
-
return termRecordsOf([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...ifrOntology.terms]);
|
|
77
|
+
return termRecordsOf([...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms, ...ifrOntology.terms]);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/** The prefixes of commons' own ontologies and their namespaces. */
|
|
@@ -82,6 +83,7 @@ const PREFIXES = {
|
|
|
82
83
|
pm: "https://www.intellectualfrontiers.com/ontology/packaging#",
|
|
83
84
|
ifccm: ifccmOntology.IFCCM.iri,
|
|
84
85
|
ifqs: ifqsOntology.IFQS.iri,
|
|
86
|
+
oto: otoOntology.OTO.iri,
|
|
85
87
|
ifr: ifrOntology.IFR.iri,
|
|
86
88
|
} as const;
|
|
87
89
|
|
|
@@ -94,7 +96,7 @@ function curieOf(iri: string): string {
|
|
|
94
96
|
/** The deprecated terms of commons' own ontologies, by CURIE, with what replaces each (0018-standards-first): a specification that names one is found. */
|
|
95
97
|
export function deprecatedTerms(): ReadonlyMap<string, string> {
|
|
96
98
|
return new Map(
|
|
97
|
-
[...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...ifrOntology.terms].flatMap((t) =>
|
|
99
|
+
[...terms, ...packagingTerms, ...ifccmOntology.terms, ...ifqsOntology.terms, ...otoOntology.terms, ...ifrOntology.terms].flatMap((t) =>
|
|
98
100
|
t.values.deprecatedOn === undefined ? [] : [[curieOf(t.values.termIri), curieOf(t.values.replacedBy ?? "")] as const],
|
|
99
101
|
),
|
|
100
102
|
);
|
|
@@ -152,6 +154,11 @@ export function main(
|
|
|
152
154
|
ontology: ifqsOntology.classes.map((c) => c.iri),
|
|
153
155
|
recorded: ifqsOntology.terms.map((t) => t.values.termIri),
|
|
154
156
|
},
|
|
157
|
+
{
|
|
158
|
+
file: "commons/ontology/src/oto/oto.ts",
|
|
159
|
+
ontology: otoOntology.classes.map((c) => c.iri),
|
|
160
|
+
recorded: otoOntology.terms.map((t) => t.values.termIri),
|
|
161
|
+
},
|
|
155
162
|
{
|
|
156
163
|
file: "commons/ontology/src/ifr/ifr.ts",
|
|
157
164
|
ontology: ifrOntology.classes.map((c) => c.iri),
|
|
@@ -172,6 +179,18 @@ export function main(
|
|
|
172
179
|
...Object.keys(audienceModels),
|
|
173
180
|
]),
|
|
174
181
|
pm: new Set(Object.keys(pm)),
|
|
182
|
+
oto: new Set([
|
|
183
|
+
...Object.keys(otoOntology.oto),
|
|
184
|
+
...[
|
|
185
|
+
otoOntology.domains,
|
|
186
|
+
otoOntology.invariants,
|
|
187
|
+
otoOntology.pillars,
|
|
188
|
+
otoOntology.principles,
|
|
189
|
+
otoOntology.maturityLevels,
|
|
190
|
+
otoOntology.dimensions,
|
|
191
|
+
otoOntology.alignmentStates,
|
|
192
|
+
].flatMap((l) => Object.keys(l)),
|
|
193
|
+
]),
|
|
175
194
|
ifr: ifrOntology.termNames,
|
|
176
195
|
ifccm: new Set([
|
|
177
196
|
...Object.keys(ifccmOntology.ifccm),
|
package/src/generate-ontology.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
import * as ifccmOntology from "@intellectual-frontiers/ontology/ifccm";
|
|
38
38
|
import * as ifrOntology from "@intellectual-frontiers/ontology/ifr";
|
|
39
39
|
import * as ifqsOntology from "@intellectual-frontiers/ontology/ifqs";
|
|
40
|
+
import * as otoOntology from "@intellectual-frontiers/ontology/oto";
|
|
40
41
|
import * as kanonOntology from "@intellectual-frontiers/ontology/kanon";
|
|
41
42
|
import { formatRdfFinding, type OntologyFile, validate } from "@intellectual-frontiers/rdf";
|
|
42
43
|
import { stdio } from "@intellectual-frontiers/system";
|
|
@@ -208,6 +209,46 @@ export const IFQS: OntologyPublication = {
|
|
|
208
209
|
license: CC0,
|
|
209
210
|
};
|
|
210
211
|
|
|
212
|
+
/** The Operational Truth Ontology (commons ontology 0002-oto), as it is published. */
|
|
213
|
+
export const OTO: OntologyPublication = {
|
|
214
|
+
name: "oto",
|
|
215
|
+
ns: { prefix: "oto", iri: otoOntology.OTO.iri },
|
|
216
|
+
idNs: { prefix: "mzid", iri: MZID.iri },
|
|
217
|
+
curies: [
|
|
218
|
+
["oto", otoOntology.OTO.iri],
|
|
219
|
+
["ifqs", ifqsOntology.IFQS.iri],
|
|
220
|
+
["mz", MZ.iri],
|
|
221
|
+
["xsd", "http://www.w3.org/2001/XMLSchema#"],
|
|
222
|
+
["rdfs", "http://www.w3.org/2000/01/rdf-schema#"],
|
|
223
|
+
["skos", "http://www.w3.org/2004/02/skos/core#"],
|
|
224
|
+
["dcterms", "http://purl.org/dc/terms/"],
|
|
225
|
+
["prov", "http://www.w3.org/ns/prov#"],
|
|
226
|
+
],
|
|
227
|
+
files: otoOntology.files,
|
|
228
|
+
ontology: otoOntology.otoOntology,
|
|
229
|
+
classes: otoOntology.classes,
|
|
230
|
+
properties: otoOntology.properties,
|
|
231
|
+
terms: otoOntology.terms,
|
|
232
|
+
schemas: [otoOntology.DomainSchema, otoOntology.MaturityLevelSchema, otoOntology.Alignment],
|
|
233
|
+
lists: listsOf("oto", [
|
|
234
|
+
["Domain", otoOntology.domains],
|
|
235
|
+
["Invariant", otoOntology.invariants],
|
|
236
|
+
["Pillar", otoOntology.pillars],
|
|
237
|
+
["Principle", otoOntology.principles],
|
|
238
|
+
["MaturityLevel", otoOntology.maturityLevels],
|
|
239
|
+
["Dimension", otoOntology.dimensions],
|
|
240
|
+
["AlignmentState", otoOntology.alignmentStates],
|
|
241
|
+
]),
|
|
242
|
+
source: "commons/ontology/src/oto/*.ts",
|
|
243
|
+
run: RUN,
|
|
244
|
+
shapes: { prefix: "otosh", iri: "https://www.intellectualfrontiers.com/ontology/oto-shapes#" },
|
|
245
|
+
schemasIri: "https://www.intellectualfrontiers.com/ontology/oto-schemas",
|
|
246
|
+
sssomSetId: "https://www.intellectualfrontiers.com/ontology/oto-mappings",
|
|
247
|
+
sssomCuries: { dcterms: "http://purl.org/dc/terms/", prov: "http://www.w3.org/ns/prov#", ifqs: ifqsOntology.IFQS.iri },
|
|
248
|
+
viewTitle: "Operational Truth Ontology",
|
|
249
|
+
license: CC0,
|
|
250
|
+
};
|
|
251
|
+
|
|
211
252
|
/** The ontology of Intellectual Frontiers Releases (commons 0026-works-versioning), as it is published. */
|
|
212
253
|
export const IFR: OntologyPublication = {
|
|
213
254
|
name: "ifr",
|
|
@@ -279,7 +320,7 @@ export const KANON: OntologyPublication = {
|
|
|
279
320
|
};
|
|
280
321
|
|
|
281
322
|
/** The ontologies of commons that are published, each from its own typed modules: Mizan's, then the ones its specifications define. */
|
|
282
|
-
export const publications: readonly OntologyPublication[] = [MIZAN, IFCCM, IFQS, IFR, KANON];
|
|
323
|
+
export const publications: readonly OntologyPublication[] = [MIZAN, IFCCM, IFQS, OTO, IFR, KANON];
|
|
283
324
|
|
|
284
325
|
/** Where the generated files are downloaded from: this repository's `commons/` folder on its default branch. */
|
|
285
326
|
const DOWNLOAD_BASE = "https://raw.githubusercontent.com/intellectual-frontiers/.github/main/commons/";
|
package/src/metapackages.ts
CHANGED
|
@@ -28,14 +28,11 @@ import { ROLE_OF, type Role } from "./readme.ts";
|
|
|
28
28
|
|
|
29
29
|
/** The libraries that are not in any set yet, each with why: they declare npm and are not ready to be installed (commons 0036-distribution FR-006). A library leaves this list when its owner releases it. */
|
|
30
30
|
export const HELD_BACK: ReadonlyMap<string, string> = new Map([
|
|
31
|
-
["archon", "the Archon library is not released yet"],
|
|
32
31
|
["archon-dialect-apt", "a dialect of Archon, which is not released yet"],
|
|
33
32
|
["archon-dialect-homebrew", "a dialect of Archon, which is not released yet"],
|
|
34
33
|
["archon-dialect-mise", "a dialect of Archon, which is not released yet"],
|
|
35
34
|
["archon-dialect-native-pinned", "a dialect of Archon, which is not released yet"],
|
|
36
35
|
["archon-dialect-winget", "a dialect of Archon, which is not released yet"],
|
|
37
|
-
["package-managers", "the kit of the dialects of Archon and Toolchain, which are not released yet"],
|
|
38
|
-
["toolchain", "the Toolchain library is not released yet"],
|
|
39
36
|
]);
|
|
40
37
|
|
|
41
38
|
/** The roles' sets: a role is in exactly one. */
|
package/src/readme.ts
CHANGED
|
@@ -92,6 +92,9 @@ export const ROLE_OF: ReadonlyMap<string, Role> = new Map<string, Role>([
|
|
|
92
92
|
["integrations-github", "program"],
|
|
93
93
|
["libraries", "program"],
|
|
94
94
|
["repoctl", "program"],
|
|
95
|
+
["machine-probe", "program"],
|
|
96
|
+
["lab", "program"],
|
|
97
|
+
["evidence-capture", "program"],
|
|
95
98
|
["integrations-fhir", "standard"],
|
|
96
99
|
["integrations-x12", "standard"],
|
|
97
100
|
["mizan", "standard"],
|