@ts4nfdi/terminology-service-suite 6.2.4 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Gets the best matching synonym from a list based on similarity to search value
3
+ * @param synonyms - Array of synonym strings
4
+ * @param searchValue - The search string to match against
5
+ * @returns The best matching synonym, or empty string if no synonyms
6
+ */
7
+ export declare const getBestMatchingSynonym: (synonyms: string[], searchValue: string) => string;
8
+ /**
9
+ * Selects a synonym based on strict searchValue inclusion rules for both the label and the synonym.
10
+ *
11
+ * Rules:
12
+ * 1. If the label contains the searchValue, return empty string.
13
+ * 2. Only consider synonyms that contain the searchValue.
14
+ *
15
+ * @param label - The original label to check against
16
+ * @param synonyms - The list of potential synonyms
17
+ * @param searchValue - The string that must/must not be present
18
+ * @returns The best matching valid synonym, or empty string
19
+ */
20
+ export declare const getConstrainedSynonym: (label: string, synonyms: string[], searchValue: string) => string;
@@ -108,8 +108,8 @@ export declare const InfoWidgetDomainArgs: {
108
108
  api: string;
109
109
  useLegacy: boolean;
110
110
  iri: string;
111
- ontologyId: string;
112
111
  entityType: EntityTypeName;
112
+ ontologyId: string;
113
113
  hasTitle: boolean;
114
114
  showBadges: boolean;
115
115
  parameter: string;
@@ -121,8 +121,8 @@ export declare const InfoWidgetRangeArgs: {
121
121
  api: string;
122
122
  useLegacy: boolean;
123
123
  iri: string;
124
- ontologyId: string;
125
124
  entityType: EntityTypeName;
125
+ ontologyId: string;
126
126
  hasTitle: boolean;
127
127
  showBadges: boolean;
128
128
  parameter: string;
@@ -134,8 +134,8 @@ export declare const InfoWidgetPropertyAssertionArgs: {
134
134
  api: string;
135
135
  useLegacy: boolean;
136
136
  iri: string;
137
- ontologyId: string;
138
137
  entityType: EntityTypeName;
138
+ ontologyId: string;
139
139
  hasTitle: boolean;
140
140
  showBadges: boolean;
141
141
  parameter: string;
@@ -147,8 +147,8 @@ export declare const InfoWidgetPropertyCharacteristicsArgs: {
147
147
  api: string;
148
148
  useLegacy: boolean;
149
149
  iri: string;
150
- ontologyId: string;
151
150
  entityType: EntityTypeName;
151
+ ontologyId: string;
152
152
  hasTitle: boolean;
153
153
  showBadges: boolean;
154
154
  parameter: string;
@@ -163,8 +163,8 @@ export declare const NavigateToEBIPageArgs: {
163
163
  onNavigateToEntity: string;
164
164
  onNavigateToOntology: string;
165
165
  onNavigateToDisambiguate: string;
166
- ontologyId: string;
167
166
  entityType: EntityTypeName;
167
+ ontologyId: string;
168
168
  hasTitle: boolean;
169
169
  showBadges: boolean;
170
170
  parameter: string;