@instruments/taxonomy 0.3.0 → 1.0.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 +33 -96
- package/dist/index.d.ts +304 -264
- package/dist/index.js +6989 -373
- package/package.json +3 -22
- package/dist/chunk-4ECRPD2I.js +0 -7508
- package/dist/chunk-CTKOLWGS.js +0 -23
- package/dist/chunk-FCMCKNQF.js +0 -103
- package/dist/chunk-WIRA24HM.js +0 -42
- package/dist/crosswalks/designshop.d.ts +0 -33
- package/dist/crosswalks/designshop.js +0 -363
- package/dist/crosswalks/materialgraph.d.ts +0 -41
- package/dist/crosswalks/materialgraph.js +0 -178
- package/dist/crosswalks/miu.d.ts +0 -19
- package/dist/crosswalks/miu.js +0 -406
- package/dist/estate/index.d.ts +0 -233
- package/dist/estate/index.js +0 -1808
- package/dist/mapping-pvHk5VjC.d.ts +0 -31
- package/dist/match-CWzTEuL-.d.ts +0 -403
- package/dist/taste.d.ts +0 -155
- package/dist/taste.js +0 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,300 +1,340 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
interface TermLocation {
|
|
10
|
-
axisId: string;
|
|
11
|
-
facetId: string;
|
|
12
|
-
termId: string;
|
|
13
|
-
/** `<axis>.<term>`, or `<axis>.<facet>.<term>` on a faceted axis. ADR 0001's target form. */
|
|
14
|
-
qualifiedId: string;
|
|
15
|
-
term: Term;
|
|
16
|
-
}
|
|
17
|
-
/** A parsed assertion: an optional relation predicate wrapping a term reference. */
|
|
18
|
-
interface ParsedAssertion {
|
|
19
|
-
predicate?: RelationPredicate;
|
|
20
|
-
/** The term reference, verbatim and unfolded. */
|
|
21
|
-
target: string;
|
|
22
|
-
}
|
|
23
|
-
interface ResolvedAssertion extends ParsedAssertion {
|
|
24
|
-
location: TermLocation;
|
|
25
|
-
/** The spelling the matcher compares on: `predicate(qualifiedId)` or a bare `qualifiedId`. */
|
|
26
|
-
canonical: string;
|
|
27
|
-
/** True when the named term is deprecated. Resolves anyway; a published id must keep resolving. */
|
|
28
|
-
deprecated: boolean;
|
|
29
|
-
/** The term that replaced it, when deprecated. */
|
|
30
|
-
supersededBy?: string;
|
|
31
|
-
}
|
|
1
|
+
/** An external vocabulary this package crosswalks out to. */
|
|
2
|
+
type ExternalScheme =
|
|
3
|
+
/** Getty Art & Architecture Thesaurus. ODC-By 1.0 - redistributable with attribution. */
|
|
4
|
+
"aat"
|
|
5
|
+
/** Uniclass 2015 (NBS). CC BY-ND 4.0 - referenced by code, never adapted. */
|
|
6
|
+
| "uniclass"
|
|
7
|
+
/** Wikidata Q-items. CC0. */
|
|
8
|
+
| "wikidata";
|
|
32
9
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
10
|
+
* SKOS mapping strength, using SKOS's own vocabulary so the published RDF is a direct rendering
|
|
11
|
+
* rather than a translation. `exact` asserts the two terms are interchangeable in retrieval;
|
|
12
|
+
* `close` asserts they are near enough to substitute in most contexts but not all; `broad` and
|
|
13
|
+
* `narrow` assert containment in the named direction; `related` asserts association only.
|
|
36
14
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
15
|
+
type MatchStrength = "exact" | "close" | "broad" | "narrow" | "related";
|
|
16
|
+
interface ExternalMapping {
|
|
17
|
+
scheme: ExternalScheme;
|
|
18
|
+
/** The external identifier, verbatim: an AAT subject id, a Uniclass code, a Wikidata Q-number. */
|
|
19
|
+
identifier: string;
|
|
20
|
+
/** The external vocabulary's own label for that identifier, verbatim and unedited. */
|
|
21
|
+
label: string;
|
|
22
|
+
match: MatchStrength;
|
|
23
|
+
}
|
|
44
24
|
/**
|
|
45
|
-
*
|
|
46
|
-
* `
|
|
25
|
+
* Where a term's content came from, and when. Ranks the SOURCE, never the accuracy: a term lifted
|
|
26
|
+
* verbatim from an upstream dictionary is `vendored` whether or not the upstream got it right.
|
|
27
|
+
* Using this field as a proxy for correctness is how confident wrong answers get made.
|
|
47
28
|
*/
|
|
48
|
-
|
|
29
|
+
type SourceBasis =
|
|
30
|
+
/** Copied unedited from a named upstream dictionary at a stated snapshot. */
|
|
31
|
+
"vendored"
|
|
32
|
+
/** Written here, from scratch, by a named editor. */
|
|
33
|
+
| "authored"
|
|
34
|
+
/** Written here, but derived from measured usage in a named corpus. */
|
|
35
|
+
| "evidenced"
|
|
36
|
+
/** Adopted from a published external standard, with its identifier carried. */
|
|
37
|
+
| "standard";
|
|
38
|
+
interface TermProvenance {
|
|
39
|
+
basis: SourceBasis;
|
|
40
|
+
/** The upstream file, corpus or standard. Free text, but always specific enough to re-read. */
|
|
41
|
+
source: string;
|
|
42
|
+
/** ISO date the source was read. Absent only for `authored`. */
|
|
43
|
+
snapshot?: string;
|
|
44
|
+
}
|
|
49
45
|
/**
|
|
50
|
-
*
|
|
46
|
+
* A DATED NEGATIVE RESULT: a scheme that was searched for this term and did not have it.
|
|
51
47
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
declare const isCanonicalAssertion: (assertion: string) => boolean;
|
|
59
|
-
/** The assertions this package cannot resolve, in input order. The failure message IS the work item. */
|
|
60
|
-
declare const unknownAssertions: (assertions: Iterable<string>) => readonly string[];
|
|
61
|
-
/** Assertions naming a term that still resolves but has been superseded, with its successor. */
|
|
62
|
-
declare const deprecatedAssertions: (assertions: Iterable<string>) => readonly {
|
|
63
|
-
assertion: string;
|
|
64
|
-
supersededBy: string;
|
|
65
|
-
}[];
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The SKOS property each strength renders to.
|
|
48
|
+
* This is the field that makes the gap publishable. ADR 0001 section 8 softens the planned
|
|
49
|
+
* invariant "every STYLE and PERIOD term carries an AAT mapping" to "carries a mapping OR carries
|
|
50
|
+
* one of these", because AAT has no consumer interiors coverage at all - a live search for
|
|
51
|
+
* *japandi* returns nothing, and *farmhouse*, *transitional* and *coastal* are absent as interior
|
|
52
|
+
* idioms. Without this field an unmapped term is indistinguishable from an unchecked one, and the
|
|
53
|
+
* two are opposites: one is evidence and the other is a to-do.
|
|
69
54
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
55
|
+
* A dated negative against the best art-and-architecture thesaurus in the world is the clearest
|
|
56
|
+
* available statement of why this vocabulary needs to exist.
|
|
72
57
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
58
|
+
interface SearchedWithout {
|
|
59
|
+
scheme: ExternalScheme;
|
|
60
|
+
/** ISO date the search was run. */
|
|
61
|
+
date: string;
|
|
62
|
+
/** What was searched, so a reader can repeat it. */
|
|
63
|
+
query: string;
|
|
64
|
+
/** Where the search was run, e.g. the SPARQL endpoint. */
|
|
65
|
+
via: string;
|
|
66
|
+
}
|
|
76
67
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
68
|
+
* A band, never a count.
|
|
69
|
+
*
|
|
70
|
+
* THE SCALE, stated once so every axis uses the same one. Measured against the corpus named on the
|
|
71
|
+
* term: `dominant` is the top decile of values by frequency, `common` the next, `occasional` a
|
|
72
|
+
* value that appears regularly, `rare` one that barely does, and `unattested` a value the corpus
|
|
73
|
+
* never uses. Set `usage` only where the named corpus can actually speak to the term: omitting it
|
|
74
|
+
* says "not measured here", which is honest, whereas `unattested` against an unrelated corpus
|
|
75
|
+
* would read as a claim about the term rather than about the corpus. The usage figures behind these derive from Material Bank's warehouse and
|
|
76
|
+
* from the DesignShop capture; publishing a raw number would publish a figure from someone else's
|
|
77
|
+
* business. The band carries the signal a reader actually needs - is this term common or rare -
|
|
78
|
+
* and nothing more.
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/** Kept for consumers importing the axis as one list; prefer the facets. */
|
|
88
|
-
declare const FINISH_TERMS: readonly Term[];
|
|
89
|
-
|
|
90
|
-
/** The supplied physical unit or delivery shape, independent of material and installation pattern. */
|
|
91
|
-
declare const FORMAT_TERMS: readonly Term[];
|
|
92
|
-
|
|
93
|
-
/** Specific substance or material system; narrower than the retrieval-oriented material family. */
|
|
94
|
-
declare const MATERIAL_TERMS: readonly Term[];
|
|
95
|
-
|
|
96
|
-
declare const MOOD_TERMS: readonly Term[];
|
|
97
|
-
|
|
98
|
-
/** Kept for consumers importing the axis as one list; prefer the facets. */
|
|
99
|
-
declare const PATTERN_TERMS: readonly Term[];
|
|
100
|
-
|
|
101
|
-
/** What kind of purchasable or specifiable thing the record describes, independent of substance. */
|
|
102
|
-
declare const PRODUCT_CATEGORY_TERMS: readonly Term[];
|
|
103
|
-
|
|
104
|
-
/** A dimension on which a project can impose a constraint; the assertion carries its operator/value. */
|
|
105
|
-
declare const REQUIREMENT_TERMS: readonly Term[];
|
|
106
|
-
|
|
107
|
-
declare const PALETTE_HUE_TERMS: readonly Term[];
|
|
108
|
-
declare const PALETTE_TEMPERATURE_TERMS: readonly Term[];
|
|
109
|
-
declare const PALETTE_CHARACTER_TERMS: readonly Term[];
|
|
110
|
-
/** The three palette facets, each a closed dictionary in its own right. */
|
|
111
|
-
declare const PALETTE_FACETS: readonly ["hue", "temperature", "character"];
|
|
112
|
-
type PaletteFacet = (typeof PALETTE_FACETS)[number];
|
|
113
|
-
|
|
114
|
-
declare const PERIOD_TERMS: readonly Term[];
|
|
80
|
+
type UsageBand = "dominant" | "common" | "occasional" | "rare" | "unattested";
|
|
81
|
+
interface TermUsage {
|
|
82
|
+
band: UsageBand;
|
|
83
|
+
/** The corpus the band was measured against, and when. */
|
|
84
|
+
corpus: string;
|
|
85
|
+
snapshot: string;
|
|
86
|
+
}
|
|
115
87
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* Sibling spans overlap on purpose - Georgian and Regency genuinely do - so "what period is 1800?"
|
|
119
|
-
* has no single answer in the data. Resolving it lives here rather than in each consumer, because
|
|
120
|
-
* a tie-break reinvented five times is five different answers to one question.
|
|
121
|
-
*
|
|
122
|
-
* THE RANKING, and it is not quite the one TAX-10 proposed. That ticket said prefer the narrowest
|
|
123
|
-
* match, then the un-hedged one. Narrowest-first alone gets 1800 wrong: it returns Regency, whose
|
|
124
|
-
* core is 1811-1820, over Georgian, whose core contains 1800 outright. So the first key is whether
|
|
125
|
-
* the year falls in the period's UNCONTROVERSIAL CORE at all:
|
|
88
|
+
* Why a term carries no usage band when the corpus plainly has something to say about it.
|
|
126
89
|
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
90
|
+
* The distinguishing case is `style.modernism`. DesignShop tags a dominant share of its room
|
|
91
|
+
* schemes `Modern`, but that is the crosswalk row that DECLINES: `Modern` reads as either
|
|
92
|
+
* `style.modernism` or `style.contemporary` and the source never recorded which. Attributing the
|
|
93
|
+
* usage would smuggle in the guess the crosswalk refused to make.
|
|
131
94
|
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
|
|
135
|
-
declare const periodsAt: (year: number, { strict }?: {
|
|
136
|
-
strict?: boolean | undefined;
|
|
137
|
-
}) => readonly Term[];
|
|
138
|
-
/** The single best period for a year, or undefined when none covers it. */
|
|
139
|
-
declare const periodAt: (year: number, options?: {
|
|
140
|
-
strict?: boolean;
|
|
141
|
-
}) => Term | undefined;
|
|
142
|
-
|
|
143
|
-
declare const PLACE_REGION_TERMS: readonly Term[];
|
|
144
|
-
declare const PLACE_LANDSCAPE_TERMS: readonly Term[];
|
|
145
|
-
declare const PLACE_FACETS: readonly ["region", "landscape"];
|
|
146
|
-
type PlaceFacet = (typeof PLACE_FACETS)[number];
|
|
147
|
-
|
|
148
|
-
declare const STYLE_TERMS: readonly Term[];
|
|
149
|
-
|
|
150
|
-
type StyleId = (typeof STYLE_TERMS)[number]["id"];
|
|
151
|
-
/** At least one anchor, so a key cannot be added and left empty. */
|
|
152
|
-
type Anchors$1 = readonly [string, ...string[]];
|
|
153
|
-
declare const STYLE_ANCHORS: Readonly<Record<string, Anchors$1>>;
|
|
154
|
-
/** The anchors for a style term, or undefined when the id names no style. */
|
|
155
|
-
declare const anchorsFor: (styleId: string) => Anchors$1 | undefined;
|
|
156
|
-
|
|
157
|
-
declare const MOOD_ANCHORS: Readonly<Record<string, Anchors$1>>;
|
|
158
|
-
/** The anchors for a mood term, or undefined when the id names no mood. */
|
|
159
|
-
declare const moodAnchorsFor: (moodId: string) => Anchors$1 | undefined;
|
|
160
|
-
|
|
161
|
-
declare const PERIOD_ANCHORS: Readonly<Record<string, Anchors$1>>;
|
|
162
|
-
/** The anchors for a period term, or undefined when the id names no period. */
|
|
163
|
-
declare const periodAnchorsFor: (periodId: string) => Anchors$1 | undefined;
|
|
164
|
-
|
|
165
|
-
declare const PLACE_ANCHORS: Readonly<Record<string, Anchors$1>>;
|
|
166
|
-
/** The anchors for a place term, or undefined when the id names no place. */
|
|
167
|
-
declare const placeAnchorsFor: (placeId: string) => Anchors$1 | undefined;
|
|
168
|
-
|
|
169
|
-
type Anchors = readonly [string, ...string[]];
|
|
170
|
-
/**
|
|
171
|
-
* Every space anchor, one file per sector so each stays inside the line budget and reads
|
|
172
|
-
* alphabetically within its own group.
|
|
95
|
+
* Without this field, a reader sees "not measured" and cannot tell that apart from "nobody looked",
|
|
96
|
+
* and those are opposite claims. Same reasoning as `searchedWithout`: an absence somebody reasoned
|
|
97
|
+
* their way to is evidence, and an absence nobody has examined is a to-do.
|
|
173
98
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
99
|
+
interface UsageWithheld {
|
|
100
|
+
reason: string;
|
|
101
|
+
/** The corpus that would otherwise have supplied a band. */
|
|
102
|
+
corpus: string;
|
|
103
|
+
}
|
|
178
104
|
/**
|
|
179
|
-
* A
|
|
105
|
+
* A period's extent, as four numbers rather than two.
|
|
180
106
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* `
|
|
185
|
-
* no market claim at all: the "healthcare" file holds `clean_room`, which serves no single
|
|
186
|
-
* market, and the "domestic" file is a programme word, not `sector.residential`.
|
|
107
|
+
* Two dates cannot answer the questions consumers actually ask. "Is 1832 Georgian?" wants the
|
|
108
|
+
* outer edge; "give me a canonical date for Georgian" wants the core. So each period carries a
|
|
109
|
+
* fuzzy interval: `earliest` and `latest` bound what could defensibly be called this period,
|
|
110
|
+
* `start` and `end` bound what uncontroversially is.
|
|
187
111
|
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* Orangery - which is a list you can search and not a list you can read.
|
|
112
|
+
* `end` and `latest` are NULLABLE, and that is load-bearing rather than tidy. An open-ended period
|
|
113
|
+
* closed with the current year needs an arbitrary edit at every release, and the edit is a lie in
|
|
114
|
+
* between: `contemporary` does not end in 2026, it has not ended.
|
|
192
115
|
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* fill up with things that are not parents.
|
|
116
|
+
* SIBLING SPANS ARE ALLOWED TO OVERLAP, deliberately. Georgian and Regency genuinely do. Resolving
|
|
117
|
+
* "what period is 1800?" is therefore an accessor's job, not the data's - see `periodAt`, which
|
|
118
|
+
* prefers the narrowest match and then the un-hedged one. Leaving that to each consumer would get
|
|
119
|
+
* it reinvented differently every time.
|
|
198
120
|
*/
|
|
199
|
-
interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
121
|
+
interface PeriodSpan {
|
|
122
|
+
/** The earliest year anyone would defensibly call this period. */
|
|
123
|
+
earliest: number;
|
|
124
|
+
/** The first year it uncontroversially is this period. */
|
|
125
|
+
start: number;
|
|
126
|
+
/** The last year it uncontroversially is. Null when the period has not ended. */
|
|
127
|
+
end: number | null;
|
|
128
|
+
/** The last year anyone would defensibly call it this. Null when the period has not ended. */
|
|
129
|
+
latest: number | null;
|
|
130
|
+
/** True when the boundaries are conventional rather than evidenced by an event. */
|
|
131
|
+
circa: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Where these dates apply, as ISO 3166-1 alpha-2, or `global`. Regional variance beyond this
|
|
134
|
+
* belongs in NARROWER TERMS with their own spans, never in a region-to-span map on one term: a
|
|
135
|
+
* map invites partial coverage, and a narrower term is something a relation can point at.
|
|
136
|
+
*/
|
|
137
|
+
regions: readonly string[];
|
|
204
138
|
}
|
|
205
139
|
/**
|
|
206
|
-
*
|
|
140
|
+
* What KIND of thing a style term is, because the three kinds have different truth conditions and
|
|
141
|
+
* conflating them is most of why style vocabularies rot.
|
|
207
142
|
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
* a
|
|
143
|
+
* A `movement` has an art-historical literature, dates and adherents, and its boundaries are
|
|
144
|
+
* arguable in the way a scholarly claim is arguable. A `tradition` is a body of regional or
|
|
145
|
+
* vernacular practice, defined by what is done rather than by what was declared. A `market-idiom`
|
|
146
|
+
* is a prototype category the trade converged on, defined by resemblance to central cases and by
|
|
147
|
+
* nothing else - it has no manifesto to appeal to, and asking for necessary and sufficient
|
|
148
|
+
* conditions misunderstands it.
|
|
212
149
|
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
150
|
+
* Publishing the kind does two things. It tells a reader what sort of disagreement to expect: a
|
|
151
|
+
* dispute about Brutalism is a dispute about the record, a dispute about Farmhouse is a dispute
|
|
152
|
+
* about a prototype, and neither settles like the other. And it is the grouping a browse page needs
|
|
153
|
+
* once STYLE passes about fifty terms, when a flat alphabetical list stops being navigable.
|
|
154
|
+
*/
|
|
155
|
+
type StyleKind = "movement" | "tradition" | "market-idiom";
|
|
156
|
+
/**
|
|
157
|
+
* The named predicates a term may carry to another canonical term. Everything that is not ISA
|
|
158
|
+
* lives here, so `broaderSlug` never silently becomes a bag of loose associations.
|
|
216
159
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
160
|
+
type RelationPredicate =
|
|
161
|
+
/** This element is physically a component of that element. */
|
|
162
|
+
"part-of"
|
|
163
|
+
/** This application or element is typically found in that space. */
|
|
164
|
+
| "typically-in"
|
|
165
|
+
/** This term is a material-suitability claim about that space. */
|
|
166
|
+
| "suitable-for"
|
|
219
167
|
/**
|
|
220
|
-
* The
|
|
221
|
-
*
|
|
168
|
+
* The subject exists to serve that sector's market, wherever the building that contains it
|
|
169
|
+
* stands: a hotel room in a mixed-use tower still serves hospitality, an operating room serves
|
|
170
|
+
* healthcare whoever the landlord is. An IDENTITY claim, never an occurrence claim - "occurs
|
|
171
|
+
* only in that sector" is false for almost any room (a multifamily amenity floor holds
|
|
172
|
+
* restrooms, a commercial kitchen and a gym inside `sector.residential`), which is why most
|
|
173
|
+
* rooms rightly carry no edge.
|
|
222
174
|
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* neutral
|
|
175
|
+
* ABSENCE IS A CLAIM, NOT A GAP. A SPACE term carrying no serves edge and inheriting none
|
|
176
|
+
* through `broaderSlug` asserts that no market is part of its identity: it serves whatever
|
|
177
|
+
* market its project serves, and a consumer must read it as unrestricted - fail-open - never as
|
|
178
|
+
* a restriction nobody wrote down. What makes that reading safe is `MARKET_NEUTRAL_SPACES`
|
|
179
|
+
* (`axes/space/market-neutral.ts`, with the authoring criterion): every SPACE term either
|
|
180
|
+
* carries an edge or is registered there as reviewed-neutral, and the build fails naming any
|
|
181
|
+
* term that is neither. A reviewed absence and an unreviewed one cannot be confused - the same
|
|
182
|
+
* move `searchedWithout` and `usageWithheld` make.
|
|
229
183
|
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* spans all sectors, and excluding it would fail closed.
|
|
184
|
+
* Authored on SPACE only, and pinned there by test. The claim's shape would generalise, but
|
|
185
|
+
* TYPOLOGY must never carry it: sector moves when the tenant moves and typology does not, so a
|
|
186
|
+
* typology-to-sector edge dies on conversion - ADR 0001's converted warehouse full of flats is
|
|
187
|
+
* the standing counterexample.
|
|
235
188
|
*/
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
189
|
+
| "serves"
|
|
190
|
+
/** This style or idiom draws on that place idiom or period. */
|
|
191
|
+
| "evokes"
|
|
192
|
+
/** This style descends from that style. */
|
|
193
|
+
| "influenced-by"
|
|
194
|
+
/** This style is a deliberate blend of two or more named styles, and is defined by being so. */
|
|
195
|
+
| "blend-of"
|
|
196
|
+
/** This surface reads as a material it is not made of. */
|
|
197
|
+
| "reads-as"
|
|
198
|
+
/** Association with no stronger claim available. */
|
|
199
|
+
| "related-to";
|
|
239
200
|
|
|
240
|
-
declare const
|
|
241
|
-
|
|
242
|
-
declare const
|
|
243
|
-
type
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
201
|
+
declare const TAXONOMY_BASE_URI: "https://taxonomy.materialinstruments.com";
|
|
202
|
+
declare const TAXONOMY_SNAPSHOT: "2026-08-30";
|
|
203
|
+
declare const TAXONOMY_VERSION: "1.0.0";
|
|
204
|
+
type CanonicalConceptUri = `${typeof TAXONOMY_BASE_URI}/id/${string}`;
|
|
205
|
+
type LifecycleStatus = "active" | "deprecated";
|
|
206
|
+
interface Lifecycle {
|
|
207
|
+
introducedAt: string;
|
|
208
|
+
reviewedAt: string;
|
|
209
|
+
status: LifecycleStatus;
|
|
210
|
+
supersededBy?: CanonicalConceptUri;
|
|
248
211
|
}
|
|
249
|
-
interface
|
|
250
|
-
|
|
212
|
+
interface Governance {
|
|
213
|
+
explanation: string;
|
|
214
|
+
lifecycle: Lifecycle;
|
|
215
|
+
provenance: TermProvenance;
|
|
216
|
+
steward: "@instruments/taxonomy";
|
|
217
|
+
}
|
|
218
|
+
interface AxisNode {
|
|
219
|
+
boundary: string;
|
|
220
|
+
gap?: string;
|
|
221
|
+
governance: Governance;
|
|
222
|
+
kind: "axis";
|
|
251
223
|
label: string;
|
|
252
|
-
|
|
224
|
+
lifecycle: Lifecycle;
|
|
225
|
+
order: number;
|
|
226
|
+
provenance: TermProvenance;
|
|
253
227
|
question: string;
|
|
254
|
-
|
|
255
|
-
* Where this axis ends and its nearest neighbour begins, with the criterion that decides it.
|
|
256
|
-
* Rendered verbatim on the axis page, because a boundary nobody can read is a boundary that gets
|
|
257
|
-
* re-litigated.
|
|
258
|
-
*/
|
|
259
|
-
boundary: string;
|
|
260
|
-
/** `authored` ships terms. `declared` is a real question with no terms yet, and says so. */
|
|
228
|
+
slug: string;
|
|
261
229
|
status: "authored" | "declared";
|
|
262
|
-
|
|
263
|
-
facets: readonly AxisFacet[];
|
|
264
|
-
/** Why the axis has no terms yet. Present only when status is "declared". */
|
|
265
|
-
gap?: string;
|
|
230
|
+
uri: string;
|
|
266
231
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
readonly
|
|
286
|
-
|
|
232
|
+
interface FacetNode {
|
|
233
|
+
axis: string;
|
|
234
|
+
governance: Governance;
|
|
235
|
+
kind: "facet";
|
|
236
|
+
label: string;
|
|
237
|
+
lifecycle: Lifecycle;
|
|
238
|
+
order: number;
|
|
239
|
+
provenance: TermProvenance;
|
|
240
|
+
slug: string;
|
|
241
|
+
uri: string;
|
|
242
|
+
}
|
|
243
|
+
interface ExternalReference {
|
|
244
|
+
authority: "aat" | "uniclass" | "wikidata";
|
|
245
|
+
identifier: string;
|
|
246
|
+
label: string;
|
|
247
|
+
match: ExternalMapping["match"];
|
|
248
|
+
}
|
|
249
|
+
interface ConceptNode {
|
|
250
|
+
altLabels?: readonly string[];
|
|
251
|
+
axis: string;
|
|
252
|
+
definition?: string;
|
|
253
|
+
externalReferences?: readonly ExternalReference[];
|
|
254
|
+
facet: string;
|
|
255
|
+
governance: Governance;
|
|
256
|
+
governedBy: "taxonomy";
|
|
257
|
+
kind: "concept";
|
|
258
|
+
label: string;
|
|
259
|
+
lifecycle: Lifecycle;
|
|
260
|
+
note?: string;
|
|
261
|
+
order: number;
|
|
262
|
+
provenance: TermProvenance;
|
|
263
|
+
rank?: number;
|
|
264
|
+
searchedWithout?: readonly SearchedWithout[];
|
|
265
|
+
seenAs?: readonly string[];
|
|
266
|
+
slug: string;
|
|
267
|
+
span?: PeriodSpan;
|
|
268
|
+
styleKind?: StyleKind;
|
|
269
|
+
uri: CanonicalConceptUri;
|
|
270
|
+
usage?: TermUsage;
|
|
271
|
+
usageWithheld?: UsageWithheld;
|
|
272
|
+
}
|
|
273
|
+
type KnowledgeGraphNode = AxisNode | FacetNode | ConceptNode;
|
|
274
|
+
type GraphPredicate = RelationPredicate | "belongs-to-axis" | "belongs-to-facet" | "broader" | "narrower" | "has-concept" | "has-facet" | "has-part" | "typically-contains" | "supported-by" | "served-by" | "evoked-by" | "influences" | "blended-into" | "reading-of";
|
|
275
|
+
interface KnowledgeGraphEdge {
|
|
276
|
+
assertion: "asserted" | "inverse";
|
|
277
|
+
from: string;
|
|
278
|
+
governance: Governance;
|
|
279
|
+
lifecycle: Lifecycle;
|
|
280
|
+
predicate: GraphPredicate;
|
|
281
|
+
provenance: TermProvenance;
|
|
282
|
+
role?: "constitutive" | "accent";
|
|
283
|
+
to: string;
|
|
284
|
+
}
|
|
285
|
+
interface KnowledgeGraph {
|
|
286
|
+
edges: readonly KnowledgeGraphEdge[];
|
|
287
|
+
nodes: readonly KnowledgeGraphNode[];
|
|
288
|
+
}
|
|
289
|
+
declare const KNOWLEDGE_GRAPH: KnowledgeGraph;
|
|
290
|
+
interface TaxonomyTarget {
|
|
291
|
+
authority: "taxonomy";
|
|
292
|
+
role?: "primary" | "secondary";
|
|
293
|
+
uri: CanonicalConceptUri;
|
|
294
|
+
}
|
|
295
|
+
declare const COLOR_SCOPE_REFERENCE_KINDS: readonly ["chroma-level", "color-family", "lightness-level", "named-color", "palette-mood", "temperature-level"];
|
|
296
|
+
type ColorScopeReferenceKind = (typeof COLOR_SCOPE_REFERENCE_KINDS)[number];
|
|
297
|
+
interface ColorScopeTarget {
|
|
298
|
+
authority: "colorscope";
|
|
299
|
+
authorityUri: "https://colorscope.materialinstruments.com";
|
|
300
|
+
identifier: string;
|
|
301
|
+
referenceKind: ColorScopeReferenceKind;
|
|
302
|
+
role?: "primary" | "secondary";
|
|
303
|
+
}
|
|
304
|
+
type LexicalTarget = TaxonomyTarget | ColorScopeTarget;
|
|
305
|
+
type LexicalContext = "colour" | "material";
|
|
306
|
+
interface LexicalBase {
|
|
307
|
+
explanation: string;
|
|
308
|
+
governance: Governance;
|
|
309
|
+
phrase: string;
|
|
310
|
+
}
|
|
311
|
+
type LexicalEntry = (LexicalBase & {
|
|
312
|
+
outcome: "equivalent";
|
|
313
|
+
target: LexicalTarget;
|
|
314
|
+
}) | (LexicalBase & {
|
|
315
|
+
contextualPreferences?: readonly {
|
|
316
|
+
context: LexicalContext;
|
|
317
|
+
target: LexicalTarget;
|
|
318
|
+
}[];
|
|
319
|
+
/** An explicitly authored default reading; never inferred from array order. */
|
|
320
|
+
defaultTarget?: LexicalTarget;
|
|
321
|
+
outcome: "ambiguous";
|
|
322
|
+
readings: readonly [LexicalTarget, LexicalTarget, ...LexicalTarget[]];
|
|
323
|
+
}) | (LexicalBase & {
|
|
324
|
+
outcome: "declined";
|
|
325
|
+
reason: string;
|
|
326
|
+
});
|
|
327
|
+
/** Declarative readings only. Consumers choose indexing and application behaviour. */
|
|
328
|
+
declare const LEXICAL_ENTRIES: readonly LexicalEntry[];
|
|
329
|
+
/** Content address for CI drift checks; changes whenever the public corpus representation changes. */
|
|
330
|
+
declare const TAXONOMY_CORPUS_REVISION: string;
|
|
331
|
+
declare const TAXONOMY_CORPUS_METADATA: {
|
|
332
|
+
readonly edgeCount: number;
|
|
333
|
+
readonly lexicalEntryCount: number;
|
|
334
|
+
readonly nodeCount: number;
|
|
335
|
+
readonly revision: string;
|
|
336
|
+
readonly snapshot: "2026-08-30";
|
|
337
|
+
readonly version: "1.0.0";
|
|
287
338
|
};
|
|
288
|
-
declare const MATERIAL_FAMILIES: readonly ["paint", "wall_finish", "wallcovering", "textile", "upholstery", "carpet", "wood", "stone", "tile", "terrazzo", "metal", "glass", "resilient_flooring", "composite", "concrete", "leather", "other"];
|
|
289
|
-
type MaterialFamily = (typeof MATERIAL_FAMILIES)[number];
|
|
290
|
-
declare const isMaterialFamily: (value: string) => value is MaterialFamily;
|
|
291
|
-
declare const SECTORS: readonly ["hospitality", "healthcare", "workplace", "residential", "retail", "education", "civic", "mixed_use", "transportation", "other"];
|
|
292
|
-
type Sector = (typeof SECTORS)[number];
|
|
293
|
-
declare const isSector: (value: string) => value is Sector;
|
|
294
|
-
declare const APPLICATIONS: readonly ["wall", "flooring", "ceiling", "bath", "kitchen", "furniture", "lighting", "door", "window", "facade", "countertop", "fireplace", "stair_elevator", "bedding", "decor", "vertically_hanging", "transportation", "pool_fountain", "paving_deck", "partition", "millwork", "cabinetry", "masonry", "roof", "garage", "bar", "awning_umbrella", "recreation_sport", "ornamentation", "aquatic_environments", "upholstery", "trim", "wall_backsplash", "wall_upholstered", "wall_wet_shower", "flooring_wet_area", "flooring_entrance", "flooring_radiant_heat", "flooring_or_lab", "flooring_anti_fatigue", "flooring_esd", "flooring_safety_slip", "flooring_raised_access", "flooring_rigid_core", "flooring_dining_area", "flooring_subject_oil", "flooring_walk_in_freezer", "flooring_ramps_inclines", "furniture_seating", "furniture_headboard", "furniture_slipcover", "furniture_systems", "furniture_tackboard", "furniture_throw_pillow", "fireplace_firebox", "fireplace_hearth", "fireplace_mantel", "fireplace_surround", "bedding_bed_scarf", "bedding_sheets", "bedding_skirt", "bedding_bedspread", "bedding_box_spring_cover", "stair_riser", "stair_tread", "stair_railing", "stair_elevator_cladding", "vh_drapery", "vh_privacy_curtain", "vh_shower_curtain", "vh_theatrical_curtain", "vh_window_shade", "transportation_automotive", "transportation_aviation", "transportation_marine", "pool_coping", "pool_decking", "pool_lining", "paving_covered_areas", "paving_patio", "partition_toilet", "masonry_structural", "masonry_veneer", "recreation_gymnasium", "recreation_playground", "recreation_weightlifting", "awning", "tensile_structure", "umbrella", "countertop_chemical_resistant"];
|
|
295
|
-
type Application = (typeof APPLICATIONS)[number];
|
|
296
|
-
declare const isApplication: (value: string) => value is Application;
|
|
297
|
-
declare const APPLICATION_PARENTS: Readonly<Partial<Record<Application, Application>>>;
|
|
298
|
-
declare const applicationTopLevelOf: (application: Application) => Application;
|
|
299
339
|
|
|
300
|
-
export {
|
|
340
|
+
export { type AxisNode, COLOR_SCOPE_REFERENCE_KINDS, type CanonicalConceptUri, type ColorScopeReferenceKind, type ColorScopeTarget, type ConceptNode, type ExternalReference, type FacetNode, type Governance, type GraphPredicate, KNOWLEDGE_GRAPH, type KnowledgeGraph, type KnowledgeGraphEdge, type KnowledgeGraphNode, LEXICAL_ENTRIES, type LexicalContext, type LexicalEntry, type LexicalTarget, type Lifecycle, type LifecycleStatus, type PeriodSpan, type SearchedWithout, type StyleKind, TAXONOMY_BASE_URI, TAXONOMY_CORPUS_METADATA, TAXONOMY_CORPUS_REVISION, TAXONOMY_SNAPSHOT, TAXONOMY_VERSION, type TaxonomyTarget, type TermProvenance, type TermUsage, type UsageWithheld };
|