sdu_smart 0.1.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c901b4efaae75a23a307899d5aaab016b04d04aa15f6f2e4f55c38305b2912d2
4
- data.tar.gz: 87c1489ca3feeb083e7c94d0bf6f00d841f3d691ae8c3453b3c92ac2e9b11786
3
+ metadata.gz: 1cc27a4f4cad6abd40ac501a08dc0932cc9f0929c3bb1bc383ee33338579807e
4
+ data.tar.gz: 50ef369f2de4ad4ea4c095e7093b95a659a115503ca978a88cf6aad051b7ae9a
5
5
  SHA512:
6
- metadata.gz: b48bb126015cf95863cb7df17cb75cb705c852a13aa9e331a7c7dfae7b56f1eb9e0b92d2577ad44fc196fa378b8752e8cace1acc842645f1680bee16672cc2dc
7
- data.tar.gz: 6eee243941a9eb098b398209c7e8b72462fdc1099ce90b1e48d32d886bbb884232ded81a239bda5768677efcf9dff65d3f80d9ef6d958657e6d9b0898f70aef3
6
+ metadata.gz: 2194b52c75e440c78e64757a9511a6d2c942409f64a15ed564a6f835f316ec5d9d5fb83660a8ab78344249c6c2557e49fcbf81aa0fe3e7d03af7183c69c61b01
7
+ data.tar.gz: ecadbad708aa733fcfdedffcd6ae8020c98f03b2b2318a8596afc94bd6a2bef83d6873c8743280a39c7bdabd5e815a0a7a46e9fbbc2dcd62dfda3da2139ebb11
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Capability < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Capability"
11
- end
5
+ provision_subtype "Capability"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class ExternalConstraint < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:ExternalConstraint"
11
- end
5
+ provision_subtype "ExternalConstraint"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Instruction < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Instruction"
11
- end
5
+ provision_subtype "Instruction"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Permission < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Permission"
11
- end
5
+ provision_subtype "Permission"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Possibility < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Possibility"
11
- end
5
+ provision_subtype "Possibility"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Recommendation < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Recommendation"
11
- end
5
+ provision_subtype "Recommendation"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Requirement < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Requirement"
11
- end
5
+ provision_subtype "Requirement"
12
6
  end
13
7
  end
@@ -2,12 +2,6 @@
2
2
 
3
3
  module SduSmart
4
4
  class Statement < Provision
5
- rdf do
6
- namespace SduSmart::Rdf::Namespaces::SmartNamespace
7
-
8
- subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
9
-
10
- type "smart:Statement"
11
- end
5
+ provision_subtype "Statement"
12
6
  end
13
7
  end
@@ -51,5 +51,15 @@ module SduSmart
51
51
  namespace: SduSmart::Rdf::Namespaces::DcatNamespace,
52
52
  to: :distribution
53
53
  end
54
+
55
+ def self.provision_subtype(rdf_name)
56
+ rdf do
57
+ namespace SduSmart::Rdf::Namespaces::SmartNamespace
58
+
59
+ subject { |m| "https://w3id.org/standards/smart/ontologies/core/#{m.id}" }
60
+
61
+ type "smart:#{rdf_name}"
62
+ end
63
+ end
54
64
  end
55
65
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SduSmart
4
+ module Rdf
5
+ module Namespaces
6
+ class IsqNamespace < Lutaml::Rdf::Namespace
7
+ uri "https://w3id.org/standards/isq/ontologies/core/"
8
+ prefix "isq"
9
+ end
10
+ end
11
+ end
12
+ end
@@ -5,7 +5,7 @@ module SduSmart
5
5
  module Namespaces
6
6
  autoload :SmartNamespace, "#{__dir__}/namespaces/smart_namespace"
7
7
  autoload :OaNamespace, "#{__dir__}/namespaces/oa_namespace"
8
- autoload :IsoIec80000Namespace, "#{__dir__}/namespaces/isoiec80000_namespace"
8
+ autoload :IsqNamespace, "#{__dir__}/namespaces/isq_namespace"
9
9
  autoload :DcatNamespace, "#{__dir__}/namespaces/dcat_namespace"
10
10
  autoload :ProvNamespace, "#{__dir__}/namespaces/prov_namespace"
11
11
  autoload :SkosXlNamespace, "#{__dir__}/namespaces/skosxl_namespace"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SduSmart
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdu_smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-05-27 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: lutaml-model
@@ -15,14 +16,14 @@ dependencies:
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: 0.8.0
19
+ version: 0.8.11
19
20
  type: :runtime
20
21
  prerelease: false
21
22
  version_requirements: !ruby/object:Gem::Requirement
22
23
  requirements:
23
24
  - - "~>"
24
25
  - !ruby/object:Gem::Version
25
- version: 0.8.0
26
+ version: 0.8.11
26
27
  description: Ruby gem providing the SmartSDU Core Ontology information model. Includes
27
28
  Entity, Provision, TermEntry, PublicationDocument, SKOS taxonomy instances, and
28
29
  RDF namespace modules. Built on lutaml-model with Turtle and JSON-LD serialization
@@ -56,7 +57,7 @@ files:
56
57
  - lib/sdu_smart/rdf.rb
57
58
  - lib/sdu_smart/rdf/namespaces.rb
58
59
  - lib/sdu_smart/rdf/namespaces/dcat_namespace.rb
59
- - lib/sdu_smart/rdf/namespaces/isoiec80000_namespace.rb
60
+ - lib/sdu_smart/rdf/namespaces/isq_namespace.rb
60
61
  - lib/sdu_smart/rdf/namespaces/oa_namespace.rb
61
62
  - lib/sdu_smart/rdf/namespaces/prov_namespace.rb
62
63
  - lib/sdu_smart/rdf/namespaces/skosxl_namespace.rb
@@ -83,6 +84,7 @@ metadata:
83
84
  source_code_uri: https://github.com/metanorma/sdu-smart
84
85
  changelog_uri: https://github.com/metanorma/sdu-smart/releases
85
86
  rubygems_mfa_required: 'true'
87
+ post_install_message:
86
88
  rdoc_options: []
87
89
  require_paths:
88
90
  - lib
@@ -97,7 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
99
  - !ruby/object:Gem::Version
98
100
  version: '0'
99
101
  requirements: []
100
- rubygems_version: 3.6.9
102
+ rubygems_version: 3.5.22
103
+ signing_key:
101
104
  specification_version: 4
102
105
  summary: SmartSDU Core Ontology — Lutaml-model classes with RDF serialization.
103
106
  test_files: []
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module SduSmart
4
- module Rdf
5
- module Namespaces
6
- class IsoIec80000Namespace < Lutaml::Rdf::Namespace
7
- uri "https://w3id.org/standards/isoiec80000/ontologies/core/"
8
- prefix "isoiec80000"
9
- end
10
- end
11
- end
12
- end