@lde/search 0.36.1 → 0.36.3
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/adapter.d.ts +1 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +1 -1
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +39 -5
- package/dist/schema.d.ts +39 -6
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +39 -12
- package/package.json +1 -1
package/dist/adapter.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* deployment author declaring a schema and running searches needs none of
|
|
7
7
|
* this; the main entry point carries that (small) authoring surface.
|
|
8
8
|
*/
|
|
9
|
-
export { assertTypeInSchema, physicalFields, irAlias, displayFieldName, displayFieldPattern, displayLangOf, searchableFields, facetableFields, filterableFields, sortableFields, outputFields, isInternalField, isInlineReference, nestedReferenceType, nestedFieldName, localLookupTargetsOf, referencedTargetsOf, storedTargetOf, TARGET_FIELD, identityFieldOf, identityFieldName, inheritedFacetPolicies, referenceFields, referenceTypeNamed, rootTypeNamed, inlineFramingDepth, fieldNamed, datasetField, ID_FIELD, AND_KEY, OR_KEY, labelFieldOf, labelFieldNameOf, labelSourceNamesOf, labelTargetNamesOf, documentKeyOf, DEFAULT_LABEL_FIELD, isRangeFacet, isBinnedRangeFacet, storedFacetRanges, isAbsoluteIri, isoToUnixSeconds, lastSecondOf, unixSecondsToIso, isDatePrecision, } from './schema.js';
|
|
9
|
+
export { assertTypeInSchema, physicalFields, irAlias, displayFieldName, displayFieldPattern, displayLangOf, searchableFields, facetableFields, filterableFields, sortableFields, outputFields, isInternalField, isInlineReference, nestedReferenceType, nestedFieldName, localLookupTargetsOf, referencedTargetsOf, storedTargetOf, TARGET_FIELD, identityFieldOf, identityFieldName, inheritedFacetPolicies, referenceFields, referenceTypeNamed, endpointFieldOf, rootTypeNamed, inlineFramingDepth, fieldNamed, datasetField, ID_FIELD, AND_KEY, OR_KEY, labelFieldOf, labelFieldNameOf, labelSourceNamesOf, labelTargetNamesOf, documentKeyOf, DEFAULT_LABEL_FIELD, isRangeFacet, isBinnedRangeFacet, storedFacetRanges, isAbsoluteIri, isoToUnixSeconds, lastSecondOf, unixSecondsToIso, isDatePrecision, } from './schema.js';
|
|
10
10
|
export type { PhysicalFields, DatePrecision, StoredDate } from './schema.js';
|
|
11
11
|
export { missingRequiredFields } from './project.js';
|
|
12
12
|
export { physicalNameTokens } from './physical-name.js';
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/adapter.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* deployment author declaring a schema and running searches needs none of
|
|
7
7
|
* this; the main entry point carries that (small) authoring surface.
|
|
8
8
|
*/
|
|
9
|
-
export { assertTypeInSchema, physicalFields, irAlias, displayFieldName, displayFieldPattern, displayLangOf, searchableFields, facetableFields, filterableFields, sortableFields, outputFields, isInternalField, isInlineReference, nestedReferenceType, nestedFieldName, localLookupTargetsOf, referencedTargetsOf, storedTargetOf, TARGET_FIELD, identityFieldOf, identityFieldName, inheritedFacetPolicies, referenceFields, referenceTypeNamed, rootTypeNamed, inlineFramingDepth, fieldNamed, datasetField, ID_FIELD, AND_KEY, OR_KEY, labelFieldOf, labelFieldNameOf, labelSourceNamesOf, labelTargetNamesOf, documentKeyOf, DEFAULT_LABEL_FIELD, isRangeFacet, isBinnedRangeFacet, storedFacetRanges, isAbsoluteIri, isoToUnixSeconds, lastSecondOf, unixSecondsToIso, isDatePrecision, } from './schema.js';
|
|
9
|
+
export { assertTypeInSchema, physicalFields, irAlias, displayFieldName, displayFieldPattern, displayLangOf, searchableFields, facetableFields, filterableFields, sortableFields, outputFields, isInternalField, isInlineReference, nestedReferenceType, nestedFieldName, localLookupTargetsOf, referencedTargetsOf, storedTargetOf, TARGET_FIELD, identityFieldOf, identityFieldName, inheritedFacetPolicies, referenceFields, referenceTypeNamed, endpointFieldOf, rootTypeNamed, inlineFramingDepth, fieldNamed, datasetField, ID_FIELD, AND_KEY, OR_KEY, labelFieldOf, labelFieldNameOf, labelSourceNamesOf, labelTargetNamesOf, documentKeyOf, DEFAULT_LABEL_FIELD, isRangeFacet, isBinnedRangeFacet, storedFacetRanges, isAbsoluteIri, isoToUnixSeconds, lastSecondOf, unixSecondsToIso, isDatePrecision, } from './schema.js';
|
|
10
10
|
export { missingRequiredFields } from './project.js';
|
|
11
11
|
export { physicalNameTokens } from './physical-name.js';
|
|
12
12
|
export { matchLanguage } from './language.js';
|
package/dist/project.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAuBL,KAAK,eAAe,EAIpB,KAAK,QAAQ,EAEb,KAAK,YAAY,EACjB,KAAK,UAAU,EAGhB,MAAM,aAAa,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAChD,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAC1C;IACC,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAKD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,YAAY,EACrB,OAAO,GAAE,iBAAyC,GACjD,cAAc,CAgBhB;AAmLD;;;;;;;;;;;;GAYG;AACH,wBAAuB,YAAY,CACjC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,EACrB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,GAAE,iBAAyC,GACjD,aAAa,CAAC,cAAc,CAAC,CAc/B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,UAAU,EACtB,MAAM,CAAC,EAAE,YAAY,GACpB,SAAS,MAAM,EAAE,CAmCnB"}
|
package/dist/project.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fold } from '@lde/text-normalization';
|
|
2
2
|
import { matchLanguage } from './language.js';
|
|
3
3
|
import { buildSubjectIndex, frameSubjects, } from './frame-by-type.js';
|
|
4
|
-
import { assertTypeInSchema, displayFieldName, displayLangOf, documentKeyOf, fieldNamed, identityFieldOf, inheritedFacetPolicies, inlineFramingDepth, irAlias, isAbsoluteIri, isInternalField, isInlineReference, isoToUnixSeconds, localLookupTargetsOf, physicalFields, referencedTargetsOf, referenceTypeNamed, storableUnixSeconds, storedTargetOf, TARGET_FIELD, } from './schema.js';
|
|
4
|
+
import { assertTypeInSchema, displayFieldName, displayLangOf, documentKeyOf, endpointFieldOf, fieldNamed, identityFieldOf, inheritedFacetPolicies, inlineFramingDepth, irAlias, isAbsoluteIri, isInternalField, isInlineReference, isoToUnixSeconds, localLookupTargetsOf, physicalFields, referencedTargetsOf, referenceTypeNamed, storableUnixSeconds, storedTargetOf, TARGET_FIELD, } from './schema.js';
|
|
5
5
|
/** The context a projection runs with when its caller supplied none. */
|
|
6
6
|
const NO_PROJECTION_CONTEXT = {};
|
|
7
7
|
/**
|
|
@@ -420,10 +420,15 @@ function targetOfReferent(value, targets) {
|
|
|
420
420
|
if (targets.length === 1 || !isObject(value)) {
|
|
421
421
|
return targets[0];
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
const classes = new Set((Array.isArray(raw) ? raw : [raw]).filter((type) => typeof type === 'string'));
|
|
423
|
+
const classes = classesOf(value);
|
|
425
424
|
return targets.find((target) => classes.has(target.class)) ?? targets[0];
|
|
426
425
|
}
|
|
426
|
+
/** The classes a framed node states it is an instance of: its `@type`, which
|
|
427
|
+
* framing gives as one IRI or a list – empty for a node stating none. */
|
|
428
|
+
function classesOf(value) {
|
|
429
|
+
const raw = value['@type'];
|
|
430
|
+
return new Set((Array.isArray(raw) ? raw : [raw]).filter((type) => typeof type === 'string'));
|
|
431
|
+
}
|
|
427
432
|
/**
|
|
428
433
|
* The targets the reference values of a projected node were resolved through,
|
|
429
434
|
* by id – kept beside the node under a symbol, so it never reaches the
|
|
@@ -677,9 +682,34 @@ function applyInlineReference(document, node, alias, field, schema, context, nes
|
|
|
677
682
|
if (referenceType === undefined) {
|
|
678
683
|
return;
|
|
679
684
|
}
|
|
680
|
-
const
|
|
685
|
+
const asEdge = edgeReader(referenceType, field.ref.identity);
|
|
686
|
+
const referents = applyNestedReferents(document, valuesOf(node, alias).map(asEdge), field, [referenceType], schema, context);
|
|
681
687
|
applyIdentityCompanion(document, referents, field, schema, nested);
|
|
682
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* Read each framed node an inline reference reached as an **edge**: unchanged
|
|
691
|
+
* where the Reference Type declares no {@link ReferenceType.edgeClass edge
|
|
692
|
+
* class} or the node is of it, and otherwise the endpoint the graph pointed at
|
|
693
|
+
* directly, wrapped in an edge carrying it under the identity field alone – so
|
|
694
|
+
* a flat statement and a qualified one project through one path.
|
|
695
|
+
*
|
|
696
|
+
* None of the node’s other values are carried over: read off an endpoint, the
|
|
697
|
+
* edge’s own fields describe the endpoint rather than the edge – a role read
|
|
698
|
+
* from `schema:name` would be the agent’s name.
|
|
699
|
+
*/
|
|
700
|
+
function edgeReader(referenceType, identity) {
|
|
701
|
+
const endpointField = endpointFieldOf(referenceType, identity);
|
|
702
|
+
if (endpointField === undefined) {
|
|
703
|
+
return (value) => value;
|
|
704
|
+
}
|
|
705
|
+
const endpointAlias = irAlias(referenceType, endpointField);
|
|
706
|
+
return (value) =>
|
|
707
|
+
// Only a node can be an endpoint: anything else is left for the
|
|
708
|
+
// projection to discard, as it would be without an edge class.
|
|
709
|
+
!isObject(value) || classesOf(value).has(referenceType.edgeClass)
|
|
710
|
+
? value
|
|
711
|
+
: { [endpointAlias]: [value] };
|
|
712
|
+
}
|
|
683
713
|
/**
|
|
684
714
|
* Write the {@link ReferenceStrategy.identity identity companion} of an inline
|
|
685
715
|
* reference: the ids its entries reference, flattened out of the nested
|
|
@@ -793,6 +823,10 @@ function applyLocalIdentity(document, endpoints, field, schema, nested) {
|
|
|
793
823
|
* companion the facet reads instead: the same rule as every other facetable
|
|
794
824
|
* reference, so an excluded id is never seen by the engine rather than merely
|
|
795
825
|
* unlabelled.
|
|
826
|
+
*
|
|
827
|
+
* The narrowed companion is written at the top level only. A nested field is
|
|
828
|
+
* never faceted – an engine facets per document, not per entry – so no
|
|
829
|
+
* collection declares one there for it to fill.
|
|
796
830
|
*/
|
|
797
831
|
function writeIdentityCompanions(document, targetById, field, targets, schema, nested) {
|
|
798
832
|
const names = physicalFields(field, schema);
|
|
@@ -802,7 +836,7 @@ function writeIdentityCompanions(document, targetById, field, targets, schema, n
|
|
|
802
836
|
}
|
|
803
837
|
setIdentity(document, names.identity, ids, field, nested);
|
|
804
838
|
const policies = inheritedFacetPolicies(field, schema);
|
|
805
|
-
if (policies.size === 0) {
|
|
839
|
+
if (nested || policies.size === 0) {
|
|
806
840
|
return;
|
|
807
841
|
}
|
|
808
842
|
setIdentity(document, names.facet, ids.filter((id) => admitsFacet(policies, targets, targetById.get(id), id)), field, nested);
|
package/dist/schema.d.ts
CHANGED
|
@@ -525,6 +525,9 @@ export interface RootType extends SearchTypeBase {
|
|
|
525
525
|
* reference that names this type ({@link FacetKeys}). Unset, every
|
|
526
526
|
* document does. */
|
|
527
527
|
readonly facetKeys?: FacetKeys;
|
|
528
|
+
/** Only a Reference Type is an edge a graph may leave out
|
|
529
|
+
* ({@link ReferenceType.edgeClass}). */
|
|
530
|
+
readonly edgeClass?: never;
|
|
528
531
|
}
|
|
529
532
|
/**
|
|
530
533
|
* A **Reference Type**: a {@link SearchType} reached only through an
|
|
@@ -549,6 +552,25 @@ export interface ReferenceType extends SearchTypeBase {
|
|
|
549
552
|
/** Nothing references a Reference Type by id, so there is no facet for a
|
|
550
553
|
* policy to narrow. `never` for the same reason `key` is. */
|
|
551
554
|
readonly facetKeys?: never;
|
|
555
|
+
/**
|
|
556
|
+
* The RDF class of this edge’s **own nodes**, for a graph that may leave
|
|
557
|
+
* the edge out and point at the endpoint directly – `schema:contributor`
|
|
558
|
+
* stated flat on one work and through a `schema:Role` on the next.
|
|
559
|
+
*
|
|
560
|
+
* Declaring it is the opt-in. A node an inline reference reaches is then
|
|
561
|
+
* read as this edge where its `rdf:type` is this class, and as the
|
|
562
|
+
* **endpoint itself** otherwise: an entry carrying that node in the
|
|
563
|
+
* reference’s {@link ReferenceStrategy.identity identity} field and none of
|
|
564
|
+
* the edge’s own fields. So every reference nesting this type must declare
|
|
565
|
+
* an `identity` ({@link searchSchema} enforces it) – and with it
|
|
566
|
+
* `filterable` or `facetable`, on a Root Type’s field – and an edge node the
|
|
567
|
+
* graph left untyped, or typed with a subclass (nothing here reasons over
|
|
568
|
+
* subclasses), is read as an endpoint.
|
|
569
|
+
*
|
|
570
|
+
* Not a `class`: that would make this a {@link RootType}, with a collection
|
|
571
|
+
* of its own.
|
|
572
|
+
*/
|
|
573
|
+
readonly edgeClass?: string;
|
|
552
574
|
}
|
|
553
575
|
/**
|
|
554
576
|
* One type’s complete search declaration: its logical API `name`, the queryable
|
|
@@ -619,6 +641,15 @@ export declare function searchSchema<const Types extends readonly SearchType[]>(
|
|
|
619
641
|
* resolves an inline reference’s referent shape through it.
|
|
620
642
|
*/
|
|
621
643
|
export declare function referenceTypeNamed(schema: SearchSchema, name: string): ReferenceType | undefined;
|
|
644
|
+
/**
|
|
645
|
+
* The nested reference an endpoint the graph stated without its edge goes into
|
|
646
|
+
* – the inline reference’s {@link ReferenceStrategy.identity identity} – where
|
|
647
|
+
* the Reference Type declares an {@link ReferenceType.edgeClass edge class},
|
|
648
|
+
* and `undefined` where every node the reference reaches is an edge. The one
|
|
649
|
+
* reading the extraction (which then also reads the endpoint at the first hop)
|
|
650
|
+
* and the projection (which wraps a flat endpoint into an edge) share.
|
|
651
|
+
*/
|
|
652
|
+
export declare function endpointFieldOf(referenceType: ReferenceType, identity: string | undefined): SearchField | undefined;
|
|
622
653
|
/**
|
|
623
654
|
* The {@link RootType} a declaration names – a `lookup`’s `target`, an
|
|
624
655
|
* `idOnly`’s {@link ReferenceField.labelSource} ({@link labelSourceNamesOf}), a
|
|
@@ -1202,12 +1233,14 @@ export declare function storableUnixSeconds(seconds: number): number | undefined
|
|
|
1202
1233
|
* localized `text` field’s display fields are pattern-based and not enumerated
|
|
1203
1234
|
* here – see {@link displayFieldName} and its siblings.
|
|
1204
1235
|
*
|
|
1205
|
-
* The facet is the one member that depends on more than the declaration
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
*
|
|
1209
|
-
*
|
|
1210
|
-
* schema
|
|
1236
|
+
* The facet is the one member that depends on more than the declaration. A
|
|
1237
|
+
* field storing a nested object facets its `${name}_id` identity companion
|
|
1238
|
+
* rather than itself, and a facetable reference whose target declares a
|
|
1239
|
+
* {@link FacetKeys facet policy} facets a `_facet` companion of whichever field
|
|
1240
|
+
* it would otherwise facet – `${name}_facet` or `${name}_id_facet`. Only the
|
|
1241
|
+
* `schema` can resolve either ({@link inheritedFacetPolicies}). Without one the
|
|
1242
|
+
* field facets on its own name – the same reading the projection makes without
|
|
1243
|
+
* a schema, where it cannot re-key a reference either.
|
|
1211
1244
|
*/
|
|
1212
1245
|
export declare function physicalFields(field: SearchField, schema?: SearchSchema): PhysicalFields;
|
|
1213
1246
|
/**
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGrE;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GACnB,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/E;oEACoE;AACpE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC;AAcnD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,GAAG,SAAS,CAE7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,WAAW,GACrB,SAAS,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE1E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B;wCACoC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,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CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAOtE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CA6CpE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,aAAa,GACvB,MAAM,CAyBR;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAsBvD;AAED;;sCAEsC;AACtC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEvE;AAsGD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,WAAW,EAClB,MAAM,CAAC,EAAE,YAAY,GACpB,cAAc,CAwChB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAiBhC"}
|
package/dist/schema.js
CHANGED
|
@@ -118,6 +118,20 @@ export function searchSchema(...types) {
|
|
|
118
118
|
export function referenceTypeNamed(schema, name) {
|
|
119
119
|
return referenceTypesBySchema.get(schema)?.get(name);
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* The nested reference an endpoint the graph stated without its edge goes into
|
|
123
|
+
* – the inline reference’s {@link ReferenceStrategy.identity identity} – where
|
|
124
|
+
* the Reference Type declares an {@link ReferenceType.edgeClass edge class},
|
|
125
|
+
* and `undefined` where every node the reference reaches is an edge. The one
|
|
126
|
+
* reading the extraction (which then also reads the endpoint at the first hop)
|
|
127
|
+
* and the projection (which wraps a flat endpoint into an edge) share.
|
|
128
|
+
*/
|
|
129
|
+
export function endpointFieldOf(referenceType, identity) {
|
|
130
|
+
if (referenceType.edgeClass === undefined || identity === undefined) {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
return fieldNamed(referenceType, identity);
|
|
134
|
+
}
|
|
121
135
|
/**
|
|
122
136
|
* The {@link RootType} a declaration names – a `lookup`’s `target`, an
|
|
123
137
|
* `idOnly`’s {@link ReferenceField.labelSource} ({@link labelSourceNamesOf}), a
|
|
@@ -335,7 +349,8 @@ function assertResolvableInlineReferences(types, referenceTypes) {
|
|
|
335
349
|
if (!isInlineReference(field)) {
|
|
336
350
|
continue;
|
|
337
351
|
}
|
|
338
|
-
|
|
352
|
+
const referenceType = referenceTypes.get(field.ref.typeName);
|
|
353
|
+
if (referenceType === undefined) {
|
|
339
354
|
throw new Error(`Inline reference “${searchType.name}.${field.name}” names “${field.ref.typeName}”, which is not a declared reference type; declare a reference type (a SearchType with no class) with that name.`);
|
|
340
355
|
}
|
|
341
356
|
// An inline reference’s stored value is a nested object, which an engine
|
|
@@ -348,7 +363,7 @@ function assertResolvableInlineReferences(types, referenceTypes) {
|
|
|
348
363
|
.map((role) => `“${role}”`)
|
|
349
364
|
.join(', ')}, which it cannot serve: its value is a nested object, not a token an engine can search, sort or join on.`);
|
|
350
365
|
}
|
|
351
|
-
assertIdentityCompanion(searchType, field,
|
|
366
|
+
assertIdentityCompanion(searchType, field, referenceType);
|
|
352
367
|
}
|
|
353
368
|
}
|
|
354
369
|
for (const searchType of types) {
|
|
@@ -374,10 +389,14 @@ function assertResolvableInlineReferences(types, referenceTypes) {
|
|
|
374
389
|
* Type needs no rule here: {@link assertResolvableLabelSources} walks Reference
|
|
375
390
|
* Types too, so the nested reference this names is resolved with every other.
|
|
376
391
|
*/
|
|
377
|
-
function assertIdentityCompanion(searchType, field,
|
|
392
|
+
function assertIdentityCompanion(searchType, field, referenceType) {
|
|
378
393
|
const where = `Inline reference “${searchType.name}.${field.name}”`;
|
|
379
394
|
const identity = field.ref.identity;
|
|
380
395
|
const filters = field.filterable === true || field.facetable === true;
|
|
396
|
+
const { edgeClass } = referenceType;
|
|
397
|
+
if (identity === undefined && edgeClass !== undefined) {
|
|
398
|
+
throw new Error(`${where} nests “${field.ref.typeName}”, which declares an “edgeClass”, but names no “identity”: a node that is not of the edge class is the endpoint itself, and the identity field is where it goes. Nest it from a Root Type’s field that names the nested reference identifying the endpoint as “identity” and declares “filterable” or “facetable”.`);
|
|
399
|
+
}
|
|
381
400
|
if (identity === undefined) {
|
|
382
401
|
if (filters) {
|
|
383
402
|
throw new Error(`${where} declares “filterable”/“facetable” without an “identity”: a nested object is not a value an engine filters or facets, so it needs a nested reference to name the ids to filter and facet in its place.`);
|
|
@@ -395,9 +414,7 @@ function assertIdentityCompanion(searchType, field, referenceTypes) {
|
|
|
395
414
|
if (searchType.class === undefined) {
|
|
396
415
|
throw new Error(`${where} declares an “identity”, but “${searchType.name}” is a reference type: an identity companion is a flat field beside the reference, and a nested one has nowhere to live. Declare the companion on the reference that carries this type.`);
|
|
397
416
|
}
|
|
398
|
-
|
|
399
|
-
const referenceType = referenceTypes.get(field.ref.typeName);
|
|
400
|
-
const identityField = referenceType && fieldNamed(referenceType, identity);
|
|
417
|
+
const identityField = fieldNamed(referenceType, identity);
|
|
401
418
|
if (identityField === undefined) {
|
|
402
419
|
throw new Error(`${where} names identity “${identity}”, which “${field.ref.typeName}” does not declare.`);
|
|
403
420
|
}
|
|
@@ -405,6 +422,14 @@ function assertIdentityCompanion(searchType, field, referenceTypes) {
|
|
|
405
422
|
labelSourceNamesOf(identityField).length === 0) {
|
|
406
423
|
throw new Error(`${where} names identity “${identity}”, which names no target: an identity companion holds ids of documents in a collection, so the field it harvests must be a reference declaring a “lookup” target or a label source.`);
|
|
407
424
|
}
|
|
425
|
+
// An endpoint stated without its edge carries the identity field alone, so
|
|
426
|
+
// any other required field would be missing from it, dropping the document.
|
|
427
|
+
const requiredOnEdge = edgeClass === undefined
|
|
428
|
+
? undefined
|
|
429
|
+
: referenceType.fields.find((edgeField) => edgeField.required === true && edgeField.name !== identity);
|
|
430
|
+
if (requiredOnEdge !== undefined) {
|
|
431
|
+
throw new Error(`${where} nests “${field.ref.typeName}”, which declares an “edgeClass” and requires “${requiredOnEdge.name}”: an endpoint the graph states without its edge carries only “${identity}”, so it would never have “${requiredOnEdge.name}”. Drop “required” from “${requiredOnEdge.name}”.`);
|
|
432
|
+
}
|
|
408
433
|
}
|
|
409
434
|
/**
|
|
410
435
|
* A {@link ReferenceStrategy.local local} lookup stores a nested object rather
|
|
@@ -1749,12 +1774,14 @@ function deepTimeDate(year) {
|
|
|
1749
1774
|
* localized `text` field’s display fields are pattern-based and not enumerated
|
|
1750
1775
|
* here – see {@link displayFieldName} and its siblings.
|
|
1751
1776
|
*
|
|
1752
|
-
* The facet is the one member that depends on more than the declaration
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
*
|
|
1756
|
-
*
|
|
1757
|
-
* schema
|
|
1777
|
+
* The facet is the one member that depends on more than the declaration. A
|
|
1778
|
+
* field storing a nested object facets its `${name}_id` identity companion
|
|
1779
|
+
* rather than itself, and a facetable reference whose target declares a
|
|
1780
|
+
* {@link FacetKeys facet policy} facets a `_facet` companion of whichever field
|
|
1781
|
+
* it would otherwise facet – `${name}_facet` or `${name}_id_facet`. Only the
|
|
1782
|
+
* `schema` can resolve either ({@link inheritedFacetPolicies}). Without one the
|
|
1783
|
+
* field facets on its own name – the same reading the projection makes without
|
|
1784
|
+
* a schema, where it cannot re-key a reference either.
|
|
1758
1785
|
*/
|
|
1759
1786
|
export function physicalFields(field, schema) {
|
|
1760
1787
|
if (field.kind === 'text') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/search",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "Engine- and domain-agnostic core for RDF-backed search: a unified declarative field model (SearchField/SearchType/SearchSchema), a neutral query IR, the SearchEngine port with logical result types, and a streaming CONSTRUCT-to-document projection. Bakes in no engine, protocol, or domain.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/ldelements/lde.git",
|