relaton-w3c 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb96ed72b04b04404d6c20fe1c3d83e918580e8721083bb0d08602d22762576b
4
- data.tar.gz: 775aefb0d4f807e6002b691448eefbed4687d0a27bae1152371385dbb5bcb6b4
3
+ metadata.gz: 02ea55b013728a44b7fff3f17f147e9d2aca7fb682985f99c0a24148e82e4435
4
+ data.tar.gz: dda92c31185f62b65c506fc5d2f1ae2a87a712486254d5f13b10c2fe88d2f50b
5
5
  SHA512:
6
- metadata.gz: 4f768f5a43524e9a159b66b0646bf8ac0643ed3e9dfa5d0adb7444d08e01967de02ff3001d948cc5289685a7108f456eb5fc6ea7536134ef3c2557d057aa5536
7
- data.tar.gz: db77e522c3b6aa6b035ae32589528d75365d9d82b4f1bc9b9daa38af03ba044503e312a8175060f1c825d0d8fb63d3d64313fae33992ea5ce5a4035ca3be297b
6
+ metadata.gz: c4d52ca9e7c34579c7ea67e7a13751151a7d2e53f97670c82d4f2d50357e9fc49c096aa1a3e00c9a088ebadf79c3b8860793b4cea8c549df67cad4614d71e7b1
7
+ data.tar.gz: 6def3839ae60662629b2e57d40813a05ea34982ef3f3619d39e2b7e873b3fa76c1104ffcfa5259e65ed7225970112e4c4ed8a9b701551747ccfcd705e1ceb47d
data/grammars/biblio.rng CHANGED
@@ -209,9 +209,6 @@
209
209
  <zeroOrMore>
210
210
  <ref name="contact"/>
211
211
  </zeroOrMore>
212
- <zeroOrMore>
213
- <ref name="uri"/>
214
- </zeroOrMore>
215
212
  </element>
216
213
  </define>
217
214
  <define name="fullname">
@@ -828,6 +825,11 @@
828
825
  <optional>
829
826
  <attribute name="scope"/>
830
827
  </optional>
828
+ <optional>
829
+ <attribute name="primary">
830
+ <data type="boolean"/>
831
+ </attribute>
832
+ </optional>
831
833
  <text/>
832
834
  </element>
833
835
  </define>
@@ -75,7 +75,7 @@ module RelatonW3c
75
75
  #
76
76
  def parse_docid
77
77
  id = pub_id(@sol.link.to_s)
78
- [RelatonBib::DocumentIdentifier.new(type: "W3C", id: id)]
78
+ [RelatonBib::DocumentIdentifier.new(type: "W3C", id: id, primary: true)]
79
79
  end
80
80
 
81
81
  #
@@ -39,7 +39,7 @@ module RelatonW3c
39
39
  # @return [Array<RelatonBib::DocumentIdentifier>]
40
40
  def fetch_docid(hit)
41
41
  id = hit["link"].split("/").last
42
- [RelatonBib::DocumentIdentifier.new(id: id, type: "W3C")]
42
+ [RelatonBib::DocumentIdentifier.new(id: id, type: "W3C", primary: true)]
43
43
  end
44
44
 
45
45
  # @param hit [Hash]
@@ -1,3 +1,3 @@
1
1
  module RelatonW3c
2
- VERSION = "1.10.0".freeze
2
+ VERSION = "1.10.1".freeze
3
3
  end
data/relaton_w3c.gemspec CHANGED
@@ -40,6 +40,6 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "linkeddata", "~> 3.1.0"
41
41
  spec.add_dependency "mechanize", "~> 2.8.0"
42
42
  spec.add_dependency "rdf", "~> 3.1.0"
43
- spec.add_dependency "relaton-bib", "~> 1.10.0"
43
+ spec.add_dependency "relaton-bib", "~> 1.10.1"
44
44
  spec.add_dependency "sparql", "~> 3.1.0"
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-w3c
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-30 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.10.0
131
+ version: 1.10.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.10.0
138
+ version: 1.10.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sparql
141
141
  requirement: !ruby/object:Gem::Requirement