@_linked/translation 0.2.2
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 +102 -0
- package/lib/cjs/data/translation.json +8 -0
- package/lib/esm/archive.d.ts +133 -0
- package/lib/esm/archive.js +567 -0
- package/lib/esm/archive.js.map +1 -0
- package/lib/esm/authorization.d.ts +12 -0
- package/lib/esm/authorization.js +10 -0
- package/lib/esm/authorization.js.map +1 -0
- package/lib/esm/backend.d.ts +1 -0
- package/lib/esm/backend.js +3 -0
- package/lib/esm/backend.js.map +1 -0
- package/lib/esm/cdn-loader.d.ts +40 -0
- package/lib/esm/cdn-loader.js +200 -0
- package/lib/esm/cdn-loader.js.map +1 -0
- package/lib/esm/checks.d.ts +56 -0
- package/lib/esm/checks.js +288 -0
- package/lib/esm/checks.js.map +1 -0
- package/lib/esm/compile.d.ts +64 -0
- package/lib/esm/compile.js +99 -0
- package/lib/esm/compile.js.map +1 -0
- package/lib/esm/core/messages.d.ts +25 -0
- package/lib/esm/core/messages.js +76 -0
- package/lib/esm/core/messages.js.map +1 -0
- package/lib/esm/data/translation.json +8 -0
- package/lib/esm/discovery.d.ts +97 -0
- package/lib/esm/discovery.js +365 -0
- package/lib/esm/discovery.js.map +1 -0
- package/lib/esm/exchange.d.ts +100 -0
- package/lib/esm/exchange.js +223 -0
- package/lib/esm/exchange.js.map +1 -0
- package/lib/esm/export.d.ts +28 -0
- package/lib/esm/export.js +92 -0
- package/lib/esm/export.js.map +1 -0
- package/lib/esm/formats/csv.d.ts +8 -0
- package/lib/esm/formats/csv.js +397 -0
- package/lib/esm/formats/csv.js.map +1 -0
- package/lib/esm/formats/json.d.ts +30 -0
- package/lib/esm/formats/json.js +459 -0
- package/lib/esm/formats/json.js.map +1 -0
- package/lib/esm/formats/xliff.d.ts +12 -0
- package/lib/esm/formats/xliff.js +577 -0
- package/lib/esm/formats/xliff.js.map +1 -0
- package/lib/esm/import.d.ts +197 -0
- package/lib/esm/import.js +391 -0
- package/lib/esm/import.js.map +1 -0
- package/lib/esm/index.d.ts +42 -0
- package/lib/esm/index.js +34 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/key-sync-node.d.ts +29 -0
- package/lib/esm/key-sync-node.js +174 -0
- package/lib/esm/key-sync-node.js.map +1 -0
- package/lib/esm/key-sync.d.ts +46 -0
- package/lib/esm/key-sync.js +114 -0
- package/lib/esm/key-sync.js.map +1 -0
- package/lib/esm/key-version.d.ts +50 -0
- package/lib/esm/key-version.js +134 -0
- package/lib/esm/key-version.js.map +1 -0
- package/lib/esm/languages.d.ts +18 -0
- package/lib/esm/languages.js +74 -0
- package/lib/esm/languages.js.map +1 -0
- package/lib/esm/linked-discovery.d.ts +44 -0
- package/lib/esm/linked-discovery.js +267 -0
- package/lib/esm/linked-discovery.js.map +1 -0
- package/lib/esm/message-format.d.ts +41 -0
- package/lib/esm/message-format.js +133 -0
- package/lib/esm/message-format.js.map +1 -0
- package/lib/esm/mt.d.ts +111 -0
- package/lib/esm/mt.js +142 -0
- package/lib/esm/mt.js.map +1 -0
- package/lib/esm/ontologies/translation.d.ts +203 -0
- package/lib/esm/ontologies/translation.js +219 -0
- package/lib/esm/ontologies/translation.js.map +1 -0
- package/lib/esm/package.d.ts +4 -0
- package/lib/esm/package.js +11 -0
- package/lib/esm/package.js.map +1 -0
- package/lib/esm/react.d.ts +55 -0
- package/lib/esm/react.js +127 -0
- package/lib/esm/react.js.map +1 -0
- package/lib/esm/records.d.ts +151 -0
- package/lib/esm/records.js +2 -0
- package/lib/esm/records.js.map +1 -0
- package/lib/esm/release.d.ts +198 -0
- package/lib/esm/release.js +435 -0
- package/lib/esm/release.js.map +1 -0
- package/lib/esm/shape-catalog.d.ts +79 -0
- package/lib/esm/shape-catalog.js +118 -0
- package/lib/esm/shape-catalog.js.map +1 -0
- package/lib/esm/shapes/GlossaryTerm.d.ts +28 -0
- package/lib/esm/shapes/GlossaryTerm.js +94 -0
- package/lib/esm/shapes/GlossaryTerm.js.map +1 -0
- package/lib/esm/shapes/TranslationInventoryOrigin.d.ts +33 -0
- package/lib/esm/shapes/TranslationInventoryOrigin.js +209 -0
- package/lib/esm/shapes/TranslationInventoryOrigin.js.map +1 -0
- package/lib/esm/shapes/TranslationKey.d.ts +92 -0
- package/lib/esm/shapes/TranslationKey.js +194 -0
- package/lib/esm/shapes/TranslationKey.js.map +1 -0
- package/lib/esm/shapes/TranslationKeyVersion.d.ts +19 -0
- package/lib/esm/shapes/TranslationKeyVersion.js +125 -0
- package/lib/esm/shapes/TranslationKeyVersion.js.map +1 -0
- package/lib/esm/shapes/TranslationLanguage.d.ts +15 -0
- package/lib/esm/shapes/TranslationLanguage.js +102 -0
- package/lib/esm/shapes/TranslationLanguage.js.map +1 -0
- package/lib/esm/shapes/TranslationProvider.d.ts +409 -0
- package/lib/esm/shapes/TranslationProvider.js +1376 -0
- package/lib/esm/shapes/TranslationProvider.js.map +1 -0
- package/lib/esm/shapes/TranslationRelease.d.ts +36 -0
- package/lib/esm/shapes/TranslationRelease.js +149 -0
- package/lib/esm/shapes/TranslationRelease.js.map +1 -0
- package/lib/esm/shapes/TranslationRevision.d.ts +39 -0
- package/lib/esm/shapes/TranslationRevision.js +159 -0
- package/lib/esm/shapes/TranslationRevision.js.map +1 -0
- package/lib/esm/shapes/TranslationUnit.d.ts +26 -0
- package/lib/esm/shapes/TranslationUnit.js +111 -0
- package/lib/esm/shapes/TranslationUnit.js.map +1 -0
- package/package.json +134 -0
- package/src/archive.ts +894 -0
- package/src/authorization.ts +33 -0
- package/src/backend.ts +2 -0
- package/src/cdn-loader.ts +264 -0
- package/src/checks.ts +413 -0
- package/src/compile.ts +168 -0
- package/src/core/messages.ts +106 -0
- package/src/data/translation.json +8 -0
- package/src/discovery.ts +594 -0
- package/src/exchange.ts +428 -0
- package/src/export.ts +135 -0
- package/src/formats/csv.ts +459 -0
- package/src/formats/json.ts +587 -0
- package/src/formats/xliff.ts +708 -0
- package/src/import.ts +648 -0
- package/src/index.ts +207 -0
- package/src/key-sync-node.ts +269 -0
- package/src/key-sync.ts +168 -0
- package/src/key-version.ts +206 -0
- package/src/languages.ts +102 -0
- package/src/linked-discovery.ts +385 -0
- package/src/message-format.ts +214 -0
- package/src/mt.ts +248 -0
- package/src/ontologies/translation.ts +234 -0
- package/src/package.ts +19 -0
- package/src/react.tsx +250 -0
- package/src/records.ts +180 -0
- package/src/release.ts +726 -0
- package/src/shape-catalog.ts +198 -0
- package/src/shapes/GlossaryTerm.ts +61 -0
- package/src/shapes/TranslationInventoryOrigin.ts +131 -0
- package/src/shapes/TranslationKey.ts +174 -0
- package/src/shapes/TranslationKeyVersion.ts +77 -0
- package/src/shapes/TranslationLanguage.ts +51 -0
- package/src/shapes/TranslationProvider.ts +1755 -0
- package/src/shapes/TranslationRelease.ts +114 -0
- package/src/shapes/TranslationRevision.ts +105 -0
- package/src/shapes/TranslationUnit.ts +72 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { TranslationEntryRecord, TranslationState } from './records.js';
|
|
2
|
+
import type { TranslationDiscoverySource } from './discovery.js';
|
|
3
|
+
/**
|
|
4
|
+
* Code-canonical translations shipped beside one reusable LINKED shape.
|
|
5
|
+
* Packages may expose this object from code or serialize the same contract as
|
|
6
|
+
* JSON for Host Agent discovery without executing package code.
|
|
7
|
+
*/
|
|
8
|
+
export interface ShapeTranslationCatalog {
|
|
9
|
+
schemaVersion: 1;
|
|
10
|
+
packageName: string;
|
|
11
|
+
/** Canonical SHACL node-shape IRI, not a display label or filesystem path. */
|
|
12
|
+
shapeIri: string;
|
|
13
|
+
/** Optional stable domain-class IRI used for semantic browsing. */
|
|
14
|
+
targetClass?: string;
|
|
15
|
+
entries: ShapeTranslationCatalogEntry[];
|
|
16
|
+
}
|
|
17
|
+
export interface ShapeTranslationCatalogEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
sourceText: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
namespace?: string;
|
|
22
|
+
/** Stable predicate IRI when this message describes a shape property. */
|
|
23
|
+
propertyIri?: string;
|
|
24
|
+
format?: 'simple' | 'icu';
|
|
25
|
+
/** Curated BCP-47 language values supplied by the package. */
|
|
26
|
+
translations?: Record<string, string | {
|
|
27
|
+
text: string;
|
|
28
|
+
state?: TranslationState;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
export interface ShapeTranslationCatalogTarget {
|
|
32
|
+
listEntries(data: {
|
|
33
|
+
appId: string;
|
|
34
|
+
}): Promise<TranslationEntryRecord[]>;
|
|
35
|
+
upsertKey(data: {
|
|
36
|
+
appId: string;
|
|
37
|
+
key: string;
|
|
38
|
+
sourceText: string;
|
|
39
|
+
namespace?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
kind: 'ui';
|
|
42
|
+
format?: 'simple' | 'icu';
|
|
43
|
+
ofShape: string;
|
|
44
|
+
ofProperty?: string;
|
|
45
|
+
fromPackage: string;
|
|
46
|
+
}): Promise<unknown>;
|
|
47
|
+
upsertUnit(data: {
|
|
48
|
+
appId: string;
|
|
49
|
+
key: string;
|
|
50
|
+
language: string;
|
|
51
|
+
text: string;
|
|
52
|
+
state: TranslationState;
|
|
53
|
+
}): Promise<unknown>;
|
|
54
|
+
}
|
|
55
|
+
export interface ShapeTranslationInstallReport {
|
|
56
|
+
createdKeys: string[];
|
|
57
|
+
createdUnits: Array<{
|
|
58
|
+
key: string;
|
|
59
|
+
language: string;
|
|
60
|
+
}>;
|
|
61
|
+
skippedExistingKeys: string[];
|
|
62
|
+
skippedExistingUnits: Array<{
|
|
63
|
+
key: string;
|
|
64
|
+
language: string;
|
|
65
|
+
}>;
|
|
66
|
+
}
|
|
67
|
+
/** Validate and freeze the package-owned declaration at module load time. */
|
|
68
|
+
export declare function defineShapeTranslationCatalog(catalog: ShapeTranslationCatalog): Readonly<ShapeTranslationCatalog>;
|
|
69
|
+
/** Adapt the existing schema-v1 catalog without changing its install contract. */
|
|
70
|
+
export declare function shapeCatalogTranslationDiscoverySource(input: ShapeTranslationCatalog): TranslationDiscoverySource;
|
|
71
|
+
/**
|
|
72
|
+
* Seed only missing app values for the currently activated languages.
|
|
73
|
+
* Existing project-authored keys and units always win over package defaults.
|
|
74
|
+
*/
|
|
75
|
+
export declare function installShapeTranslationCatalog(target: ShapeTranslationCatalogTarget, input: {
|
|
76
|
+
appId: string;
|
|
77
|
+
catalog: ShapeTranslationCatalog;
|
|
78
|
+
activeLanguages: Iterable<string>;
|
|
79
|
+
}): Promise<ShapeTranslationInstallReport>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
function requireString(value, label) {
|
|
2
|
+
if (typeof value !== 'string' || !value.trim()) {
|
|
3
|
+
throw new Error(`${label} is required.`);
|
|
4
|
+
}
|
|
5
|
+
return value.trim();
|
|
6
|
+
}
|
|
7
|
+
/** Validate and freeze the package-owned declaration at module load time. */
|
|
8
|
+
export function defineShapeTranslationCatalog(catalog) {
|
|
9
|
+
if ((catalog === null || catalog === void 0 ? void 0 : catalog.schemaVersion) !== 1) {
|
|
10
|
+
throw new Error('Shape translation catalog schemaVersion must be 1.');
|
|
11
|
+
}
|
|
12
|
+
requireString(catalog.packageName, 'packageName');
|
|
13
|
+
requireString(catalog.shapeIri, 'shapeIri');
|
|
14
|
+
if (!Array.isArray(catalog.entries)) {
|
|
15
|
+
throw new Error('Shape translation catalog entries must be an array.');
|
|
16
|
+
}
|
|
17
|
+
const keys = new Set();
|
|
18
|
+
for (const entry of catalog.entries) {
|
|
19
|
+
const key = requireString(entry === null || entry === void 0 ? void 0 : entry.key, 'entry.key');
|
|
20
|
+
requireString(entry === null || entry === void 0 ? void 0 : entry.sourceText, `sourceText for ${key}`);
|
|
21
|
+
if (keys.has(key))
|
|
22
|
+
throw new Error(`Duplicate shape translation key "${key}".`);
|
|
23
|
+
keys.add(key);
|
|
24
|
+
}
|
|
25
|
+
return Object.freeze(catalog);
|
|
26
|
+
}
|
|
27
|
+
/** Adapt the existing schema-v1 catalog without changing its install contract. */
|
|
28
|
+
export function shapeCatalogTranslationDiscoverySource(input) {
|
|
29
|
+
const catalog = defineShapeTranslationCatalog(input);
|
|
30
|
+
return {
|
|
31
|
+
name: `shape-catalog:${catalog.packageName}:${catalog.shapeIri}`,
|
|
32
|
+
async *discover() {
|
|
33
|
+
var _a;
|
|
34
|
+
for (const entry of catalog.entries) {
|
|
35
|
+
yield {
|
|
36
|
+
schemaVersion: 1,
|
|
37
|
+
key: entry.key,
|
|
38
|
+
sourceText: entry.sourceText,
|
|
39
|
+
kind: 'ui',
|
|
40
|
+
format: (_a = entry.format) !== null && _a !== void 0 ? _a : 'simple',
|
|
41
|
+
...(entry.namespace ? { namespace: entry.namespace } : {}),
|
|
42
|
+
...(entry.description ? { description: entry.description } : {}),
|
|
43
|
+
provenance: {
|
|
44
|
+
source: 'package',
|
|
45
|
+
sourceId: `${catalog.packageName}:${catalog.shapeIri}`,
|
|
46
|
+
authoritative: true,
|
|
47
|
+
ownerIri: catalog.shapeIri,
|
|
48
|
+
shapeIri: catalog.shapeIri,
|
|
49
|
+
fromPackage: catalog.packageName,
|
|
50
|
+
...(catalog.targetClass
|
|
51
|
+
? { targetClass: catalog.targetClass }
|
|
52
|
+
: {}),
|
|
53
|
+
...(entry.propertyIri
|
|
54
|
+
? { propertyIri: entry.propertyIri }
|
|
55
|
+
: {}),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Seed only missing app values for the currently activated languages.
|
|
64
|
+
* Existing project-authored keys and units always win over package defaults.
|
|
65
|
+
*/
|
|
66
|
+
export async function installShapeTranslationCatalog(target, input) {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
const appId = requireString(input.appId, 'appId');
|
|
69
|
+
const catalog = defineShapeTranslationCatalog(input.catalog);
|
|
70
|
+
const activeLanguages = new Set([...input.activeLanguages].map((language) => language.trim()).filter(Boolean));
|
|
71
|
+
const existing = new Map((await target.listEntries({ appId })).map((entry) => [entry.key, entry]));
|
|
72
|
+
const report = {
|
|
73
|
+
createdKeys: [],
|
|
74
|
+
createdUnits: [],
|
|
75
|
+
skippedExistingKeys: [],
|
|
76
|
+
skippedExistingUnits: [],
|
|
77
|
+
};
|
|
78
|
+
for (const entry of catalog.entries) {
|
|
79
|
+
const current = existing.get(entry.key);
|
|
80
|
+
if (current)
|
|
81
|
+
report.skippedExistingKeys.push(entry.key);
|
|
82
|
+
else {
|
|
83
|
+
await target.upsertKey({
|
|
84
|
+
appId,
|
|
85
|
+
key: entry.key,
|
|
86
|
+
sourceText: entry.sourceText,
|
|
87
|
+
namespace: entry.namespace,
|
|
88
|
+
description: entry.description,
|
|
89
|
+
kind: 'ui',
|
|
90
|
+
format: entry.format,
|
|
91
|
+
ofShape: catalog.shapeIri,
|
|
92
|
+
ofProperty: entry.propertyIri,
|
|
93
|
+
fromPackage: catalog.packageName,
|
|
94
|
+
});
|
|
95
|
+
report.createdKeys.push(entry.key);
|
|
96
|
+
}
|
|
97
|
+
for (const language of [...activeLanguages].sort()) {
|
|
98
|
+
const value = (_a = entry.translations) === null || _a === void 0 ? void 0 : _a[language];
|
|
99
|
+
if (value === undefined)
|
|
100
|
+
continue;
|
|
101
|
+
if (current === null || current === void 0 ? void 0 : current.units[language]) {
|
|
102
|
+
report.skippedExistingUnits.push({ key: entry.key, language });
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
const unit = typeof value === 'string' ? { text: value } : value;
|
|
106
|
+
await target.upsertUnit({
|
|
107
|
+
appId,
|
|
108
|
+
key: entry.key,
|
|
109
|
+
language,
|
|
110
|
+
text: unit.text,
|
|
111
|
+
state: (_b = unit.state) !== null && _b !== void 0 ? _b : 'reviewed',
|
|
112
|
+
});
|
|
113
|
+
report.createdUnits.push({ key: entry.key, language });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return report;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=shape-catalog.js.map
|
|
@@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K,mCAAI,UAAU;aAChC,CAAC,CAAC;YACH,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Shape } from '@_linked/core/shapes/Shape';
|
|
2
|
+
/**
|
|
3
|
+
* A glossary entry that steers machine translation (Plan 014 AD-L) — e.g. keep
|
|
4
|
+
* a brand/term consistent or fixed across languages. Fed to the MT provider's
|
|
5
|
+
* prompt. Per-app content like the rest of the translation model.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GlossaryTerm extends Shape {
|
|
8
|
+
static targetClass: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
9
|
+
/** The source term (English). */
|
|
10
|
+
get term(): string;
|
|
11
|
+
/** Preferred translation for the target language (optional; empty = keep as-is). */
|
|
12
|
+
get translation(): string;
|
|
13
|
+
/** Target language this entry applies to (empty = all). */
|
|
14
|
+
get language(): string;
|
|
15
|
+
get description(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Termbase entry type: 'prefer' advises {@link translation}; 'require'
|
|
18
|
+
* enforces that wording whenever the source uses the term; 'keep' =
|
|
19
|
+
* do-not-translate, preserved exactly (proper
|
|
20
|
+
* nouns, stay-one-language words); 'forbid' = never use this word/spelling —
|
|
21
|
+
* {@link useInstead} names the replacement (alternative-spelling policing).
|
|
22
|
+
*/
|
|
23
|
+
get termType(): string;
|
|
24
|
+
/** Replacement wording for a 'forbid' entry. */
|
|
25
|
+
get useInstead(): string;
|
|
26
|
+
/** Match with exact casing (proper nouns / all-caps brand styling). */
|
|
27
|
+
get caseSensitive(): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Shape } from '@_linked/core/shapes/Shape';
|
|
11
|
+
import { literalProperty } from '@_linked/core/shapes/SHACL';
|
|
12
|
+
import { tr } from '../ontologies/translation.js';
|
|
13
|
+
import { linkedShape } from '../package.js';
|
|
14
|
+
/**
|
|
15
|
+
* A glossary entry that steers machine translation (Plan 014 AD-L) — e.g. keep
|
|
16
|
+
* a brand/term consistent or fixed across languages. Fed to the MT provider's
|
|
17
|
+
* prompt. Per-app content like the rest of the translation model.
|
|
18
|
+
*/
|
|
19
|
+
let GlossaryTerm = class GlossaryTerm extends Shape {
|
|
20
|
+
/** The source term (English). */
|
|
21
|
+
get term() {
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
/** Preferred translation for the target language (optional; empty = keep as-is). */
|
|
25
|
+
get translation() {
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
/** Target language this entry applies to (empty = all). */
|
|
29
|
+
get language() {
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
get description() {
|
|
33
|
+
return '';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Termbase entry type: 'prefer' advises {@link translation}; 'require'
|
|
37
|
+
* enforces that wording whenever the source uses the term; 'keep' =
|
|
38
|
+
* do-not-translate, preserved exactly (proper
|
|
39
|
+
* nouns, stay-one-language words); 'forbid' = never use this word/spelling —
|
|
40
|
+
* {@link useInstead} names the replacement (alternative-spelling policing).
|
|
41
|
+
*/
|
|
42
|
+
get termType() {
|
|
43
|
+
return 'prefer';
|
|
44
|
+
}
|
|
45
|
+
/** Replacement wording for a 'forbid' entry. */
|
|
46
|
+
get useInstead() {
|
|
47
|
+
return '';
|
|
48
|
+
}
|
|
49
|
+
/** Match with exact casing (proper nouns / all-caps brand styling). */
|
|
50
|
+
get caseSensitive() {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
GlossaryTerm.targetClass = tr.GlossaryTerm;
|
|
55
|
+
__decorate([
|
|
56
|
+
literalProperty({ path: tr.term, maxCount: 1 }),
|
|
57
|
+
__metadata("design:type", String),
|
|
58
|
+
__metadata("design:paramtypes", [])
|
|
59
|
+
], GlossaryTerm.prototype, "term", null);
|
|
60
|
+
__decorate([
|
|
61
|
+
literalProperty({ path: tr.glossaryTranslation, maxCount: 1 }),
|
|
62
|
+
__metadata("design:type", String),
|
|
63
|
+
__metadata("design:paramtypes", [])
|
|
64
|
+
], GlossaryTerm.prototype, "translation", null);
|
|
65
|
+
__decorate([
|
|
66
|
+
literalProperty({ path: tr.glossaryLanguage, maxCount: 1 }),
|
|
67
|
+
__metadata("design:type", String),
|
|
68
|
+
__metadata("design:paramtypes", [])
|
|
69
|
+
], GlossaryTerm.prototype, "language", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
literalProperty({ path: tr.description, maxCount: 1 }),
|
|
72
|
+
__metadata("design:type", String),
|
|
73
|
+
__metadata("design:paramtypes", [])
|
|
74
|
+
], GlossaryTerm.prototype, "description", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
literalProperty({ path: tr.termType, maxCount: 1 }),
|
|
77
|
+
__metadata("design:type", String),
|
|
78
|
+
__metadata("design:paramtypes", [])
|
|
79
|
+
], GlossaryTerm.prototype, "termType", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
literalProperty({ path: tr.useInstead, maxCount: 1 }),
|
|
82
|
+
__metadata("design:type", String),
|
|
83
|
+
__metadata("design:paramtypes", [])
|
|
84
|
+
], GlossaryTerm.prototype, "useInstead", null);
|
|
85
|
+
__decorate([
|
|
86
|
+
literalProperty({ path: tr.caseSensitive, maxCount: 1 }),
|
|
87
|
+
__metadata("design:type", Boolean),
|
|
88
|
+
__metadata("design:paramtypes", [])
|
|
89
|
+
], GlossaryTerm.prototype, "caseSensitive", null);
|
|
90
|
+
GlossaryTerm = __decorate([
|
|
91
|
+
linkedShape
|
|
92
|
+
], GlossaryTerm);
|
|
93
|
+
export { GlossaryTerm };
|
|
94
|
+
//# sourceMappingURL=GlossaryTerm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlossaryTerm.js","sourceRoot":"","sources":["../../../src/shapes/GlossaryTerm.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,KAAK;IAGrC,iCAAiC;IACjC,IACI,IAAI;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,oFAAoF;IACpF,IACI,WAAW;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,2DAA2D;IAC3D,IACI,QAAQ;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACI,WAAW;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;;;;OAMG;IACH,IACI,QAAQ;QACV,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gDAAgD;IAChD,IACI,UAAU;QACZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,uEAAuE;IACvE,IACI,aAAa;QACf,OAAO,KAAK,CAAC;IACf,CAAC;;AA/CM,wBAAW,GAAG,EAAE,CAAC,YAAY,AAAlB,CAAmB;AAGrC;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;wCAG/C;AAGD;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;+CAG9D;AAGD;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;4CAG3D;AAED;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;+CAGtD;AASD;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;4CAGnD;AAGD;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;8CAGrD;AAGD;IAAC,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;;;iDAGxD;AAhDU,YAAY;IADxB,WAAW;GACC,YAAY,CAiDxB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Shape } from '@_linked/core/shapes/Shape';
|
|
2
|
+
/**
|
|
3
|
+
* One observed origin for a branch translation-inventory item.
|
|
4
|
+
*
|
|
5
|
+
* Host code executes queries for this shape against the explicit branch
|
|
6
|
+
* metadata dataset. It is intentionally not globally pinned by the portable
|
|
7
|
+
* package: standalone LINKED apps may use a different metadata topology.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TranslationInventoryOrigin extends Shape {
|
|
10
|
+
static targetClass: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
11
|
+
get ofApplication(): string;
|
|
12
|
+
get branch(): string;
|
|
13
|
+
get identity(): string;
|
|
14
|
+
get key(): string;
|
|
15
|
+
get namespace(): string;
|
|
16
|
+
get sourceText(): string;
|
|
17
|
+
get kind(): string;
|
|
18
|
+
get format(): string;
|
|
19
|
+
get description(): string;
|
|
20
|
+
get status(): string;
|
|
21
|
+
get sourceKind(): string;
|
|
22
|
+
get sourceId(): string;
|
|
23
|
+
get authoritative(): boolean;
|
|
24
|
+
get file(): string;
|
|
25
|
+
get line(): number;
|
|
26
|
+
get ownerIri(): string;
|
|
27
|
+
get shapeIri(): string;
|
|
28
|
+
get propertyIri(): string;
|
|
29
|
+
get nodeIri(): string;
|
|
30
|
+
get fromPackage(): string;
|
|
31
|
+
get targetClass(): string;
|
|
32
|
+
get observedAt(): Date;
|
|
33
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Shape } from '@_linked/core/shapes/Shape';
|
|
11
|
+
import { literalProperty, objectProperty } from '@_linked/core/shapes/SHACL';
|
|
12
|
+
import { xsd } from '@_linked/core/ontologies/xsd';
|
|
13
|
+
import { tr } from '../ontologies/translation.js';
|
|
14
|
+
import { linkedShape } from '../package.js';
|
|
15
|
+
/**
|
|
16
|
+
* One observed origin for a branch translation-inventory item.
|
|
17
|
+
*
|
|
18
|
+
* Host code executes queries for this shape against the explicit branch
|
|
19
|
+
* metadata dataset. It is intentionally not globally pinned by the portable
|
|
20
|
+
* package: standalone LINKED apps may use a different metadata topology.
|
|
21
|
+
*/
|
|
22
|
+
let TranslationInventoryOrigin = class TranslationInventoryOrigin extends Shape {
|
|
23
|
+
get ofApplication() {
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
get branch() {
|
|
27
|
+
return '';
|
|
28
|
+
}
|
|
29
|
+
get identity() {
|
|
30
|
+
return '';
|
|
31
|
+
}
|
|
32
|
+
get key() {
|
|
33
|
+
return '';
|
|
34
|
+
}
|
|
35
|
+
get namespace() {
|
|
36
|
+
return '';
|
|
37
|
+
}
|
|
38
|
+
get sourceText() {
|
|
39
|
+
return '';
|
|
40
|
+
}
|
|
41
|
+
get kind() {
|
|
42
|
+
return 'ui';
|
|
43
|
+
}
|
|
44
|
+
get format() {
|
|
45
|
+
return 'simple';
|
|
46
|
+
}
|
|
47
|
+
get description() {
|
|
48
|
+
return '';
|
|
49
|
+
}
|
|
50
|
+
get status() {
|
|
51
|
+
return 'pending';
|
|
52
|
+
}
|
|
53
|
+
get sourceKind() {
|
|
54
|
+
return '';
|
|
55
|
+
}
|
|
56
|
+
get sourceId() {
|
|
57
|
+
return '';
|
|
58
|
+
}
|
|
59
|
+
get authoritative() {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
get file() {
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
get line() {
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
get ownerIri() {
|
|
69
|
+
return '';
|
|
70
|
+
}
|
|
71
|
+
get shapeIri() {
|
|
72
|
+
return '';
|
|
73
|
+
}
|
|
74
|
+
get propertyIri() {
|
|
75
|
+
return '';
|
|
76
|
+
}
|
|
77
|
+
get nodeIri() {
|
|
78
|
+
return '';
|
|
79
|
+
}
|
|
80
|
+
get fromPackage() {
|
|
81
|
+
return '';
|
|
82
|
+
}
|
|
83
|
+
get targetClass() {
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
86
|
+
get observedAt() {
|
|
87
|
+
return new Date(0);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
TranslationInventoryOrigin.targetClass = tr.TranslationInventoryOrigin;
|
|
91
|
+
__decorate([
|
|
92
|
+
objectProperty({ path: tr.ofApplication, maxCount: 1 }),
|
|
93
|
+
__metadata("design:type", String),
|
|
94
|
+
__metadata("design:paramtypes", [])
|
|
95
|
+
], TranslationInventoryOrigin.prototype, "ofApplication", null);
|
|
96
|
+
__decorate([
|
|
97
|
+
objectProperty({ path: tr.inventoryBranch, maxCount: 1 }),
|
|
98
|
+
__metadata("design:type", String),
|
|
99
|
+
__metadata("design:paramtypes", [])
|
|
100
|
+
], TranslationInventoryOrigin.prototype, "branch", null);
|
|
101
|
+
__decorate([
|
|
102
|
+
literalProperty({ path: tr.inventoryIdentity, maxCount: 1 }),
|
|
103
|
+
__metadata("design:type", String),
|
|
104
|
+
__metadata("design:paramtypes", [])
|
|
105
|
+
], TranslationInventoryOrigin.prototype, "identity", null);
|
|
106
|
+
__decorate([
|
|
107
|
+
literalProperty({ path: tr.key, maxCount: 1 }),
|
|
108
|
+
__metadata("design:type", String),
|
|
109
|
+
__metadata("design:paramtypes", [])
|
|
110
|
+
], TranslationInventoryOrigin.prototype, "key", null);
|
|
111
|
+
__decorate([
|
|
112
|
+
literalProperty({ path: tr.namespace, maxCount: 1 }),
|
|
113
|
+
__metadata("design:type", String),
|
|
114
|
+
__metadata("design:paramtypes", [])
|
|
115
|
+
], TranslationInventoryOrigin.prototype, "namespace", null);
|
|
116
|
+
__decorate([
|
|
117
|
+
literalProperty({ path: tr.sourceText, maxCount: 1 }),
|
|
118
|
+
__metadata("design:type", String),
|
|
119
|
+
__metadata("design:paramtypes", [])
|
|
120
|
+
], TranslationInventoryOrigin.prototype, "sourceText", null);
|
|
121
|
+
__decorate([
|
|
122
|
+
literalProperty({ path: tr.kind, maxCount: 1 }),
|
|
123
|
+
__metadata("design:type", String),
|
|
124
|
+
__metadata("design:paramtypes", [])
|
|
125
|
+
], TranslationInventoryOrigin.prototype, "kind", null);
|
|
126
|
+
__decorate([
|
|
127
|
+
literalProperty({ path: tr.format, maxCount: 1 }),
|
|
128
|
+
__metadata("design:type", String),
|
|
129
|
+
__metadata("design:paramtypes", [])
|
|
130
|
+
], TranslationInventoryOrigin.prototype, "format", null);
|
|
131
|
+
__decorate([
|
|
132
|
+
literalProperty({ path: tr.description, maxCount: 1 }),
|
|
133
|
+
__metadata("design:type", String),
|
|
134
|
+
__metadata("design:paramtypes", [])
|
|
135
|
+
], TranslationInventoryOrigin.prototype, "description", null);
|
|
136
|
+
__decorate([
|
|
137
|
+
literalProperty({ path: tr.inventoryStatus, maxCount: 1 }),
|
|
138
|
+
__metadata("design:type", String),
|
|
139
|
+
__metadata("design:paramtypes", [])
|
|
140
|
+
], TranslationInventoryOrigin.prototype, "status", null);
|
|
141
|
+
__decorate([
|
|
142
|
+
literalProperty({ path: tr.inventorySource, maxCount: 1 }),
|
|
143
|
+
__metadata("design:type", String),
|
|
144
|
+
__metadata("design:paramtypes", [])
|
|
145
|
+
], TranslationInventoryOrigin.prototype, "sourceKind", null);
|
|
146
|
+
__decorate([
|
|
147
|
+
literalProperty({ path: tr.inventorySourceId, maxCount: 1 }),
|
|
148
|
+
__metadata("design:type", String),
|
|
149
|
+
__metadata("design:paramtypes", [])
|
|
150
|
+
], TranslationInventoryOrigin.prototype, "sourceId", null);
|
|
151
|
+
__decorate([
|
|
152
|
+
literalProperty({ path: tr.inventoryAuthoritative, maxCount: 1 }),
|
|
153
|
+
__metadata("design:type", Boolean),
|
|
154
|
+
__metadata("design:paramtypes", [])
|
|
155
|
+
], TranslationInventoryOrigin.prototype, "authoritative", null);
|
|
156
|
+
__decorate([
|
|
157
|
+
literalProperty({ path: tr.inventoryFile, maxCount: 1 }),
|
|
158
|
+
__metadata("design:type", String),
|
|
159
|
+
__metadata("design:paramtypes", [])
|
|
160
|
+
], TranslationInventoryOrigin.prototype, "file", null);
|
|
161
|
+
__decorate([
|
|
162
|
+
literalProperty({ path: tr.inventoryLine, datatype: xsd.integer, maxCount: 1 }),
|
|
163
|
+
__metadata("design:type", Number),
|
|
164
|
+
__metadata("design:paramtypes", [])
|
|
165
|
+
], TranslationInventoryOrigin.prototype, "line", null);
|
|
166
|
+
__decorate([
|
|
167
|
+
objectProperty({ path: tr.inventoryOwner, maxCount: 1 }),
|
|
168
|
+
__metadata("design:type", String),
|
|
169
|
+
__metadata("design:paramtypes", [])
|
|
170
|
+
], TranslationInventoryOrigin.prototype, "ownerIri", null);
|
|
171
|
+
__decorate([
|
|
172
|
+
objectProperty({ path: tr.inventoryShape, maxCount: 1 }),
|
|
173
|
+
__metadata("design:type", String),
|
|
174
|
+
__metadata("design:paramtypes", [])
|
|
175
|
+
], TranslationInventoryOrigin.prototype, "shapeIri", null);
|
|
176
|
+
__decorate([
|
|
177
|
+
objectProperty({ path: tr.inventoryProperty, maxCount: 1 }),
|
|
178
|
+
__metadata("design:type", String),
|
|
179
|
+
__metadata("design:paramtypes", [])
|
|
180
|
+
], TranslationInventoryOrigin.prototype, "propertyIri", null);
|
|
181
|
+
__decorate([
|
|
182
|
+
objectProperty({ path: tr.inventoryNode, maxCount: 1 }),
|
|
183
|
+
__metadata("design:type", String),
|
|
184
|
+
__metadata("design:paramtypes", [])
|
|
185
|
+
], TranslationInventoryOrigin.prototype, "nodeIri", null);
|
|
186
|
+
__decorate([
|
|
187
|
+
literalProperty({ path: tr.fromPackage, maxCount: 1 }),
|
|
188
|
+
__metadata("design:type", String),
|
|
189
|
+
__metadata("design:paramtypes", [])
|
|
190
|
+
], TranslationInventoryOrigin.prototype, "fromPackage", null);
|
|
191
|
+
__decorate([
|
|
192
|
+
literalProperty({ path: tr.inventoryTargetClass, maxCount: 1 }),
|
|
193
|
+
__metadata("design:type", String),
|
|
194
|
+
__metadata("design:paramtypes", [])
|
|
195
|
+
], TranslationInventoryOrigin.prototype, "targetClass", null);
|
|
196
|
+
__decorate([
|
|
197
|
+
literalProperty({
|
|
198
|
+
path: tr.inventoryObservedAt,
|
|
199
|
+
datatype: xsd.dateTime,
|
|
200
|
+
maxCount: 1,
|
|
201
|
+
}),
|
|
202
|
+
__metadata("design:type", Date),
|
|
203
|
+
__metadata("design:paramtypes", [])
|
|
204
|
+
], TranslationInventoryOrigin.prototype, "observedAt", null);
|
|
205
|
+
TranslationInventoryOrigin = __decorate([
|
|
206
|
+
linkedShape
|
|
207
|
+
], TranslationInventoryOrigin);
|
|
208
|
+
export { TranslationInventoryOrigin };
|
|
209
|
+
//# sourceMappingURL=TranslationInventoryOrigin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslationInventoryOrigin.js","sourceRoot":"","sources":["../../../src/shapes/TranslationInventoryOrigin.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;GAMG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,KAAK;IAGnD,IACI,aAAa;QACf,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACI,MAAM;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACI,QAAQ;QACV,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACI,GAAG;QACL,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,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