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.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +39 -0
- data/.github/workflows/changelog.yml +36 -0
- data/.github/workflows/release.yml +49 -0
- data/Gemfile.lock +124 -104
- data/lib/orcid_client/api.rb +1 -1
- data/lib/orcid_client/external_identifier.rb +1 -1
- data/lib/orcid_client/version.rb +1 -1
- data/lib/orcid_client/work.rb +1 -1
- data/orcid_client.gemspec +1 -1
- data/resources/README.md +48 -43
- data/resources/common_3.0/common-3.0.xsd +998 -0
- data/resources/common_3.0/samples/common-3.0.xml +8 -0
- data/resources/common_3.0/samples/common-3.0_external-identifier.xml +11 -0
- data/resources/notification_3.0/README.md +130 -0
- data/resources/notification_3.0/images/notification-intro.jpg +0 -0
- data/resources/notification_3.0/images/notification-subject.jpg +0 -0
- data/resources/notification_3.0/notification-custom-3.0.xsd +38 -0
- data/resources/notification_3.0/notification-permission-3.0.xsd +134 -0
- data/resources/notification_3.0/samples/notification-custom-3.0.xml +27 -0
- data/resources/notification_3.0/samples/notification-permission-3.0.xml +58 -0
- data/resources/record_3.0/README.md +408 -0
- data/resources/record_3.0/activities-3.0.xsd +456 -0
- data/resources/record_3.0/address-3.0.xsd +73 -0
- data/resources/record_3.0/bulk-3.0.xsd +57 -0
- data/resources/record_3.0/distinction-3.0.xsd +51 -0
- data/resources/record_3.0/education-3.0.xsd +51 -0
- data/resources/record_3.0/email-3.0.xsd +76 -0
- data/resources/record_3.0/employment-3.0.xsd +51 -0
- data/resources/record_3.0/error-3.0.xsd +84 -0
- data/resources/record_3.0/expanded-search-3.0.xsd +114 -0
- data/resources/record_3.0/funding-3.0.xsd +204 -0
- data/resources/record_3.0/history-3.0.xsd +185 -0
- data/resources/record_3.0/invited-position-3.0.xsd +50 -0
- data/resources/record_3.0/keyword-3.0.xsd +72 -0
- data/resources/record_3.0/membership-3.0.xsd +51 -0
- data/resources/record_3.0/other-name-3.0.xsd +78 -0
- data/resources/record_3.0/peer-review-3.0.xsd +263 -0
- data/resources/record_3.0/person-3.0.xsd +85 -0
- data/resources/record_3.0/person-external-identifier-3.0.xsd +63 -0
- data/resources/record_3.0/personal-details-3.0.xsd +162 -0
- data/resources/record_3.0/preferences-3.0.xsd +50 -0
- data/resources/record_3.0/qualification-3.0.xsd +50 -0
- data/resources/record_3.0/record-3.0.xsd +91 -0
- data/resources/record_3.0/research-resource-3.0.xsd +144 -0
- data/resources/record_3.0/researcher-url-3.0.xsd +86 -0
- data/resources/record_3.0/samples/read_samples/activities-3.0.xml +742 -0
- data/resources/record_3.0/samples/read_samples/address-3.0.xml +16 -0
- data/resources/record_3.0/samples/read_samples/addresses-3.0.xml +32 -0
- data/resources/record_3.0/samples/read_samples/biography-3.0.xml +10 -0
- data/resources/record_3.0/samples/read_samples/bulk-work-err.xml +45 -0
- data/resources/record_3.0/samples/read_samples/credit-name-3.0.xml +5 -0
- data/resources/record_3.0/samples/read_samples/distinction-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/distinctions-3.0.xml +106 -0
- data/resources/record_3.0/samples/read_samples/education-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/education-full-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/educations-3.0.xml +118 -0
- data/resources/record_3.0/samples/read_samples/email-3.0.xml +16 -0
- data/resources/record_3.0/samples/read_samples/emails-3.0.xml +31 -0
- data/resources/record_3.0/samples/read_samples/employment-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/employment-full-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/employments-3.0.xml +108 -0
- data/resources/record_3.0/samples/read_samples/error-3.0.xml +8 -0
- data/resources/record_3.0/samples/read_samples/external-identifier-3.0.xml +21 -0
- data/resources/record_3.0/samples/read_samples/external-identifiers-3.0.xml +38 -0
- data/resources/record_3.0/samples/read_samples/full-record-3.0.json +2332 -0
- data/resources/record_3.0/samples/read_samples/funding-3.0.xml +75 -0
- data/resources/record_3.0/samples/read_samples/funding-full-3.0.xml +75 -0
- data/resources/record_3.0/samples/read_samples/fundings-3.0.xml +139 -0
- data/resources/record_3.0/samples/read_samples/history-3.0.xml +22 -0
- data/resources/record_3.0/samples/read_samples/invited-position-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/invited-positions-3.0.xml +106 -0
- data/resources/record_3.0/samples/read_samples/keyword-3.0.xml +18 -0
- data/resources/record_3.0/samples/read_samples/keywords-3.0.xml +34 -0
- data/resources/record_3.0/samples/read_samples/membership-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/memberships-3.0.xml +106 -0
- data/resources/record_3.0/samples/read_samples/name-3.0.xml +12 -0
- data/resources/record_3.0/samples/read_samples/other-name-3.0.xml +16 -0
- data/resources/record_3.0/samples/read_samples/other-names-3.0.xml +31 -0
- data/resources/record_3.0/samples/read_samples/peer-review-3.0.xml +59 -0
- data/resources/record_3.0/samples/read_samples/peer-review-full-3.0.xml +59 -0
- data/resources/record_3.0/samples/read_samples/peer-reviews-3.0.xml +76 -0
- data/resources/record_3.0/samples/read_samples/person-3.0.xml +122 -0
- data/resources/record_3.0/samples/read_samples/personal-details-3.0.xml +47 -0
- data/resources/record_3.0/samples/read_samples/preferences-3.0.xml +4 -0
- data/resources/record_3.0/samples/read_samples/qualification-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/qualifications-3.0.xml +106 -0
- data/resources/record_3.0/samples/read_samples/record-3.0.xml +770 -0
- data/resources/record_3.0/samples/read_samples/research-resource-3.0.xml +138 -0
- data/resources/record_3.0/samples/read_samples/research-resources-3.0.xml +143 -0
- data/resources/record_3.0/samples/read_samples/researcher-url-3.0.xml +19 -0
- data/resources/record_3.0/samples/read_samples/researcher-urls-3.0.xml +21 -0
- data/resources/record_3.0/samples/read_samples/search-3.0.xml +14 -0
- data/resources/record_3.0/samples/read_samples/service-3.0.xml +55 -0
- data/resources/record_3.0/samples/read_samples/services-3.0.xml +106 -0
- data/resources/record_3.0/samples/read_samples/work-3.0.xml +65 -0
- data/resources/record_3.0/samples/read_samples/work-full-3.0.xml +65 -0
- data/resources/record_3.0/samples/read_samples/works-3.0.xml +148 -0
- data/resources/record_3.0/samples/write_samples/address-3.0.xml +6 -0
- data/resources/record_3.0/samples/write_samples/bulk-work-3.0.json +53 -0
- data/resources/record_3.0/samples/write_samples/bulk-work-3.0.xml +47 -0
- data/resources/record_3.0/samples/write_samples/distinction-3.0.xml +46 -0
- data/resources/record_3.0/samples/write_samples/education-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/employment-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/external-identifier-3.0.xml +11 -0
- data/resources/record_3.0/samples/write_samples/funding-3.0.xml +44 -0
- data/resources/record_3.0/samples/write_samples/invited-position-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/keyword-3.0.xml +7 -0
- data/resources/record_3.0/samples/write_samples/membership-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/other-name-3.0.xml +6 -0
- data/resources/record_3.0/samples/write_samples/peer-review-full-3.0.xml +48 -0
- data/resources/record_3.0/samples/write_samples/peer-review-full-award-subject-type-3.0.xml +48 -0
- data/resources/record_3.0/samples/write_samples/peer-review-simple-3.0.xml +32 -0
- data/resources/record_3.0/samples/write_samples/qualification-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/research-resource-3.0.xml +110 -0
- data/resources/record_3.0/samples/write_samples/researcher-url-3.0-no-name.xml +6 -0
- data/resources/record_3.0/samples/write_samples/researcher-url-3.0.xml +7 -0
- data/resources/record_3.0/samples/write_samples/service-3.0.xml +45 -0
- data/resources/record_3.0/samples/write_samples/work-full-3.0.xml +60 -0
- data/resources/record_3.0/samples/write_samples/work-simple-3.0.xml +18 -0
- data/resources/record_3.0/search-3.0.xsd +62 -0
- data/resources/record_3.0/service-3.0.xsd +51 -0
- data/resources/record_3.0/work-3.0.xsd +269 -0
- data/spec/api_spec.rb +2 -2
- data/spec/external_identifier_spec.rb +2 -2
- data/spec/fixtures/external_identifier.xml +1 -1
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/get/should_get_works.yml +19 -10
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/post/should_create_work.yml +52 -38
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/data.yml +35 -28
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_data.yml +34 -27
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_item_type_work.yml +29 -37
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/literal.yml +45 -32
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/multiple_titles.yml +35 -28
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/valid.yml +35 -28
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/with_ORCID_IDs.yml +28 -22
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/data.yml +34 -27
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/publication_date.yml +35 -28
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_ORCID_IDs_for_contributors.yml +29 -23
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_data.yml +34 -27
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_from_DataCite_test_system.yml +28 -22
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_type_data-set.yml +29 -37
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/user_example/fail/valid.yml +28 -22
- data/spec/fixtures/work.xml +1 -1
- data/spec/notification_spec.rb +2 -2
- data/spec/work_spec.rb +2 -2
- metadata +126 -6
|
@@ -0,0 +1,73 @@
|
|
|
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/address" xmlns:address="http://www.orcid.org/ns/address"
|
|
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="address" uri="http://www.orcid.org/ns/address" />
|
|
32
|
+
</xs:appinfo>
|
|
33
|
+
</xs:annotation>
|
|
34
|
+
<xs:import namespace="http://www.orcid.org/ns/common"
|
|
35
|
+
schemaLocation="../common_3.0/common-3.0.xsd" />
|
|
36
|
+
|
|
37
|
+
<xs:element name="addresses">
|
|
38
|
+
<xs:annotation>
|
|
39
|
+
<xs:documentation>Addresses container</xs:documentation>
|
|
40
|
+
</xs:annotation>
|
|
41
|
+
<xs:complexType>
|
|
42
|
+
<xs:sequence>
|
|
43
|
+
<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
|
|
44
|
+
<xs:element name="address" type="address:address" minOccurs="0"
|
|
45
|
+
maxOccurs="unbounded" />
|
|
46
|
+
</xs:sequence>
|
|
47
|
+
<xs:attribute name="path" type="common:element-path" use="optional" />
|
|
48
|
+
</xs:complexType>
|
|
49
|
+
</xs:element>
|
|
50
|
+
|
|
51
|
+
<xs:element name="address">
|
|
52
|
+
<xs:annotation>
|
|
53
|
+
<xs:documentation>Address element
|
|
54
|
+
</xs:documentation>
|
|
55
|
+
</xs:annotation>
|
|
56
|
+
<xs:complexType>
|
|
57
|
+
<xs:complexContent>
|
|
58
|
+
<xs:extension base="address:address"></xs:extension>
|
|
59
|
+
</xs:complexContent>
|
|
60
|
+
</xs:complexType>
|
|
61
|
+
</xs:element>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<xs:complexType name="address">
|
|
65
|
+
<xs:complexContent>
|
|
66
|
+
<xs:extension base="common:element-summary">
|
|
67
|
+
<xs:sequence>
|
|
68
|
+
<xs:element name="country" type="common:iso-3166-country-or-empty" />
|
|
69
|
+
</xs:sequence>
|
|
70
|
+
</xs:extension>
|
|
71
|
+
</xs:complexContent>
|
|
72
|
+
</xs:complexType>
|
|
73
|
+
</xs:schema>
|
|
@@ -0,0 +1,57 @@
|
|
|
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/bulk"
|
|
5
|
+
xmlns:bulk="http://www.orcid.org/ns/bulk"
|
|
6
|
+
xmlns:work="http://www.orcid.org/ns/work"
|
|
7
|
+
xmlns:error="http://www.orcid.org/ns/error">
|
|
8
|
+
<xs:annotation>
|
|
9
|
+
<xs:documentation>
|
|
10
|
+
=============================================================================
|
|
11
|
+
|
|
12
|
+
ORCID (R) Open Source
|
|
13
|
+
http://orcid.org
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2012-2018 ORCID,
|
|
16
|
+
Inc.
|
|
17
|
+
Licensed under an MIT-Style License (MIT)
|
|
18
|
+
http://orcid.org/open-source-license
|
|
19
|
+
|
|
20
|
+
This copyright and license
|
|
21
|
+
information (including a link to the full
|
|
22
|
+
license)
|
|
23
|
+
shall be included in
|
|
24
|
+
its entirety in all copies or substantial portion of
|
|
25
|
+
the software.
|
|
26
|
+
|
|
27
|
+
=============================================================================
|
|
28
|
+
The schema describes the message format used for ORCID API requests
|
|
29
|
+
and responses.
|
|
30
|
+
The top level element is orcid-message.
|
|
31
|
+
</xs:documentation>
|
|
32
|
+
<xs:appinfo>
|
|
33
|
+
<sch:title>Schematron validation</sch:title>
|
|
34
|
+
<sch:ns prefix="bulk" uri="http://www.orcid.org/ns/bulk" />
|
|
35
|
+
</xs:appinfo>
|
|
36
|
+
</xs:annotation>
|
|
37
|
+
|
|
38
|
+
<xs:import namespace="http://www.orcid.org/ns/error"
|
|
39
|
+
schemaLocation="error-3.0.xsd" />
|
|
40
|
+
|
|
41
|
+
<xs:import namespace="http://www.orcid.org/ns/work"
|
|
42
|
+
schemaLocation="work-3.0.xsd" />
|
|
43
|
+
|
|
44
|
+
<xs:element name="bulk">
|
|
45
|
+
<xs:complexType>
|
|
46
|
+
<xs:annotation>
|
|
47
|
+
<xs:documentation>Utilitary schema that allow the creation of multiple works in a single request</xs:documentation>
|
|
48
|
+
</xs:annotation>
|
|
49
|
+
<xs:sequence maxOccurs="unbounded">
|
|
50
|
+
<xs:choice>
|
|
51
|
+
<xs:element minOccurs="0" ref="work:work" />
|
|
52
|
+
<xs:element minOccurs="0" ref="error:error" />
|
|
53
|
+
</xs:choice>
|
|
54
|
+
</xs:sequence>
|
|
55
|
+
</xs:complexType>
|
|
56
|
+
</xs:element>
|
|
57
|
+
</xs:schema>
|
|
@@ -0,0 +1,51 @@
|
|
|
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/distinction" xmlns:distinction="http://www.orcid.org/ns/distinction"
|
|
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="distinction" type="common:affiliation">
|
|
39
|
+
<xs:annotation>
|
|
40
|
+
<xs:documentation>A distinction associated with or given to the researcher or contributor.
|
|
41
|
+
Distinction is defined as honorary and other awards, distinctions, and prizes made by an organization in recognition of an individual’s academic or other achievements.
|
|
42
|
+
* The put-code attribute is returned when reading this element.
|
|
43
|
+
When updating the item, the put-code attribute
|
|
44
|
+
must be included to indicate the specific item to be updated.
|
|
45
|
+
</xs:documentation>
|
|
46
|
+
</xs:annotation>
|
|
47
|
+
</xs:element>
|
|
48
|
+
|
|
49
|
+
<xs:element name="distinction-summary" type="common:affiliation-summary" />
|
|
50
|
+
|
|
51
|
+
</xs:schema>
|
|
@@ -0,0 +1,51 @@
|
|
|
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/education" xmlns:education="http://www.orcid.org/ns/education"
|
|
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
|
+
|
|
36
|
+
<xs:import namespace="http://www.orcid.org/ns/common"
|
|
37
|
+
schemaLocation="../common_3.0/common-3.0.xsd" />
|
|
38
|
+
|
|
39
|
+
<xs:element name="education" type="common:affiliation" >
|
|
40
|
+
<xs:annotation>
|
|
41
|
+
<xs:documentation>An education associated with the researcher or contributor.
|
|
42
|
+
Education is defined as participation in an academic higher education program. May be designated as in progress or unfinished
|
|
43
|
+
* The put-code attribute is returned when reading this element.
|
|
44
|
+
When updating the item, the put-code attribute must be included to indicate the specific item to be updated.
|
|
45
|
+
</xs:documentation>
|
|
46
|
+
</xs:annotation>
|
|
47
|
+
</xs:element>
|
|
48
|
+
|
|
49
|
+
<xs:element name="education-summary" type="common:affiliation-summary" />
|
|
50
|
+
|
|
51
|
+
</xs:schema>
|
|
@@ -0,0 +1,76 @@
|
|
|
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/email" xmlns:email="http://www.orcid.org/ns/email"
|
|
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="email" uri="http://www.orcid.org/ns/email" />
|
|
32
|
+
</xs:appinfo>
|
|
33
|
+
</xs:annotation>
|
|
34
|
+
<xs:import namespace="http://www.orcid.org/ns/common"
|
|
35
|
+
schemaLocation="../common_3.0/common-3.0.xsd" />
|
|
36
|
+
<xs:element name="emails">
|
|
37
|
+
<xs:complexType>
|
|
38
|
+
<xs:annotation>
|
|
39
|
+
<xs:documentation>Email's container
|
|
40
|
+
</xs:documentation>
|
|
41
|
+
</xs:annotation>
|
|
42
|
+
<xs:sequence>
|
|
43
|
+
<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
|
|
44
|
+
<xs:element name="email" type="email:email" minOccurs="0"
|
|
45
|
+
maxOccurs="unbounded" />
|
|
46
|
+
</xs:sequence>
|
|
47
|
+
<xs:attribute name="path" type="common:element-path" use="optional" />
|
|
48
|
+
</xs:complexType>
|
|
49
|
+
</xs:element>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<xs:element name="email">
|
|
53
|
+
<xs:annotation>
|
|
54
|
+
<xs:documentation>Email element.
|
|
55
|
+
</xs:documentation>
|
|
56
|
+
</xs:annotation>
|
|
57
|
+
<xs:complexType>
|
|
58
|
+
<xs:complexContent>
|
|
59
|
+
<xs:extension base="email:email"></xs:extension>
|
|
60
|
+
</xs:complexContent>
|
|
61
|
+
</xs:complexType>
|
|
62
|
+
</xs:element>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<xs:complexType name="email">
|
|
66
|
+
<xs:complexContent>
|
|
67
|
+
<xs:extension base="common:element-summary">
|
|
68
|
+
<xs:sequence>
|
|
69
|
+
<xs:element name="email" type="common:email" />
|
|
70
|
+
</xs:sequence>
|
|
71
|
+
<xs:attribute name="verified" type="xs:boolean" />
|
|
72
|
+
<xs:attribute name="primary" type="xs:boolean" />
|
|
73
|
+
</xs:extension>
|
|
74
|
+
</xs:complexContent>
|
|
75
|
+
</xs:complexType>
|
|
76
|
+
</xs:schema>
|
|
@@ -0,0 +1,51 @@
|
|
|
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/employment" xmlns:employment="http://www.orcid.org/ns/employment"
|
|
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
|
+
|
|
36
|
+
<xs:import namespace="http://www.orcid.org/ns/common"
|
|
37
|
+
schemaLocation="../common_3.0/common-3.0.xsd" />
|
|
38
|
+
|
|
39
|
+
<xs:element name="employment" type="common:affiliation">
|
|
40
|
+
<xs:annotation>
|
|
41
|
+
<xs:documentation>An employment associated with the researcher or contributor.
|
|
42
|
+
Employment is defined as A formal employment affiliation with an organization - paid or unpaid.
|
|
43
|
+
* The put-code attribute is returned when reading this element.
|
|
44
|
+
When updating the item, the put-code attribute must be included to indicate the specific item to be updated.
|
|
45
|
+
</xs:documentation>
|
|
46
|
+
</xs:annotation>
|
|
47
|
+
</xs:element>
|
|
48
|
+
|
|
49
|
+
<xs:element name="employment-summary" type="common:affiliation-summary" />
|
|
50
|
+
|
|
51
|
+
</xs:schema>
|
|
@@ -0,0 +1,84 @@
|
|
|
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/error" xmlns:error="http://www.orcid.org/ns/error"
|
|
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="error" uri="http://www.orcid.org/ns/error" />
|
|
33
|
+
</xs:appinfo>
|
|
34
|
+
</xs:annotation>
|
|
35
|
+
|
|
36
|
+
<xs:element name="error">
|
|
37
|
+
<xs:complexType>
|
|
38
|
+
<xs:sequence>
|
|
39
|
+
<xs:element name="response-code" type="xs:int">
|
|
40
|
+
<xs:annotation>
|
|
41
|
+
<xs:documentation>
|
|
42
|
+
The HTTP response code that was also used in the response header.
|
|
43
|
+
</xs:documentation>
|
|
44
|
+
</xs:annotation>
|
|
45
|
+
</xs:element>
|
|
46
|
+
<xs:element name="developer-message" type="xs:string">
|
|
47
|
+
<xs:annotation>
|
|
48
|
+
<xs:documentation>
|
|
49
|
+
Debugging information for the API client developer, e.g. schema validation
|
|
50
|
+
error message.
|
|
51
|
+
</xs:documentation>
|
|
52
|
+
</xs:annotation>
|
|
53
|
+
</xs:element>
|
|
54
|
+
<xs:element name="user-message" type="xs:string"
|
|
55
|
+
minOccurs="0">
|
|
56
|
+
<xs:annotation>
|
|
57
|
+
<xs:documentation>
|
|
58
|
+
An error message that would be suitable to display to the user in
|
|
59
|
+
the application using the ORCID API.
|
|
60
|
+
If possible, this will be in the language of the locale specified
|
|
61
|
+
by the user in ORCID.
|
|
62
|
+
</xs:documentation>
|
|
63
|
+
</xs:annotation>
|
|
64
|
+
</xs:element>
|
|
65
|
+
<xs:element name="error-code" type="xs:integer" minOccurs="0">
|
|
66
|
+
<xs:annotation>
|
|
67
|
+
<xs:documentation>
|
|
68
|
+
The ORCID error code that defines the specific type of error. A full
|
|
69
|
+
list of codes can be found at
|
|
70
|
+
https://github.com/ORCID/ORCID-Source/blob/master/orcid-core/src/main/resources/i18n/api_en.properties
|
|
71
|
+
</xs:documentation>
|
|
72
|
+
</xs:annotation>
|
|
73
|
+
</xs:element>
|
|
74
|
+
<xs:element name="more-info" type="xs:anyURI" minOccurs="0">
|
|
75
|
+
<xs:annotation>
|
|
76
|
+
<xs:documentation>
|
|
77
|
+
A URL of a page giving more information about troubleshooting errors
|
|
78
|
+
</xs:documentation>
|
|
79
|
+
</xs:annotation>
|
|
80
|
+
</xs:element>
|
|
81
|
+
</xs:sequence>
|
|
82
|
+
</xs:complexType>
|
|
83
|
+
</xs:element>
|
|
84
|
+
</xs:schema>
|