glossarist 2.13.8 → 2.13.10
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.
- checksums.yaml +4 -4
- data/PROMPT-NOW.md +227 -0
- data/lib/glossarist/figure.rb +1 -1
- data/lib/glossarist/formula.rb +1 -1
- data/lib/glossarist/mention_parser.rb +174 -0
- data/lib/glossarist/{non_verbal_entity.rb → non_concept_entity.rb} +17 -8
- data/lib/glossarist/non_verb_rep.rb +14 -5
- data/lib/glossarist/reference_extractor.rb +59 -4
- data/lib/glossarist/{shared_non_verbal_entity.rb → shared_non_concept_entity.rb} +6 -3
- data/lib/glossarist/table.rb +1 -1
- data/lib/glossarist/v3/abstract_hyperedge.rb +62 -0
- data/lib/glossarist/v3/concept_system.rb +101 -0
- data/lib/glossarist/v3/concept_system_type.rb +16 -0
- data/lib/glossarist/v3/concept_type.rb +15 -0
- data/lib/glossarist/v3/equivalence_degree.rb +17 -0
- data/lib/glossarist/v3/sequential_hyperedge.rb +34 -0
- data/lib/glossarist/v3/sequential_member.rb +15 -0
- data/lib/glossarist/v3.rb +10 -0
- data/lib/glossarist/validation/rules/concept_context.rb +10 -2
- data/lib/glossarist/validation/rules/extensional_definition_rule.rb +120 -0
- data/lib/glossarist/validation/rules/external_concept_rule.rb +91 -0
- data/lib/glossarist/validators/no_raw_html.rb +86 -0
- data/lib/glossarist/validators.rb +10 -0
- data/lib/glossarist/version.rb +1 -1
- data/lib/glossarist.rb +29 -2
- metadata +16 -4
data/lib/glossarist.rb
CHANGED
|
@@ -40,8 +40,8 @@ module Glossarist
|
|
|
40
40
|
autoload :ConceptEnricher, "glossarist/concept_enricher"
|
|
41
41
|
autoload :Config, "glossarist/config"
|
|
42
42
|
autoload :LocalizedString, "glossarist/localized_string"
|
|
43
|
-
autoload :
|
|
44
|
-
autoload :
|
|
43
|
+
autoload :NonConceptEntity, "glossarist/non_concept_entity"
|
|
44
|
+
autoload :SharedNonConceptEntity, "glossarist/shared_non_concept_entity"
|
|
45
45
|
autoload :NonVerbalReference, "glossarist/non_verbal_reference"
|
|
46
46
|
autoload :Figure, "glossarist/figure"
|
|
47
47
|
autoload :FigureImage, "glossarist/figure_image"
|
|
@@ -65,6 +65,8 @@ module Glossarist
|
|
|
65
65
|
autoload :ManagedConcept, "glossarist/managed_concept"
|
|
66
66
|
autoload :ManagedConceptCollection, "glossarist/managed_concept_collection"
|
|
67
67
|
autoload :ManagedConceptData, "glossarist/managed_concept_data"
|
|
68
|
+
autoload :MentionParser, "glossarist/mention_parser"
|
|
69
|
+
autoload :MentionKinds, "glossarist/mention_parser"
|
|
68
70
|
autoload :NonVerbRep, "glossarist/non_verb_rep"
|
|
69
71
|
autoload :Pronunciation, "glossarist/pronunciation"
|
|
70
72
|
autoload :RelatedConcept, "glossarist/related_concept"
|
|
@@ -86,10 +88,35 @@ module Glossarist
|
|
|
86
88
|
autoload :GlossaryDefinition, "glossarist/glossary_definition"
|
|
87
89
|
autoload :GlossaryStore, "glossarist/glossary_store"
|
|
88
90
|
autoload :Tasks, "glossarist/tasks"
|
|
91
|
+
autoload :Validators, "glossarist/validators"
|
|
89
92
|
|
|
90
93
|
LANG_CODES = %w[eng ara deu fra spa ita jpn kor pol por srp swe zho rus fin
|
|
91
94
|
dan nld msa nob nno].freeze
|
|
92
95
|
|
|
96
|
+
# @deprecated Use NonConceptEntity. Removed in next minor release.
|
|
97
|
+
def self.const_missing(name)
|
|
98
|
+
case name
|
|
99
|
+
when :NonVerbalEntity
|
|
100
|
+
warn "[glossarist] Glossarist::NonVerbalEntity is deprecated; " \
|
|
101
|
+
"use Glossarist::NonConceptEntity instead."
|
|
102
|
+
NonConceptEntity
|
|
103
|
+
when :SharedNonVerbalEntity
|
|
104
|
+
warn "[glossarist] Glossarist::SharedNonVerbalEntity is deprecated; " \
|
|
105
|
+
"use Glossarist::SharedNonConceptEntity instead."
|
|
106
|
+
SharedNonConceptEntity
|
|
107
|
+
else
|
|
108
|
+
super
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Parse a single {{...}} mention into a canonical Hash. Defined here
|
|
113
|
+
# (rather than via autoload) so calling Glossarist.parse_mention(str)
|
|
114
|
+
# triggers the MentionParser autoload chain transparently — method
|
|
115
|
+
# calls do not fire autoloads on their own.
|
|
116
|
+
def self.parse_mention(text)
|
|
117
|
+
MentionParser.parse_mention(text)
|
|
118
|
+
end
|
|
119
|
+
|
|
93
120
|
SCHEMA_VERSION = "3"
|
|
94
121
|
V3_SCHEMA_VERSION = "3"
|
|
95
122
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glossarist
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.13.
|
|
4
|
+
version: 2.13.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
@@ -195,6 +195,7 @@ files:
|
|
|
195
195
|
- CLAUDE.md
|
|
196
196
|
- Gemfile
|
|
197
197
|
- LICENSE.txt
|
|
198
|
+
- PROMPT-NOW.md
|
|
198
199
|
- README.adoc
|
|
199
200
|
- Rakefile
|
|
200
201
|
- config.yml
|
|
@@ -291,8 +292,9 @@ files:
|
|
|
291
292
|
- lib/glossarist/managed_concept.rb
|
|
292
293
|
- lib/glossarist/managed_concept_collection.rb
|
|
293
294
|
- lib/glossarist/managed_concept_data.rb
|
|
295
|
+
- lib/glossarist/mention_parser.rb
|
|
296
|
+
- lib/glossarist/non_concept_entity.rb
|
|
294
297
|
- lib/glossarist/non_verb_rep.rb
|
|
295
|
-
- lib/glossarist/non_verbal_entity.rb
|
|
296
298
|
- lib/glossarist/non_verbal_reference.rb
|
|
297
299
|
- lib/glossarist/pronunciation.rb
|
|
298
300
|
- lib/glossarist/rdf.rb
|
|
@@ -352,7 +354,7 @@ files:
|
|
|
352
354
|
- lib/glossarist/schema_migration/v0_to_v1.rb
|
|
353
355
|
- lib/glossarist/schema_migration/v2_to_v3.rb
|
|
354
356
|
- lib/glossarist/section.rb
|
|
355
|
-
- lib/glossarist/
|
|
357
|
+
- lib/glossarist/shared_non_concept_entity.rb
|
|
356
358
|
- lib/glossarist/sts.rb
|
|
357
359
|
- lib/glossarist/sts/extracted_designation.rb
|
|
358
360
|
- lib/glossarist/sts/extracted_lang_set.rb
|
|
@@ -398,9 +400,13 @@ files:
|
|
|
398
400
|
- lib/glossarist/v3/concept_document.rb
|
|
399
401
|
- lib/glossarist/v3/concept_ref.rb
|
|
400
402
|
- lib/glossarist/v3/concept_source.rb
|
|
403
|
+
- lib/glossarist/v3/concept_system.rb
|
|
404
|
+
- lib/glossarist/v3/concept_system_type.rb
|
|
405
|
+
- lib/glossarist/v3/concept_type.rb
|
|
401
406
|
- lib/glossarist/v3/configuration.rb
|
|
402
407
|
- lib/glossarist/v3/definition_type.rb
|
|
403
408
|
- lib/glossarist/v3/detailed_definition.rb
|
|
409
|
+
- lib/glossarist/v3/equivalence_degree.rb
|
|
404
410
|
- lib/glossarist/v3/generic_hyperedge.rb
|
|
405
411
|
- lib/glossarist/v3/generic_member.rb
|
|
406
412
|
- lib/glossarist/v3/hyperedge_index.rb
|
|
@@ -415,6 +421,8 @@ files:
|
|
|
415
421
|
- lib/glossarist/v3/partitive_member.rb
|
|
416
422
|
- lib/glossarist/v3/related_concept.rb
|
|
417
423
|
- lib/glossarist/v3/relation_loader.rb
|
|
424
|
+
- lib/glossarist/v3/sequential_hyperedge.rb
|
|
425
|
+
- lib/glossarist/v3/sequential_member.rb
|
|
418
426
|
- lib/glossarist/validation.rb
|
|
419
427
|
- lib/glossarist/validation/asset_index.rb
|
|
420
428
|
- lib/glossarist/validation/bibliography_index.rb
|
|
@@ -442,6 +450,8 @@ files:
|
|
|
442
450
|
- lib/glossarist/validation/rules/domain_target_rule.rb
|
|
443
451
|
- lib/glossarist/validation/rules/duplicate_term_rule.rb
|
|
444
452
|
- lib/glossarist/validation/rules/entry_status_rule.rb
|
|
453
|
+
- lib/glossarist/validation/rules/extensional_definition_rule.rb
|
|
454
|
+
- lib/glossarist/validation/rules/external_concept_rule.rb
|
|
445
455
|
- lib/glossarist/validation/rules/filename_id_rule.rb
|
|
446
456
|
- lib/glossarist/validation/rules/gcr_context.rb
|
|
447
457
|
- lib/glossarist/validation/rules/hyperedge_coherence_rule.rb
|
|
@@ -472,6 +482,8 @@ files:
|
|
|
472
482
|
- lib/glossarist/validation/shacl_validator.rb
|
|
473
483
|
- lib/glossarist/validation/validation_issue.rb
|
|
474
484
|
- lib/glossarist/validation_result.rb
|
|
485
|
+
- lib/glossarist/validators.rb
|
|
486
|
+
- lib/glossarist/validators/no_raw_html.rb
|
|
475
487
|
- lib/glossarist/version.rb
|
|
476
488
|
- memory/project-status.md
|
|
477
489
|
- relaton-bib-2.0.0.gem
|