glossarist 2.11.3 → 2.12.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4895d3a9f92f0c592e14932542e717c86d6c3b4559eec4ae133f056b99aeaae5
|
|
4
|
+
data.tar.gz: 0aeac1eb4550d81deba20330d9744b73144fbfb50f28e01aec1f55af9410ee9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edd2a440b12a2423a5725036568b85734017e400727db62f166097d71cffaef29abe588ceef136f5b25b06f9904fabafd4500fe6cf461416736b3d02e2ca1b06
|
|
7
|
+
data.tar.gz: ef423629a5f612d5fe6d3d84323d2acc5ae0a5a0aff9903578ac72f3dae01e997a60104d8b8f5e5bb55e7c2c667c3f9753274d804fff9913cb0fd7deed694da0
|
|
@@ -7,6 +7,7 @@ module Glossarist
|
|
|
7
7
|
values: Glossarist::GlossaryDefinition::CONCEPT_SOURCE_TYPES
|
|
8
8
|
attribute :origin, Citation
|
|
9
9
|
attribute :modification, :string
|
|
10
|
+
attribute :sourced_from, Citation, collection: true
|
|
10
11
|
|
|
11
12
|
key_value do
|
|
12
13
|
map :id, to: :id
|
|
@@ -14,6 +15,7 @@ module Glossarist
|
|
|
14
15
|
map :status, to: :status
|
|
15
16
|
map :type, to: :type
|
|
16
17
|
map :modification, to: :modification
|
|
18
|
+
map :sourced_from, to: :sourced_from
|
|
17
19
|
end
|
|
18
20
|
end
|
|
19
21
|
end
|
|
@@ -9,6 +9,7 @@ module Glossarist
|
|
|
9
9
|
attribute :type, :string
|
|
10
10
|
attribute :modification, :string
|
|
11
11
|
attribute :origin, GlossCitation
|
|
12
|
+
attribute :sourced_from, GlossCitation, collection: true
|
|
12
13
|
|
|
13
14
|
rdf do
|
|
14
15
|
namespace Namespaces::GlossaristNamespace
|
|
@@ -25,6 +26,7 @@ module Glossarist
|
|
|
25
26
|
to: :modification
|
|
26
27
|
|
|
27
28
|
members :origin, link: "gloss:sourceOrigin"
|
|
29
|
+
members :sourced_from, link: "gloss:sourcedFrom"
|
|
28
30
|
end
|
|
29
31
|
|
|
30
32
|
def self.deterministic_id(source)
|
|
@@ -33,6 +35,9 @@ module Glossarist
|
|
|
33
35
|
if origin
|
|
34
36
|
parts << origin.source << origin.id << origin.version << origin.link
|
|
35
37
|
end
|
|
38
|
+
Array(source.sourced_from).each do |sf|
|
|
39
|
+
parts << sf&.source << sf&.id << sf&.version << sf&.link
|
|
40
|
+
end
|
|
36
41
|
Digest::MD5.hexdigest(parts.compact.join("|"))[0..11]
|
|
37
42
|
end
|
|
38
43
|
end
|
|
@@ -4,12 +4,14 @@ module Glossarist
|
|
|
4
4
|
module V2
|
|
5
5
|
class ConceptSource < Glossarist::ConceptSource
|
|
6
6
|
attribute :origin, V2::Citation
|
|
7
|
+
attribute :sourced_from, V2::Citation, collection: true
|
|
7
8
|
|
|
8
9
|
key_value do
|
|
9
10
|
map :origin, to: :origin
|
|
10
11
|
map :status, to: :status
|
|
11
12
|
map :type, to: :type
|
|
12
13
|
map :modification, to: :modification
|
|
14
|
+
map :sourced_from, to: :sourced_from
|
|
13
15
|
end
|
|
14
16
|
end
|
|
15
17
|
end
|
|
@@ -4,12 +4,14 @@ module Glossarist
|
|
|
4
4
|
module V3
|
|
5
5
|
class ConceptSource < Glossarist::ConceptSource
|
|
6
6
|
attribute :origin, V3::Citation
|
|
7
|
+
attribute :sourced_from, V3::Citation, collection: true
|
|
7
8
|
|
|
8
9
|
key_value do
|
|
9
10
|
map :origin, to: :origin
|
|
10
11
|
map :status, to: :status
|
|
11
12
|
map :type, to: :type
|
|
12
13
|
map :modification, to: :modification
|
|
14
|
+
map :sourced_from, to: :sourced_from
|
|
13
15
|
end
|
|
14
16
|
end
|
|
15
17
|
end
|
data/lib/glossarist/version.rb
CHANGED
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.
|
|
4
|
+
version: 2.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|