relaton-ogc 1.3.0 → 1.4.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 +4 -4
- data/README.adoc +12 -5
- data/grammars/isodoc.rng +130 -21
- data/grammars/ogc.rng +1 -1
- data/lib/relaton_ogc/editorial_group.rb +5 -0
- data/lib/relaton_ogc/ogc_bibliographic_item.rb +1 -1
- data/lib/relaton_ogc/ogc_bibliography.rb +2 -2
- data/lib/relaton_ogc/version.rb +1 -1
- data/relaton_ogc.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61e0fa8b5d0b490c0f9202c6810b4e14b86d159d8f1597117585a1483abaf017
|
|
4
|
+
data.tar.gz: 89ec958bb6e7a8fcdc7d396f3acbf50c42c6cdf6ca1162368796450412c659a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e73e39acf5542e32647ad6a37a3dde030303a9b1a53c771c611a31fb825ddfdda5cc9c3ceb80e4f8ed51649c2d061c9dfaa0cba704609499ef8da29823f045b
|
|
7
|
+
data.tar.gz: 750aa6c94fffa2f464cccc6e6cd00fc1f4e26dd81c86351877bac886188a9f69566e95764df814ba918f6922b02cf29289699e29175d3ea8f35ff0e1cfc342d9
|
data/README.adoc
CHANGED
|
@@ -18,7 +18,7 @@ Add this line to your application's Gemfile:
|
|
|
18
18
|
|
|
19
19
|
[source,ruby]
|
|
20
20
|
----
|
|
21
|
-
gem '
|
|
21
|
+
gem 'relaton-ogc'
|
|
22
22
|
----
|
|
23
23
|
|
|
24
24
|
And then execute:
|
|
@@ -27,7 +27,7 @@ And then execute:
|
|
|
27
27
|
|
|
28
28
|
Or install it yourself as:
|
|
29
29
|
|
|
30
|
-
$ gem install
|
|
30
|
+
$ gem install relaton-ogc
|
|
31
31
|
|
|
32
32
|
== Usage
|
|
33
33
|
|
|
@@ -35,8 +35,11 @@ Or install it yourself as:
|
|
|
35
35
|
|
|
36
36
|
[source,ruby]
|
|
37
37
|
----
|
|
38
|
+
require 'relaton_ogc'
|
|
39
|
+
=> true
|
|
40
|
+
|
|
38
41
|
hits = RelatonOgc::OgcBibliography.search("OGC 19-025r1")
|
|
39
|
-
=>
|
|
42
|
+
=> <RelatonOgc::HitCollection:0x007fcc8e085ba8 @ref=OGC 19-025r1 @fetched=false>
|
|
40
43
|
|
|
41
44
|
tem = hits[0].fetch
|
|
42
45
|
=> #<RelatonOgc::OgcBibliographicItem:0x007fcab3cb4758
|
|
@@ -72,7 +75,10 @@ item.to_xml bibdata: true
|
|
|
72
75
|
</date>
|
|
73
76
|
...
|
|
74
77
|
<ext>
|
|
75
|
-
<doctype>
|
|
78
|
+
<doctype>engineering-report</doctype>
|
|
79
|
+
<editorialgroup>
|
|
80
|
+
<committee>technical</committee>
|
|
81
|
+
</editorialgroup>
|
|
76
82
|
</ext>
|
|
77
83
|
</bibdata>"
|
|
78
84
|
----
|
|
@@ -81,7 +87,8 @@ item.to_xml bibdata: true
|
|
|
81
87
|
[source,ruby]
|
|
82
88
|
----
|
|
83
89
|
RelatonOgc::OgcBibliography.get "OGC 19-025r1", "2019", {}
|
|
84
|
-
|
|
90
|
+
[relaton-ogc] ("OGC 19-025r1") fetching...
|
|
91
|
+
[relaton-ogc] ("OGC 19-025r1") found 19-025r1
|
|
85
92
|
=> #<RelatonOgc::OgcBibliographicItem:0x007fc322e9aba0
|
|
86
93
|
...
|
|
87
94
|
----
|
data/grammars/isodoc.rng
CHANGED
|
@@ -42,8 +42,11 @@
|
|
|
42
42
|
</define>
|
|
43
43
|
<define name="xref">
|
|
44
44
|
<element name="xref">
|
|
45
|
+
<!-- attribute target { xsd:IDREF }, -->
|
|
45
46
|
<attribute name="target">
|
|
46
|
-
<data type="
|
|
47
|
+
<data type="string">
|
|
48
|
+
<param name="pattern">\i\c*|\c+#\c+</param>
|
|
49
|
+
</data>
|
|
47
50
|
</attribute>
|
|
48
51
|
<optional>
|
|
49
52
|
<attribute name="type">
|
|
@@ -61,6 +64,11 @@
|
|
|
61
64
|
</choice>
|
|
62
65
|
</attribute>
|
|
63
66
|
</optional>
|
|
67
|
+
<optional>
|
|
68
|
+
<attribute name="droploc">
|
|
69
|
+
<data type="boolean"/>
|
|
70
|
+
</attribute>
|
|
71
|
+
</optional>
|
|
64
72
|
<text/>
|
|
65
73
|
</element>
|
|
66
74
|
</define>
|
|
@@ -578,6 +586,8 @@
|
|
|
578
586
|
<ref name="ol"/>
|
|
579
587
|
<ref name="dl"/>
|
|
580
588
|
<ref name="formula"/>
|
|
589
|
+
<ref name="quote"/>
|
|
590
|
+
<ref name="sourcecode"/>
|
|
581
591
|
</choice>
|
|
582
592
|
</oneOrMore>
|
|
583
593
|
</element>
|
|
@@ -661,6 +671,16 @@
|
|
|
661
671
|
</choice>
|
|
662
672
|
</attribute>
|
|
663
673
|
</optional>
|
|
674
|
+
<optional>
|
|
675
|
+
<attribute name="valign">
|
|
676
|
+
<choice>
|
|
677
|
+
<value>top</value>
|
|
678
|
+
<value>middle</value>
|
|
679
|
+
<value>bottom</value>
|
|
680
|
+
<value>baseline</value>
|
|
681
|
+
</choice>
|
|
682
|
+
</attribute>
|
|
683
|
+
</optional>
|
|
664
684
|
<choice>
|
|
665
685
|
<zeroOrMore>
|
|
666
686
|
<choice>
|
|
@@ -697,6 +717,16 @@
|
|
|
697
717
|
</choice>
|
|
698
718
|
</attribute>
|
|
699
719
|
</optional>
|
|
720
|
+
<optional>
|
|
721
|
+
<attribute name="valign">
|
|
722
|
+
<choice>
|
|
723
|
+
<value>top</value>
|
|
724
|
+
<value>middle</value>
|
|
725
|
+
<value>bottom</value>
|
|
726
|
+
<value>baseline</value>
|
|
727
|
+
</choice>
|
|
728
|
+
</attribute>
|
|
729
|
+
</optional>
|
|
700
730
|
<choice>
|
|
701
731
|
<zeroOrMore>
|
|
702
732
|
<choice>
|
|
@@ -855,7 +885,7 @@
|
|
|
855
885
|
<oneOrMore>
|
|
856
886
|
<choice>
|
|
857
887
|
<ref name="content"/>
|
|
858
|
-
<ref name="
|
|
888
|
+
<ref name="abstract"/>
|
|
859
889
|
<ref name="foreword"/>
|
|
860
890
|
<ref name="introduction"/>
|
|
861
891
|
<ref name="acknowledgements"/>
|
|
@@ -922,6 +952,9 @@
|
|
|
922
952
|
<optional>
|
|
923
953
|
<attribute name="script"/>
|
|
924
954
|
</optional>
|
|
955
|
+
<optional>
|
|
956
|
+
<attribute name="type"/>
|
|
957
|
+
</optional>
|
|
925
958
|
<optional>
|
|
926
959
|
<attribute name="obligation">
|
|
927
960
|
<choice>
|
|
@@ -961,9 +994,6 @@
|
|
|
961
994
|
</define>
|
|
962
995
|
<define name="content-subsection">
|
|
963
996
|
<element name="clause">
|
|
964
|
-
<optional>
|
|
965
|
-
<attribute name="type"/>
|
|
966
|
-
</optional>
|
|
967
997
|
<ref name="Content-Section"/>
|
|
968
998
|
</element>
|
|
969
999
|
</define>
|
|
@@ -992,6 +1022,9 @@
|
|
|
992
1022
|
</choice>
|
|
993
1023
|
</attribute>
|
|
994
1024
|
</optional>
|
|
1025
|
+
<optional>
|
|
1026
|
+
<attribute name="type"/>
|
|
1027
|
+
</optional>
|
|
995
1028
|
<optional>
|
|
996
1029
|
<ref name="section-title"/>
|
|
997
1030
|
</optional>
|
|
@@ -1011,9 +1044,6 @@
|
|
|
1011
1044
|
</define>
|
|
1012
1045
|
<define name="clause">
|
|
1013
1046
|
<element name="clause">
|
|
1014
|
-
<optional>
|
|
1015
|
-
<attribute name="type"/>
|
|
1016
|
-
</optional>
|
|
1017
1047
|
<ref name="Clause-Section"/>
|
|
1018
1048
|
</element>
|
|
1019
1049
|
</define>
|
|
@@ -1042,18 +1072,24 @@
|
|
|
1042
1072
|
</choice>
|
|
1043
1073
|
</attribute>
|
|
1044
1074
|
</optional>
|
|
1075
|
+
<optional>
|
|
1076
|
+
<attribute name="type"/>
|
|
1077
|
+
</optional>
|
|
1045
1078
|
<optional>
|
|
1046
1079
|
<ref name="section-title"/>
|
|
1047
1080
|
</optional>
|
|
1048
1081
|
<group>
|
|
1049
|
-
<
|
|
1050
|
-
<
|
|
1051
|
-
<
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
<
|
|
1055
|
-
|
|
1056
|
-
|
|
1082
|
+
<choice>
|
|
1083
|
+
<group>
|
|
1084
|
+
<zeroOrMore>
|
|
1085
|
+
<ref name="BasicBlock"/>
|
|
1086
|
+
</zeroOrMore>
|
|
1087
|
+
<zeroOrMore>
|
|
1088
|
+
<ref name="note"/>
|
|
1089
|
+
</zeroOrMore>
|
|
1090
|
+
</group>
|
|
1091
|
+
<ref name="amend"/>
|
|
1092
|
+
</choice>
|
|
1057
1093
|
<zeroOrMore>
|
|
1058
1094
|
<choice>
|
|
1059
1095
|
<ref name="clause-subsection"/>
|
|
@@ -1180,6 +1216,9 @@
|
|
|
1180
1216
|
<optional>
|
|
1181
1217
|
<attribute name="script"/>
|
|
1182
1218
|
</optional>
|
|
1219
|
+
<optional>
|
|
1220
|
+
<attribute name="type"/>
|
|
1221
|
+
</optional>
|
|
1183
1222
|
<optional>
|
|
1184
1223
|
<attribute name="obligation">
|
|
1185
1224
|
<choice>
|
|
@@ -1447,11 +1486,6 @@
|
|
|
1447
1486
|
</optional>
|
|
1448
1487
|
</element>
|
|
1449
1488
|
</define>
|
|
1450
|
-
<define name="preface_abstract">
|
|
1451
|
-
<element name="abstract">
|
|
1452
|
-
<ref name="Basic-Section"/>
|
|
1453
|
-
</element>
|
|
1454
|
-
</define>
|
|
1455
1489
|
<define name="term-clause">
|
|
1456
1490
|
<element name="clause">
|
|
1457
1491
|
<optional>
|
|
@@ -1501,4 +1535,79 @@
|
|
|
1501
1535
|
<ref name="CitationType"/>
|
|
1502
1536
|
</element>
|
|
1503
1537
|
</define>
|
|
1538
|
+
<define name="amend">
|
|
1539
|
+
<element name="amend">
|
|
1540
|
+
<optional>
|
|
1541
|
+
<attribute name="id">
|
|
1542
|
+
<data type="ID"/>
|
|
1543
|
+
</attribute>
|
|
1544
|
+
</optional>
|
|
1545
|
+
<attribute name="change">
|
|
1546
|
+
<choice>
|
|
1547
|
+
<value>add</value>
|
|
1548
|
+
<value>modify</value>
|
|
1549
|
+
<value>delete</value>
|
|
1550
|
+
</choice>
|
|
1551
|
+
</attribute>
|
|
1552
|
+
<optional>
|
|
1553
|
+
<attribute name="path"/>
|
|
1554
|
+
</optional>
|
|
1555
|
+
<optional>
|
|
1556
|
+
<attribute name="path_end"/>
|
|
1557
|
+
</optional>
|
|
1558
|
+
<optional>
|
|
1559
|
+
<attribute name="title"/>
|
|
1560
|
+
</optional>
|
|
1561
|
+
<optional>
|
|
1562
|
+
<element name="location">
|
|
1563
|
+
<zeroOrMore>
|
|
1564
|
+
<ref name="locality"/>
|
|
1565
|
+
</zeroOrMore>
|
|
1566
|
+
</element>
|
|
1567
|
+
</optional>
|
|
1568
|
+
<zeroOrMore>
|
|
1569
|
+
<ref name="autonumber"/>
|
|
1570
|
+
</zeroOrMore>
|
|
1571
|
+
<optional>
|
|
1572
|
+
<element name="description">
|
|
1573
|
+
<zeroOrMore>
|
|
1574
|
+
<ref name="BasicBlock"/>
|
|
1575
|
+
</zeroOrMore>
|
|
1576
|
+
</element>
|
|
1577
|
+
</optional>
|
|
1578
|
+
<optional>
|
|
1579
|
+
<element name="newcontent">
|
|
1580
|
+
<zeroOrMore>
|
|
1581
|
+
<ref name="BasicBlock"/>
|
|
1582
|
+
</zeroOrMore>
|
|
1583
|
+
</element>
|
|
1584
|
+
</optional>
|
|
1585
|
+
<optional>
|
|
1586
|
+
<element name="description">
|
|
1587
|
+
<zeroOrMore>
|
|
1588
|
+
<ref name="BasicBlock"/>
|
|
1589
|
+
</zeroOrMore>
|
|
1590
|
+
</element>
|
|
1591
|
+
</optional>
|
|
1592
|
+
</element>
|
|
1593
|
+
</define>
|
|
1594
|
+
<define name="autonumber">
|
|
1595
|
+
<element name="autonumber">
|
|
1596
|
+
<attribute name="type">
|
|
1597
|
+
<choice>
|
|
1598
|
+
<value>requirement</value>
|
|
1599
|
+
<value>recommendation</value>
|
|
1600
|
+
<value>permission</value>
|
|
1601
|
+
<value>table</value>
|
|
1602
|
+
<value>figure</value>
|
|
1603
|
+
<value>admonition</value>
|
|
1604
|
+
<value>formula</value>
|
|
1605
|
+
<value>sourcecode</value>
|
|
1606
|
+
<value>example</value>
|
|
1607
|
+
<value>note</value>
|
|
1608
|
+
</choice>
|
|
1609
|
+
</attribute>
|
|
1610
|
+
<text/>
|
|
1611
|
+
</element>
|
|
1612
|
+
</define>
|
|
1504
1613
|
</grammar>
|
data/grammars/ogc.rng
CHANGED
|
@@ -3,10 +3,10 @@ module RelatonOgc
|
|
|
3
3
|
class << self
|
|
4
4
|
# @param text [String]
|
|
5
5
|
# @return [RelatonOgc::HitCollection]
|
|
6
|
-
def search(text, year = nil,
|
|
6
|
+
def search(text, year = nil, _opts = {})
|
|
7
7
|
HitCollection.new text, year
|
|
8
8
|
rescue Faraday::ConnectionFailed
|
|
9
|
-
raise RelatonBib::RequestError,
|
|
9
|
+
raise RelatonBib::RequestError, HitCollection::ENDPOINT
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
# @param code [String] the OGC standard Code to look up (e..g "8200")
|
data/lib/relaton_ogc/version.rb
CHANGED
data/relaton_ogc.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-ogc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: debase
|
|
@@ -170,14 +170,14 @@ dependencies:
|
|
|
170
170
|
requirements:
|
|
171
171
|
- - "~>"
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: 1.
|
|
173
|
+
version: 1.4.0
|
|
174
174
|
type: :runtime
|
|
175
175
|
prerelease: false
|
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
177
|
requirements:
|
|
178
178
|
- - "~>"
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: 1.
|
|
180
|
+
version: 1.4.0
|
|
181
181
|
description: 'RelatonOgc: retrieve OGC Standards for bibliographic use using the OgcBibliographicItem
|
|
182
182
|
model'
|
|
183
183
|
email:
|
|
@@ -219,7 +219,7 @@ homepage: https://github.com/relaton/relaton-ogc
|
|
|
219
219
|
licenses:
|
|
220
220
|
- BSD-2-Clause
|
|
221
221
|
metadata: {}
|
|
222
|
-
post_install_message:
|
|
222
|
+
post_install_message:
|
|
223
223
|
rdoc_options: []
|
|
224
224
|
require_paths:
|
|
225
225
|
- lib
|
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
235
|
version: '0'
|
|
236
236
|
requirements: []
|
|
237
237
|
rubygems_version: 3.0.6
|
|
238
|
-
signing_key:
|
|
238
|
+
signing_key:
|
|
239
239
|
specification_version: 4
|
|
240
240
|
summary: 'RelatonOgc: retrieve OGC Standards for bibliographic use using the OgcBibliographicItem
|
|
241
241
|
model'
|