glossarist 0.3.1 → 0.3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "glossarist",
3
- "version": "0.3.1",
4
- "description": "JavaScript SDK for Glossarist GCR packages read, write, validate, and manage terminology concepts",
3
+ "version": "0.3.3",
4
+ "description": "JavaScript SDK for Glossarist GCR packages \u2014 read, write, validate, and manage terminology concepts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "types": "src/index.d.ts",
@@ -3,7 +3,9 @@ import { ConceptRef } from './concept-ref.js';
3
3
 
4
4
  export const RELATIONSHIP_TYPES = Object.freeze([
5
5
  // Lifecycle (ISO 10241-1)
6
- 'deprecates', 'supersedes', 'superseded_by',
6
+ 'deprecates', 'deprecated_by', 'supersedes', 'superseded_by',
7
+ 'replaces', 'replaced_by', 'invalidates', 'invalidated_by',
8
+ 'retires', 'retired_by',
7
9
  // Hierarchical (SKOS)
8
10
  'broader', 'narrower',
9
11
  // ISO 25964 generic
@@ -12,10 +14,17 @@ export const RELATIONSHIP_TYPES = Object.freeze([
12
14
  'broader_partitive', 'narrower_partitive',
13
15
  // ISO 25964 instantial
14
16
  'broader_instantial', 'narrower_instantial',
17
+ // ISO 19135 concept-to-concept
18
+ 'has_concept', 'is_concept_of', 'instance_of', 'has_instance',
19
+ 'has_definition', 'definition_of', 'has_part', 'is_part_of',
20
+ 'inherits', 'inherited_by',
21
+ // ISO 19135 versioning
22
+ 'has_version', 'version_of', 'current_version', 'current_version_of',
15
23
  // SKOS mapping
16
24
  'equivalent', 'close_match', 'broad_match', 'narrow_match', 'related_match',
17
25
  // Associative (ISO 10241-1 / ISO 25964)
18
26
  'see', 'related_concept', 'related_concept_broader', 'related_concept_narrower',
27
+ 'references',
19
28
  // Comparative (ISO 10241-1)
20
29
  'compare', 'contrast',
21
30
  // Spatiotemporal (ISO 25964 / TBX)