@neverblink/ohi 0.17.1 → 0.17.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/dist/catalog.js CHANGED
@@ -65,7 +65,8 @@ function searchResult(bytes, page, perPage) {
65
65
  }
66
66
  return {
67
67
  ...result,
68
- hits: result.hits.map(({ base_url, namespace, name, version, title, description, formats, licenses, published_at }) => ({ base_url, namespace, name, version, title, description, formats, licenses, published_at })),
68
+ hits: result.hits.map(({ base_url, namespace, name, version, title, description, formats, licenses, published_at, keywords }) => ({ base_url, namespace, name, version, title, description, formats, licenses, published_at,
69
+ ...(keywords === undefined ? {} : { keywords }) })),
69
70
  ...(result.facet_counts === undefined ? {} : {
70
71
  facet_counts: result.facet_counts.map(({ field_name, counts }) => ({ field_name, counts: counts.map(({ value, count }) => ({ value, count })) })),
71
72
  }),
@@ -22,6 +22,8 @@ export interface SearchHit {
22
22
  description: string;
23
23
  /** Formats of the publication's available artifacts. Each value identifies both the ontology language and serialization syntax, as in artifact.format. */
24
24
  formats: Format[];
25
+ /** Keywords describing the ontology's subject. An empty list means no keywords are provided. */
26
+ keywords?: string[];
25
27
  /** Reported license names or standard identifiers such as Apache-2.0. Empty means no information supplied. The list specifies neither AND nor OR combination semantics. */
26
28
  licenses: string[];
27
29
  /** Short catalog identifier, qualified by namespace. The namespace/name pair identifies the same ontology across releases. URLs must not be derived from this identifier. */
@@ -116,6 +116,14 @@
116
116
  "$ref": "#/$defs/Format"
117
117
  }
118
118
  },
119
+ "keywords": {
120
+ "title": "keywords",
121
+ "description": "Keywords describing the ontology's subject. An empty list means no keywords are provided.",
122
+ "type": "array",
123
+ "items": {
124
+ "type": "string"
125
+ }
126
+ },
119
127
  "title": {
120
128
  "title": "title",
121
129
  "description": "Display title of the ontology.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neverblink/ohi",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Ohi catalog search, publication inspection and artifact retrieval.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {