orcid_client 0.8 → 0.9

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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +39 -0
  3. data/.github/workflows/changelog.yml +36 -0
  4. data/.github/workflows/release.yml +49 -0
  5. data/Gemfile.lock +124 -104
  6. data/lib/orcid_client/api.rb +1 -1
  7. data/lib/orcid_client/external_identifier.rb +1 -1
  8. data/lib/orcid_client/version.rb +1 -1
  9. data/lib/orcid_client/work.rb +1 -1
  10. data/orcid_client.gemspec +1 -1
  11. data/resources/README.md +48 -43
  12. data/resources/common_3.0/common-3.0.xsd +998 -0
  13. data/resources/common_3.0/samples/common-3.0.xml +8 -0
  14. data/resources/common_3.0/samples/common-3.0_external-identifier.xml +11 -0
  15. data/resources/notification_3.0/README.md +130 -0
  16. data/resources/notification_3.0/images/notification-intro.jpg +0 -0
  17. data/resources/notification_3.0/images/notification-subject.jpg +0 -0
  18. data/resources/notification_3.0/notification-custom-3.0.xsd +38 -0
  19. data/resources/notification_3.0/notification-permission-3.0.xsd +134 -0
  20. data/resources/notification_3.0/samples/notification-custom-3.0.xml +27 -0
  21. data/resources/notification_3.0/samples/notification-permission-3.0.xml +58 -0
  22. data/resources/record_3.0/README.md +408 -0
  23. data/resources/record_3.0/activities-3.0.xsd +456 -0
  24. data/resources/record_3.0/address-3.0.xsd +73 -0
  25. data/resources/record_3.0/bulk-3.0.xsd +57 -0
  26. data/resources/record_3.0/distinction-3.0.xsd +51 -0
  27. data/resources/record_3.0/education-3.0.xsd +51 -0
  28. data/resources/record_3.0/email-3.0.xsd +76 -0
  29. data/resources/record_3.0/employment-3.0.xsd +51 -0
  30. data/resources/record_3.0/error-3.0.xsd +84 -0
  31. data/resources/record_3.0/expanded-search-3.0.xsd +114 -0
  32. data/resources/record_3.0/funding-3.0.xsd +204 -0
  33. data/resources/record_3.0/history-3.0.xsd +185 -0
  34. data/resources/record_3.0/invited-position-3.0.xsd +50 -0
  35. data/resources/record_3.0/keyword-3.0.xsd +72 -0
  36. data/resources/record_3.0/membership-3.0.xsd +51 -0
  37. data/resources/record_3.0/other-name-3.0.xsd +78 -0
  38. data/resources/record_3.0/peer-review-3.0.xsd +263 -0
  39. data/resources/record_3.0/person-3.0.xsd +85 -0
  40. data/resources/record_3.0/person-external-identifier-3.0.xsd +63 -0
  41. data/resources/record_3.0/personal-details-3.0.xsd +162 -0
  42. data/resources/record_3.0/preferences-3.0.xsd +50 -0
  43. data/resources/record_3.0/qualification-3.0.xsd +50 -0
  44. data/resources/record_3.0/record-3.0.xsd +91 -0
  45. data/resources/record_3.0/research-resource-3.0.xsd +144 -0
  46. data/resources/record_3.0/researcher-url-3.0.xsd +86 -0
  47. data/resources/record_3.0/samples/read_samples/activities-3.0.xml +742 -0
  48. data/resources/record_3.0/samples/read_samples/address-3.0.xml +16 -0
  49. data/resources/record_3.0/samples/read_samples/addresses-3.0.xml +32 -0
  50. data/resources/record_3.0/samples/read_samples/biography-3.0.xml +10 -0
  51. data/resources/record_3.0/samples/read_samples/bulk-work-err.xml +45 -0
  52. data/resources/record_3.0/samples/read_samples/credit-name-3.0.xml +5 -0
  53. data/resources/record_3.0/samples/read_samples/distinction-3.0.xml +55 -0
  54. data/resources/record_3.0/samples/read_samples/distinctions-3.0.xml +106 -0
  55. data/resources/record_3.0/samples/read_samples/education-3.0.xml +55 -0
  56. data/resources/record_3.0/samples/read_samples/education-full-3.0.xml +55 -0
  57. data/resources/record_3.0/samples/read_samples/educations-3.0.xml +118 -0
  58. data/resources/record_3.0/samples/read_samples/email-3.0.xml +16 -0
  59. data/resources/record_3.0/samples/read_samples/emails-3.0.xml +31 -0
  60. data/resources/record_3.0/samples/read_samples/employment-3.0.xml +55 -0
  61. data/resources/record_3.0/samples/read_samples/employment-full-3.0.xml +55 -0
  62. data/resources/record_3.0/samples/read_samples/employments-3.0.xml +108 -0
  63. data/resources/record_3.0/samples/read_samples/error-3.0.xml +8 -0
  64. data/resources/record_3.0/samples/read_samples/external-identifier-3.0.xml +21 -0
  65. data/resources/record_3.0/samples/read_samples/external-identifiers-3.0.xml +38 -0
  66. data/resources/record_3.0/samples/read_samples/full-record-3.0.json +2332 -0
  67. data/resources/record_3.0/samples/read_samples/funding-3.0.xml +75 -0
  68. data/resources/record_3.0/samples/read_samples/funding-full-3.0.xml +75 -0
  69. data/resources/record_3.0/samples/read_samples/fundings-3.0.xml +139 -0
  70. data/resources/record_3.0/samples/read_samples/history-3.0.xml +22 -0
  71. data/resources/record_3.0/samples/read_samples/invited-position-3.0.xml +55 -0
  72. data/resources/record_3.0/samples/read_samples/invited-positions-3.0.xml +106 -0
  73. data/resources/record_3.0/samples/read_samples/keyword-3.0.xml +18 -0
  74. data/resources/record_3.0/samples/read_samples/keywords-3.0.xml +34 -0
  75. data/resources/record_3.0/samples/read_samples/membership-3.0.xml +55 -0
  76. data/resources/record_3.0/samples/read_samples/memberships-3.0.xml +106 -0
  77. data/resources/record_3.0/samples/read_samples/name-3.0.xml +12 -0
  78. data/resources/record_3.0/samples/read_samples/other-name-3.0.xml +16 -0
  79. data/resources/record_3.0/samples/read_samples/other-names-3.0.xml +31 -0
  80. data/resources/record_3.0/samples/read_samples/peer-review-3.0.xml +59 -0
  81. data/resources/record_3.0/samples/read_samples/peer-review-full-3.0.xml +59 -0
  82. data/resources/record_3.0/samples/read_samples/peer-reviews-3.0.xml +76 -0
  83. data/resources/record_3.0/samples/read_samples/person-3.0.xml +122 -0
  84. data/resources/record_3.0/samples/read_samples/personal-details-3.0.xml +47 -0
  85. data/resources/record_3.0/samples/read_samples/preferences-3.0.xml +4 -0
  86. data/resources/record_3.0/samples/read_samples/qualification-3.0.xml +55 -0
  87. data/resources/record_3.0/samples/read_samples/qualifications-3.0.xml +106 -0
  88. data/resources/record_3.0/samples/read_samples/record-3.0.xml +770 -0
  89. data/resources/record_3.0/samples/read_samples/research-resource-3.0.xml +138 -0
  90. data/resources/record_3.0/samples/read_samples/research-resources-3.0.xml +143 -0
  91. data/resources/record_3.0/samples/read_samples/researcher-url-3.0.xml +19 -0
  92. data/resources/record_3.0/samples/read_samples/researcher-urls-3.0.xml +21 -0
  93. data/resources/record_3.0/samples/read_samples/search-3.0.xml +14 -0
  94. data/resources/record_3.0/samples/read_samples/service-3.0.xml +55 -0
  95. data/resources/record_3.0/samples/read_samples/services-3.0.xml +106 -0
  96. data/resources/record_3.0/samples/read_samples/work-3.0.xml +65 -0
  97. data/resources/record_3.0/samples/read_samples/work-full-3.0.xml +65 -0
  98. data/resources/record_3.0/samples/read_samples/works-3.0.xml +148 -0
  99. data/resources/record_3.0/samples/write_samples/address-3.0.xml +6 -0
  100. data/resources/record_3.0/samples/write_samples/bulk-work-3.0.json +53 -0
  101. data/resources/record_3.0/samples/write_samples/bulk-work-3.0.xml +47 -0
  102. data/resources/record_3.0/samples/write_samples/distinction-3.0.xml +46 -0
  103. data/resources/record_3.0/samples/write_samples/education-3.0.xml +45 -0
  104. data/resources/record_3.0/samples/write_samples/employment-3.0.xml +45 -0
  105. data/resources/record_3.0/samples/write_samples/external-identifier-3.0.xml +11 -0
  106. data/resources/record_3.0/samples/write_samples/funding-3.0.xml +44 -0
  107. data/resources/record_3.0/samples/write_samples/invited-position-3.0.xml +45 -0
  108. data/resources/record_3.0/samples/write_samples/keyword-3.0.xml +7 -0
  109. data/resources/record_3.0/samples/write_samples/membership-3.0.xml +45 -0
  110. data/resources/record_3.0/samples/write_samples/other-name-3.0.xml +6 -0
  111. data/resources/record_3.0/samples/write_samples/peer-review-full-3.0.xml +48 -0
  112. data/resources/record_3.0/samples/write_samples/peer-review-full-award-subject-type-3.0.xml +48 -0
  113. data/resources/record_3.0/samples/write_samples/peer-review-simple-3.0.xml +32 -0
  114. data/resources/record_3.0/samples/write_samples/qualification-3.0.xml +45 -0
  115. data/resources/record_3.0/samples/write_samples/research-resource-3.0.xml +110 -0
  116. data/resources/record_3.0/samples/write_samples/researcher-url-3.0-no-name.xml +6 -0
  117. data/resources/record_3.0/samples/write_samples/researcher-url-3.0.xml +7 -0
  118. data/resources/record_3.0/samples/write_samples/service-3.0.xml +45 -0
  119. data/resources/record_3.0/samples/write_samples/work-full-3.0.xml +60 -0
  120. data/resources/record_3.0/samples/write_samples/work-simple-3.0.xml +18 -0
  121. data/resources/record_3.0/search-3.0.xsd +62 -0
  122. data/resources/record_3.0/service-3.0.xsd +51 -0
  123. data/resources/record_3.0/work-3.0.xsd +269 -0
  124. data/spec/api_spec.rb +2 -2
  125. data/spec/external_identifier_spec.rb +2 -2
  126. data/spec/fixtures/external_identifier.xml +1 -1
  127. data/spec/fixtures/vcr_cassettes/OrcidClient/works/get/should_get_works.yml +19 -10
  128. data/spec/fixtures/vcr_cassettes/OrcidClient/works/post/should_create_work.yml +52 -38
  129. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/data.yml +35 -28
  130. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_data.yml +34 -27
  131. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_item_type_work.yml +29 -37
  132. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/literal.yml +45 -32
  133. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/multiple_titles.yml +35 -28
  134. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/valid.yml +35 -28
  135. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/with_ORCID_IDs.yml +28 -22
  136. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/data.yml +34 -27
  137. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/publication_date.yml +35 -28
  138. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_ORCID_IDs_for_contributors.yml +29 -23
  139. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_data.yml +34 -27
  140. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_from_DataCite_test_system.yml +28 -22
  141. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_type_data-set.yml +29 -37
  142. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/user_example/fail/valid.yml +28 -22
  143. data/spec/fixtures/work.xml +1 -1
  144. data/spec/notification_spec.rb +2 -2
  145. data/spec/work_spec.rb +2 -2
  146. metadata +126 -6
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/person" xmlns:person="http://www.orcid.org/ns/person"
5
+ xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:common="http://www.orcid.org/ns/common"
6
+ xmlns:researcher-url="http://www.orcid.org/ns/researcher-url"
7
+ xmlns:email="http://www.orcid.org/ns/email" xmlns:personal-details="http://www.orcid.org/ns/personal-details"
8
+ xmlns:address="http://www.orcid.org/ns/address" xmlns:keyword="http://www.orcid.org/ns/keyword"
9
+ xmlns:external-identifier="http://www.orcid.org/ns/external-identifier">
10
+ <xs:annotation>
11
+ <xs:documentation>
12
+ =============================================================================
13
+
14
+ ORCID (R) Open Source
15
+ http://orcid.org
16
+
17
+ Copyright (c) 2012-2018 ORCID,
18
+ Inc.
19
+ Licensed under an MIT-Style License (MIT)
20
+ http://orcid.org/open-source-license
21
+
22
+ This copyright and license
23
+ information (including a link to the full
24
+ license)
25
+ shall be included in
26
+ its entirety in all copies or substantial portion of
27
+ the software.
28
+
29
+ =============================================================================
30
+ The schema describes the message format used for ORCID API requests
31
+ and responses.
32
+ </xs:documentation>
33
+ <xs:appinfo>
34
+ <sch:title>Schematron validation</sch:title>
35
+ <sch:ns prefix="person" uri="http://www.orcid.org/ns/person" />
36
+ </xs:appinfo>
37
+ </xs:annotation>
38
+
39
+ <xs:import namespace="http://www.orcid.org/ns/common"
40
+ schemaLocation="../common_3.0/common-3.0.xsd" />
41
+ <xs:import namespace="http://www.orcid.org/ns/personal-details"
42
+ schemaLocation="../record_3.0/personal-details-3.0.xsd" />
43
+ <xs:import namespace="http://www.orcid.org/ns/other-name"
44
+ schemaLocation="../record_3.0/other-name-3.0.xsd" />
45
+ <xs:import namespace="http://www.orcid.org/ns/researcher-url"
46
+ schemaLocation="../record_3.0/researcher-url-3.0.xsd" />
47
+ <xs:import namespace="http://www.orcid.org/ns/email"
48
+ schemaLocation="../record_3.0/email-3.0.xsd" />
49
+ <xs:import namespace="http://www.orcid.org/ns/address"
50
+ schemaLocation="../record_3.0/address-3.0.xsd" />
51
+ <xs:import namespace="http://www.orcid.org/ns/keyword"
52
+ schemaLocation="../record_3.0/keyword-3.0.xsd" />
53
+ <xs:import namespace="http://www.orcid.org/ns/external-identifier"
54
+ schemaLocation="../record_3.0/person-external-identifier-3.0.xsd" />
55
+
56
+ <xs:element name="person">
57
+ <xs:annotation>
58
+ <xs:documentation>The biographical details of the researcher or
59
+ contributor.
60
+ </xs:documentation>
61
+ </xs:annotation>
62
+ <xs:complexType>
63
+ <xs:sequence>
64
+ <xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
65
+ <xs:element name="name" type="personal-details:name"
66
+ minOccurs="0" maxOccurs="1" />
67
+ <xs:element ref="other-name:other-names" minOccurs="0"
68
+ maxOccurs="1" />
69
+ <xs:element name="biography" type="personal-details:biography"
70
+ minOccurs="0" maxOccurs="1" />
71
+ <xs:element ref="researcher-url:researcher-urls"
72
+ minOccurs="0" maxOccurs="1" />
73
+ <xs:element ref="email:emails" minOccurs="1" maxOccurs="1" />
74
+ <xs:element ref="address:addresses" minOccurs="0"
75
+ maxOccurs="1" />
76
+ <xs:element ref="keyword:keywords" minOccurs="0"
77
+ maxOccurs="1" />
78
+ <xs:element ref="external-identifier:external-identifiers"
79
+ minOccurs="0" maxOccurs="1" />
80
+ </xs:sequence>
81
+ <xs:attribute name="path" type="common:element-path" use="optional" />
82
+ </xs:complexType>
83
+ </xs:element>
84
+
85
+ </xs:schema>
@@ -0,0 +1,63 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/external-identifier"
5
+ xmlns:external-identifier="http://www.orcid.org/ns/external-identifier"
6
+ xmlns:common="http://www.orcid.org/ns/common">
7
+ <xs:annotation>
8
+ <xs:documentation>
9
+ =============================================================================
10
+
11
+ ORCID (R) Open Source
12
+ http://orcid.org
13
+
14
+ Copyright (c) 2012-2018 ORCID,
15
+ Inc.
16
+ Licensed under an MIT-Style License (MIT)
17
+ http://orcid.org/open-source-license
18
+
19
+ This copyright and license
20
+ information (including a link to the full
21
+ license)
22
+ shall be included in
23
+ its entirety in all copies or substantial portion of
24
+ the software.
25
+
26
+ =============================================================================
27
+ The schema describes the message format used for ORCID API requests
28
+ and responses.
29
+ </xs:documentation>
30
+ <xs:appinfo>
31
+ <sch:title>Schematron validation</sch:title>
32
+ <sch:ns prefix="external-identifier" uri="http://www.orcid.org/ns/external-identifier" />
33
+ </xs:appinfo>
34
+ </xs:annotation>
35
+ <xs:import namespace="http://www.orcid.org/ns/common"
36
+ schemaLocation="../common_3.0/common-3.0.xsd" />
37
+
38
+ <xs:element name="external-identifiers">
39
+ <xs:annotation>
40
+ <xs:documentation>Container for identifiers that apply to the researcher themselves.</xs:documentation>
41
+ </xs:annotation>
42
+ <xs:complexType>
43
+ <xs:sequence>
44
+ <xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
45
+ <xs:element name="external-identifier"
46
+ type="common:external-id" minOccurs="0"
47
+ maxOccurs="unbounded" />
48
+ </xs:sequence>
49
+ <xs:attribute name="path" type="common:element-path" use="optional" />
50
+ </xs:complexType>
51
+ </xs:element>
52
+
53
+ <xs:element name="external-identifier">
54
+ <xs:annotation>
55
+ <xs:documentation>External identifier container</xs:documentation>
56
+ </xs:annotation>
57
+ <xs:complexType>
58
+ <xs:complexContent>
59
+ <xs:extension base="common:external-id" />
60
+ </xs:complexContent>
61
+ </xs:complexType>
62
+ </xs:element>
63
+ </xs:schema>
@@ -0,0 +1,162 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/personal-details"
5
+ xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:common="http://www.orcid.org/ns/common"
6
+ xmlns:personal-details="http://www.orcid.org/ns/personal-details">
7
+ <xs:annotation>
8
+ <xs:documentation>
9
+ =============================================================================
10
+
11
+ ORCID (R) Open Source
12
+ http://orcid.org
13
+
14
+ Copyright (c) 2012-2018 ORCID,
15
+ Inc.
16
+ Licensed under an MIT-Style License (MIT)
17
+ http://orcid.org/open-source-license
18
+
19
+ This copyright and license
20
+ information (including a link to the full
21
+ license)
22
+ shall be included in
23
+ its entirety in all copies or substantial portion of
24
+ the software.
25
+
26
+ =============================================================================
27
+ The schema describes the message format used for ORCID API requests
28
+ and responses.
29
+ </xs:documentation>
30
+ <xs:appinfo>
31
+ <sch:title>Schematron validation</sch:title>
32
+ <sch:ns prefix="personal-details" uri="http://www.orcid.org/ns/personal-details" />
33
+ </xs:appinfo>
34
+ </xs:annotation>
35
+
36
+ <xs:import namespace="http://www.orcid.org/ns/common"
37
+ schemaLocation="../common_3.0/common-3.0.xsd" />
38
+ <xs:import namespace="http://www.orcid.org/ns/other-name"
39
+ schemaLocation="../record_3.0/other-name-3.0.xsd" />
40
+
41
+ <xs:element name="personal-details">
42
+ <xs:annotation>
43
+ <xs:documentation>Container for the biography and names of the researcher. These fields can only be edited by the researcher.
44
+ </xs:documentation>
45
+ </xs:annotation>
46
+ <xs:complexType>
47
+ <xs:sequence>
48
+ <xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
49
+ <xs:element name="name" type="personal-details:name"
50
+ minOccurs="0" maxOccurs="1" />
51
+ <xs:element ref="other-name:other-names" minOccurs="0"
52
+ maxOccurs="1" />
53
+ <xs:element name="biography" type="personal-details:biography"
54
+ minOccurs="0" maxOccurs="1" />
55
+ </xs:sequence>
56
+ <xs:attribute name="path" type="common:element-path" use="optional" />
57
+ </xs:complexType>
58
+ </xs:element>
59
+
60
+ <xs:element name="name">
61
+ <xs:annotation>
62
+ <xs:documentation>Container for the researcher's first and last name.
63
+ </xs:documentation>
64
+ </xs:annotation>
65
+ <xs:complexType>
66
+ <xs:complexContent>
67
+ <xs:extension base="personal-details:name" />
68
+ </xs:complexContent>
69
+ </xs:complexType>
70
+ </xs:element>
71
+
72
+ <xs:element name="credit-name">
73
+ <xs:annotation>
74
+ <xs:documentation>Container for the researcher's credit name.
75
+ </xs:documentation>
76
+ </xs:annotation>
77
+ <xs:complexType>
78
+ <xs:simpleContent>
79
+ <xs:extension base="personal-details:credit-name" />
80
+ </xs:simpleContent>
81
+ </xs:complexType>
82
+ </xs:element>
83
+
84
+ <xs:element name="biography">
85
+ <xs:annotation>
86
+ <xs:documentation>Container for the researcher's biography.
87
+ </xs:documentation>
88
+ </xs:annotation>
89
+ <xs:complexType>
90
+ <xs:complexContent>
91
+ <xs:extension base="personal-details:biography" />
92
+ </xs:complexContent>
93
+ </xs:complexType>
94
+ </xs:element>
95
+
96
+ <xs:complexType name="name">
97
+ <xs:annotation>
98
+ <xs:documentation>Container for the researcher's first and last name.
99
+ </xs:documentation>
100
+ </xs:annotation>
101
+ <xs:sequence>
102
+ <xs:element ref="common:created-date" minOccurs="0" maxOccurs="1" />
103
+ <xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
104
+ <xs:element name="given-names" minOccurs="0" maxOccurs="1">
105
+ <xs:annotation>
106
+ <xs:documentation>The given name(s) of the researcher or contributor.
107
+ </xs:documentation>
108
+ </xs:annotation>
109
+ <xs:complexType>
110
+ <xs:simpleContent>
111
+ <xs:extension base="common:string-150" />
112
+ </xs:simpleContent>
113
+ </xs:complexType>
114
+ </xs:element>
115
+ <xs:element name="family-name" minOccurs="0" maxOccurs="1">
116
+ <xs:annotation>
117
+ <xs:documentation>The family (last) name of the researcher. This element is optional, because some cultures only use given names.
118
+ </xs:documentation>
119
+ </xs:annotation>
120
+ <xs:complexType>
121
+ <xs:simpleContent>
122
+ <xs:extension base="common:string-150" />
123
+ </xs:simpleContent>
124
+ </xs:complexType>
125
+ </xs:element>
126
+ <xs:element name="credit-name" minOccurs="0" maxOccurs="1">
127
+ <xs:annotation>
128
+ <xs:documentation>The full name of the researcher as they prefer it to appear.
129
+ </xs:documentation>
130
+ </xs:annotation>
131
+ <xs:complexType>
132
+ <xs:simpleContent>
133
+ <xs:extension base="personal-details:credit-name" />
134
+ </xs:simpleContent>
135
+ </xs:complexType>
136
+ </xs:element>
137
+ </xs:sequence>
138
+ <xs:attribute name="visibility" type="common:visibility" use="optional"/>
139
+ <xs:attribute name="path" type="common:element-path" use="optional" />
140
+ </xs:complexType>
141
+
142
+ <xs:complexType name="biography">
143
+ <xs:annotation>
144
+ <xs:documentation>Description of the researcher's professional career.
145
+ </xs:documentation>
146
+ </xs:annotation>
147
+ <xs:sequence>
148
+ <xs:element ref="common:created-date" minOccurs="0" maxOccurs="1" />
149
+ <xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
150
+ <xs:element minOccurs="1" name="content" type="common:non-empty-string">
151
+ </xs:element>
152
+ </xs:sequence>
153
+ <xs:attribute name="visibility" type="common:visibility" use="optional"/>
154
+ <xs:attribute name="path" type="common:element-path" use="optional" />
155
+ </xs:complexType>
156
+
157
+ <xs:complexType name="credit-name">
158
+ <xs:simpleContent>
159
+ <xs:extension base="common:credit-name" />
160
+ </xs:simpleContent>
161
+ </xs:complexType>
162
+ </xs:schema>
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/preferences" xmlns:preferences="http://www.orcid.org/ns/preferences"
5
+ xmlns:common="http://www.orcid.org/ns/common">
6
+ <xs:annotation>
7
+ <xs:documentation>
8
+ =============================================================================
9
+
10
+ ORCID (R) Open Source
11
+ http://orcid.org
12
+
13
+ Copyright (c) 2012-2018 ORCID,
14
+ Inc.
15
+ Licensed under an MIT-Style License (MIT)
16
+ http://orcid.org/open-source-license
17
+
18
+ This copyright and license
19
+ information (including a link to the full
20
+ license)
21
+ shall be included in
22
+ its entirety in all copies or substantial portion of
23
+ the software.
24
+
25
+ =============================================================================
26
+ The schema describes the message format used for ORCID API requests
27
+ and responses.
28
+ The top level element is orcid-message.
29
+ </xs:documentation>
30
+ <xs:appinfo>
31
+ <sch:title>Schematron validation</sch:title>
32
+ <sch:ns prefix="orcid" uri="http://www.orcid.org/ns/orcid" />
33
+ </xs:appinfo>
34
+ </xs:annotation>
35
+ <xs:import namespace="http://www.orcid.org/ns/common"
36
+ schemaLocation="../common_3.0/common-3.0.xsd" />
37
+ <xs:element name="preferences">
38
+ <xs:complexType>
39
+ <xs:annotation>
40
+ <xs:documentation>Preferences set by the researcher or contributor.
41
+ (currently language preference)
42
+ </xs:documentation>
43
+ </xs:annotation>
44
+ <xs:sequence>
45
+ <xs:element name="locale" type="common:locale" />
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+
50
+ </xs:schema>
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/qualification" xmlns:qualification="http://www.orcid.org/ns/qualification"
5
+ xmlns:common="http://www.orcid.org/ns/common">
6
+ <xs:annotation>
7
+ <xs:documentation>
8
+ =============================================================================
9
+
10
+ ORCID (R) Open Source
11
+ http://orcid.org
12
+
13
+ Copyright (c) 2012-2018 ORCID,
14
+ Inc.
15
+ Licensed under an MIT-Style License (MIT)
16
+ http://orcid.org/open-source-license
17
+
18
+ This copyright and license
19
+ information (including a link to the full
20
+ license)
21
+ shall be included in
22
+ its entirety in all copies or substantial portion of
23
+ the software.
24
+
25
+ =============================================================================
26
+ The schema describes the message format used for ORCID API requests
27
+ and responses.
28
+ </xs:documentation>
29
+ <xs:appinfo>
30
+ <sch:title>Schematron validation</sch:title>
31
+ <sch:ns prefix="orcid" uri="http://www.orcid.org/ns/orcid" />
32
+ </xs:appinfo>
33
+ </xs:annotation>
34
+
35
+ <xs:import namespace="http://www.orcid.org/ns/common"
36
+ schemaLocation="../common_3.0/common-3.0.xsd" />
37
+
38
+ <xs:element name="qualification" type="common:affiliation">
39
+ <xs:annotation>
40
+ <xs:documentation>A qualification associated with the researcher or contributor.
41
+ Qualification is defined as Professional or vocational accreditation, certification or training undertaken by an individual. May be designated as in progress or unfinished.
42
+ * The put-code attribute is returned when reading this element.
43
+ When updating the item, the put-code attribute must be included to indicate the specific item to be updated.
44
+ </xs:documentation>
45
+ </xs:annotation>
46
+ </xs:element>
47
+
48
+ <xs:element name="qualification-summary" type="common:affiliation-summary" />
49
+
50
+ </xs:schema>
@@ -0,0 +1,91 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
4
+ targetNamespace="http://www.orcid.org/ns/record" xmlns:internal="http://www.orcid.org/ns/internal"
5
+ xmlns:person="http://www.orcid.org/ns/person" xmlns:common="http://www.orcid.org/ns/common"
6
+ xmlns:work="http://www.orcid.org/ns/work" xmlns:funding="http://www.orcid.org/ns/funding"
7
+ xmlns:education="http://www.orcid.org/ns/education" xmlns:employment="http://www.orcid.org/ns/employment"
8
+ xmlns:activities="http://www.orcid.org/ns/activities" xmlns:history="http://www.orcid.org/ns/history"
9
+ xmlns:record="http://www.orcid.org/ns/record" xmlns:preferences="http://www.orcid.org/ns/preferences"
10
+ xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:research-resource="http://www.orcid.org/ns/research-resource">
11
+ <xs:annotation>
12
+ <xs:documentation>
13
+ =============================================================================
14
+
15
+ ORCID (R) Open Source
16
+ http://orcid.org
17
+
18
+ Copyright (c) 2012-2018 ORCID,
19
+ Inc.
20
+ Licensed under an MIT-Style License (MIT)
21
+ http://orcid.org/open-source-license
22
+
23
+ This copyright and license
24
+ information (including a link to the full
25
+ license)
26
+ shall be included in
27
+ its entirety in all copies or substantial portion of
28
+ the software.
29
+
30
+ =============================================================================
31
+ The schema describes the message format used for ORCID API requests
32
+ and responses.
33
+ The top level element is orcid-message.
34
+ </xs:documentation>
35
+ <xs:appinfo>
36
+ <sch:title>Schematron validation</sch:title>
37
+ <sch:ns prefix="orcid" uri="http://www.orcid.org/ns/orcid" />
38
+ </xs:appinfo>
39
+ </xs:annotation>
40
+
41
+ <xs:import namespace="http://www.orcid.org/ns/activities"
42
+ schemaLocation="activities-3.0.xsd" />
43
+ <xs:import namespace="http://www.orcid.org/ns/person"
44
+ schemaLocation="person-3.0.xsd" />
45
+ <xs:import namespace="http://www.orcid.org/ns/common"
46
+ schemaLocation="../common_3.0/common-3.0.xsd" />
47
+ <xs:import namespace="http://www.orcid.org/ns/history"
48
+ schemaLocation="history-3.0.xsd" />
49
+ <xs:import namespace="http://www.orcid.org/ns/preferences"
50
+ schemaLocation="preferences-3.0.xsd" />
51
+ <xs:import namespace="http://www.orcid.org/ns/work"
52
+ schemaLocation="work-3.0.xsd" />
53
+ <xs:import namespace="http://www.orcid.org/ns/funding"
54
+ schemaLocation="funding-3.0.xsd" />
55
+ <xs:import namespace="http://www.orcid.org/ns/education"
56
+ schemaLocation="education-3.0.xsd" />
57
+ <xs:import namespace="http://www.orcid.org/ns/employment"
58
+ schemaLocation="employment-3.0.xsd" />
59
+ <xs:import namespace="http://www.orcid.org/ns/peer-review"
60
+ schemaLocation="peer-review-3.0.xsd" />
61
+
62
+ <xs:element name="record">
63
+ <xs:complexType>
64
+ <xs:annotation>
65
+ <xs:documentation>The container element for a researcher or
66
+ contributor ORCID Record.
67
+ * The type attribute can only be set by
68
+ ORCID, and indicates the type of ORCID Record the information
69
+ refers to. In most cases the value will be "user" to indicate an ORCID iD holder.
70
+ * The client type attribute is set by ORCID, and is
71
+ present when the type attribute is "group" or "client". This
72
+ attribute indicates the API privileges held by the group as
73
+ indicated by their ORCID Membership Agreement.
74
+ </xs:documentation>
75
+ </xs:annotation>
76
+ <xs:sequence>
77
+ <xs:element ref="common:orcid-identifier" minOccurs="0"
78
+ maxOccurs="1" />
79
+ <xs:element ref="preferences:preferences" minOccurs="0"
80
+ maxOccurs="1" />
81
+ <xs:element ref="history:history" minOccurs="0"
82
+ maxOccurs="1" />
83
+ <xs:element ref="person:person" minOccurs="0" maxOccurs="1" />
84
+ <xs:element ref="activities:activities-summary"
85
+ minOccurs="0" maxOccurs="1" />
86
+ </xs:sequence>
87
+ <xs:attribute name="path" type="common:element-path" use="optional" />
88
+ </xs:complexType>
89
+ </xs:element>
90
+
91
+ </xs:schema>