commonmeta-py 0.23__py3-none-any.whl → 0.24__py3-none-any.whl
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.
- commonmeta/__init__.py +96 -0
- commonmeta/api_utils.py +77 -0
- commonmeta/author_utils.py +260 -0
- commonmeta/base_utils.py +121 -0
- commonmeta/cli.py +200 -0
- commonmeta/constants.py +587 -0
- commonmeta/crossref_utils.py +575 -0
- commonmeta/date_utils.py +193 -0
- commonmeta/doi_utils.py +273 -0
- commonmeta/metadata.py +320 -0
- commonmeta/readers/__init__.py +1 -0
- commonmeta/readers/cff_reader.py +199 -0
- commonmeta/readers/codemeta_reader.py +112 -0
- commonmeta/readers/commonmeta_reader.py +13 -0
- commonmeta/readers/crossref_reader.py +409 -0
- commonmeta/readers/crossref_xml_reader.py +505 -0
- commonmeta/readers/csl_reader.py +98 -0
- commonmeta/readers/datacite_reader.py +390 -0
- commonmeta/readers/datacite_xml_reader.py +359 -0
- commonmeta/readers/inveniordm_reader.py +218 -0
- commonmeta/readers/json_feed_reader.py +420 -0
- commonmeta/readers/kbase_reader.py +205 -0
- commonmeta/readers/ris_reader.py +103 -0
- commonmeta/readers/schema_org_reader.py +506 -0
- commonmeta/resources/cff_v1.2.0.json +1827 -0
- commonmeta/resources/commonmeta_v0.12.json +601 -0
- commonmeta/resources/commonmeta_v0.13.json +559 -0
- commonmeta/resources/commonmeta_v0.14.json +573 -0
- commonmeta/resources/crossref/AccessIndicators.xsd +47 -0
- commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd +10130 -0
- commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd +48 -0
- commonmeta/resources/crossref/JATS-journalpublishing1-elements.xsd +8705 -0
- commonmeta/resources/crossref/JATS-journalpublishing1-mathml3-elements.xsd +8608 -0
- commonmeta/resources/crossref/JATS-journalpublishing1-mathml3.xsd +49 -0
- commonmeta/resources/crossref/JATS-journalpublishing1.xsd +6176 -0
- commonmeta/resources/crossref/clinicaltrials.xsd +61 -0
- commonmeta/resources/crossref/common5.3.1.xsd +1538 -0
- commonmeta/resources/crossref/crossref5.3.1.xsd +1949 -0
- commonmeta/resources/crossref/crossref_query_output3.0.xsd +1097 -0
- commonmeta/resources/crossref/fundref.xsd +49 -0
- commonmeta/resources/crossref/module-ali.xsd +39 -0
- commonmeta/resources/crossref/relations.xsd +444 -0
- commonmeta/resources/crossref-v0.2.json +60 -0
- commonmeta/resources/csl-data.json +538 -0
- commonmeta/resources/datacite-v4.5.json +829 -0
- commonmeta/resources/datacite-v4.5pr.json +608 -0
- commonmeta/resources/ietf-bcp-47.json +3025 -0
- commonmeta/resources/iso-8601.json +3182 -0
- commonmeta/resources/spdx/licenses.json +4851 -0
- commonmeta/resources/spdx-schema..json +903 -0
- commonmeta/resources/styles/apa.csl +1697 -0
- commonmeta/resources/styles/chicago-author-date.csl +684 -0
- commonmeta/resources/styles/harvard-cite-them-right.csl +321 -0
- commonmeta/resources/styles/ieee.csl +468 -0
- commonmeta/resources/styles/modern-language-association.csl +341 -0
- commonmeta/resources/styles/vancouver.csl +376 -0
- commonmeta/schema_utils.py +27 -0
- commonmeta/translators.py +47 -0
- commonmeta/utils.py +1108 -0
- commonmeta/writers/__init__.py +1 -0
- commonmeta/writers/bibtex_writer.py +149 -0
- commonmeta/writers/citation_writer.py +70 -0
- commonmeta/writers/commonmeta_writer.py +68 -0
- commonmeta/writers/crossref_xml_writer.py +17 -0
- commonmeta/writers/csl_writer.py +79 -0
- commonmeta/writers/datacite_writer.py +193 -0
- commonmeta/writers/inveniordm_writer.py +94 -0
- commonmeta/writers/ris_writer.py +58 -0
- commonmeta/writers/schema_org_writer.py +146 -0
- {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/METADATA +56 -45
- commonmeta_py-0.24.dist-info/RECORD +75 -0
- {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/WHEEL +1 -1
- commonmeta_py-0.24.dist-info/entry_points.txt +3 -0
- commonmeta_py-0.23.dist-info/RECORD +0 -5
- /commonmeta_py/__init__.py → /commonmeta/readers/bibtex_reader.py +0 -0
- {commonmeta_py-0.23.dist-info/licenses → commonmeta_py-0.24.dist-info}/LICENSE +0 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.crossref.org/fundref.xsd" targetNamespace="http://www.crossref.org/fundref.xsd"><!-- =========Change History===========
|
2
|
+
5/2/13 (PDF) changed funding_identifier to award_number
|
3
|
+
-->
|
4
|
+
<xsd:element name="program">
|
5
|
+
<xsd:annotation>
|
6
|
+
<xsd:documentation> FundRef documentation and examples: http://help.crossref.org/#fundref As part of CrossMark metadata, a deposit may contain what is called FundRef info. This details the funding behind a published article. The schema is a sequence of nested <assertion> tags. If a DOI is not participating in CrossMark, FundRef data may be deposited as part of the <journal_article> metadata. Note: Some rules will be enforced by the deposit logic (e.g. not the schema). FundRef data includes one or more award numbers (award_number), each of which may have one or more funders (funder_name). Each funder may have one or more optional identifiers (funder_identifier). A FundRef deposit begins with a <fr:program> tag within the <crossmark> structure (where fr is the namespace for the FundRef program). The <program> element is an implicit funder_group and will typically contain: A) one or more funder_name assertions and an award_number assertion. or B) one or more funder_group assertions where each funder_group should contain one or more funder_name assertions and at least one award_number assertion. Multiple 'award_number's may be included in a single program or fundgroup. Deposits without an award_number will be accepted, but award_number should be provided whenever possible. Items with several award numbers associated with a single funding organization should be grouped together by enclosing the "funder_name", "funder_identifier", and award_number(s) within a "fundgroup" assertion. </program>
|
7
|
+
</crossmark>
|
8
|
+
</fr:program>
|
9
|
+
</journal_article>
|
10
|
+
</assertion>
|
11
|
+
</xsd:documentation>
|
12
|
+
</xsd:annotation>
|
13
|
+
<xsd:complexType>
|
14
|
+
<xsd:sequence>
|
15
|
+
<xsd:element ref="assertion" minOccurs="0" maxOccurs="unbounded"/>
|
16
|
+
</xsd:sequence>
|
17
|
+
<xsd:attribute name="name" type="xsd:string" fixed="fundref"/>
|
18
|
+
</xsd:complexType>
|
19
|
+
</xsd:element>
|
20
|
+
<xsd:element name="assertion">
|
21
|
+
<xsd:annotation>
|
22
|
+
<xsd:documentation>FundRef attributes included in assertion are: fundgroup: used to group funding info for items with multiple funding sources. Required for items with multiple award_number assertions, optional for items with a single award_number funder_identifier: funding agency identifier, must be nested within the funder_name assertion funder_name: name of the funding agency (required) award_number: grant number or other fund identifier</xsd:documentation>
|
23
|
+
</xsd:annotation>
|
24
|
+
<xsd:complexType mixed="true">
|
25
|
+
<xsd:sequence>
|
26
|
+
<xsd:element ref="assertion" minOccurs="0" maxOccurs="unbounded"/>
|
27
|
+
</xsd:sequence>
|
28
|
+
<xsd:attribute name="provider" default="publisher">
|
29
|
+
<xsd:simpleType>
|
30
|
+
<xsd:restriction base="xsd:NMTOKEN">
|
31
|
+
<xsd:enumeration value="publisher"/>
|
32
|
+
<xsd:enumeration value="crossref"/>
|
33
|
+
</xsd:restriction>
|
34
|
+
</xsd:simpleType>
|
35
|
+
</xsd:attribute>
|
36
|
+
<xsd:attribute name="name" use="required">
|
37
|
+
<xsd:simpleType>
|
38
|
+
<xsd:restriction base="xsd:NMTOKEN">
|
39
|
+
<xsd:enumeration value="fundgroup"/><!-- fundgroup: used to group funding info for items with multiple funding sources.
|
40
|
+
Required for items with multiple award_number assertions, optional for items with a single award_number -->
|
41
|
+
<xsd:enumeration value="funder_identifier"/><!-- funder_identifier: funding agency identifier, must be nested within the funder_name assertion -->
|
42
|
+
<xsd:enumeration value="funder_name"/><!-- funder_name: name of the funding agency -->
|
43
|
+
<xsd:enumeration value="award_number"/><!-- -award_number: grant number or other fund identifier -->
|
44
|
+
</xsd:restriction>
|
45
|
+
</xsd:simpleType>
|
46
|
+
</xsd:attribute>
|
47
|
+
</xsd:complexType>
|
48
|
+
</xsd:element>
|
49
|
+
</xsd:schema>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml-stylesheet href="xsd.xsl" type="text/xsl"?>
|
2
|
+
<xsd:schema xmlns:mtl="http://www.mulberrytech.com/taglib" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.niso.org/schemas/ali/1.0/"><!--* Allow references to unqualified names *-->
|
3
|
+
<xsd:import/>
|
4
|
+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="standard-modules/xml.xsd"/><!--* Some imports may need to be added manually *-->
|
5
|
+
<xsd:element name="free_to_read">
|
6
|
+
<xsd:annotation>
|
7
|
+
<xsd:documentation>
|
8
|
+
<div xmlns="http://www.w3.org/1999/xhtml">
|
9
|
+
<h3>Free to Read (Niso Ali)</h3>
|
10
|
+
</div>
|
11
|
+
</xsd:documentation>
|
12
|
+
</xsd:annotation>
|
13
|
+
<xsd:complexType>
|
14
|
+
<xsd:attribute name="content-type" use="optional" type="xsd:string"/>
|
15
|
+
<xsd:attribute name="end_date" use="optional" type="xsd:string"/>
|
16
|
+
<xsd:attribute name="id" use="optional" type="xsd:ID"/>
|
17
|
+
<xsd:attribute name="specific-use" use="optional" type="xsd:string"/>
|
18
|
+
<xsd:attribute name="start_date" use="optional" type="xsd:string"/>
|
19
|
+
<xsd:attribute ref="xml:base" use="optional"/>
|
20
|
+
</xsd:complexType>
|
21
|
+
</xsd:element>
|
22
|
+
<xsd:element name="license_ref">
|
23
|
+
<xsd:annotation>
|
24
|
+
<xsd:documentation>
|
25
|
+
<div xmlns="http://www.w3.org/1999/xhtml">
|
26
|
+
<h3>License Reference (Niso Ali)</h3>
|
27
|
+
</div>
|
28
|
+
</xsd:documentation>
|
29
|
+
</xsd:annotation>
|
30
|
+
<xsd:complexType mixed="true"><!-- <xsd:group ref="license-ref-model"/>-->
|
31
|
+
<xsd:attribute name="content-type" use="optional" type="xsd:string"/>
|
32
|
+
<xsd:attribute name="id" use="optional" type="xsd:ID"/>
|
33
|
+
<xsd:attribute name="specific-use" use="optional" type="xsd:string"/>
|
34
|
+
<xsd:attribute name="start_date" use="optional" type="xsd:string"/>
|
35
|
+
<xsd:attribute ref="xml:base" use="optional"/>
|
36
|
+
</xsd:complexType>
|
37
|
+
</xsd:element>
|
38
|
+
<xsd:annotation/>
|
39
|
+
</xsd:schema>
|
@@ -0,0 +1,444 @@
|
|
1
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.crossref.org/relations.xsd" targetNamespace="http://www.crossref.org/relations.xsd">
|
2
|
+
<!-- === Change History =======
|
3
|
+
|
4
|
+
5/30/18 (PF) move language.atts and face_markup to this schema to eliminate importing older common schema (no impact on registration XML)
|
5
|
+
|
6
|
+
-->
|
7
|
+
<xsd:annotation>
|
8
|
+
<xsd:documentation> This schema provides for creating relationships between items identified by Crossref DOIs, non-Crossref DOIs, and other identifiers. See: https://support.crossref.org/hc/en-us/articles/214357426 </xsd:documentation>
|
9
|
+
</xsd:annotation>
|
10
|
+
<xsd:element name="program">
|
11
|
+
<xsd:annotation>
|
12
|
+
<xsd:documentation>Wrapper element for relationship metadata</xsd:documentation>
|
13
|
+
</xsd:annotation>
|
14
|
+
<xsd:complexType>
|
15
|
+
<xsd:sequence>
|
16
|
+
<xsd:element ref="related_item" minOccurs="0" maxOccurs="unbounded"/>
|
17
|
+
</xsd:sequence>
|
18
|
+
<xsd:attribute name="name" type="xsd:string" fixed="relations"/>
|
19
|
+
</xsd:complexType>
|
20
|
+
</xsd:element>
|
21
|
+
<xsd:element name="related_item">
|
22
|
+
<xsd:complexType>
|
23
|
+
<xsd:sequence>
|
24
|
+
<xsd:annotation>
|
25
|
+
<xsd:documentation> Description of the relationship to the target item or of the target item itself </xsd:documentation>
|
26
|
+
</xsd:annotation>
|
27
|
+
<xsd:element ref="description" minOccurs="0" maxOccurs="1"/>
|
28
|
+
<xsd:choice>
|
29
|
+
<xsd:element ref="inter_work_relation" minOccurs="1" maxOccurs="1"/>
|
30
|
+
<xsd:element ref="intra_work_relation" minOccurs="1" maxOccurs="1"/>
|
31
|
+
</xsd:choice>
|
32
|
+
</xsd:sequence>
|
33
|
+
</xsd:complexType>
|
34
|
+
</xsd:element>
|
35
|
+
<xsd:element name="inter_work_relation">
|
36
|
+
<xsd:complexType mixed="true">
|
37
|
+
<xsd:attribute name="relationship-type" use="required">
|
38
|
+
<xsd:annotation>
|
39
|
+
<xsd:documentation> Used to describe relations between items that are not the same work. </xsd:documentation>
|
40
|
+
</xsd:annotation>
|
41
|
+
<xsd:simpleType>
|
42
|
+
<xsd:restriction base="xsd:string">
|
43
|
+
<!-- Crossref -->
|
44
|
+
<xsd:enumeration value="isDerivedFrom"/>
|
45
|
+
<!-- hasDerivation -->
|
46
|
+
<xsd:enumeration value="hasDerivation"/>
|
47
|
+
<!-- isDerivedFrom -->
|
48
|
+
<xsd:enumeration value="isReviewOf"/>
|
49
|
+
<!-- hasReview -->
|
50
|
+
<xsd:enumeration value="hasReview"/>
|
51
|
+
<!-- isReviewOf -->
|
52
|
+
<xsd:enumeration value="isCommentOn"/>
|
53
|
+
<!-- hasComment -->
|
54
|
+
<xsd:enumeration value="hasComment"/>
|
55
|
+
<!-- isCommentOn -->
|
56
|
+
<xsd:enumeration value="isReplyTo"/>
|
57
|
+
<!-- hasReply -->
|
58
|
+
<xsd:enumeration value="hasReply"/>
|
59
|
+
<!-- isReplyTo -->
|
60
|
+
<xsd:enumeration value="basedOnData"/>
|
61
|
+
<!-- isDataBasisFor -->
|
62
|
+
<xsd:enumeration value="isDataBasisFor"/>
|
63
|
+
<!-- basedOnData -->
|
64
|
+
<xsd:enumeration value="hasRelatedMaterial"/>
|
65
|
+
<!-- isRelatedMaterial -->
|
66
|
+
<xsd:enumeration value="isRelatedMaterial"/>
|
67
|
+
<!-- hasRelatedMaterial -->
|
68
|
+
<!-- Common with DataCite -->
|
69
|
+
<xsd:enumeration value="isCompiledBy"/>
|
70
|
+
<!-- compiles -->
|
71
|
+
<xsd:enumeration value="compiles"/>
|
72
|
+
<!-- isCompiledBy -->
|
73
|
+
<xsd:enumeration value="isDocumentedBy"/>
|
74
|
+
<!-- documents -->
|
75
|
+
<xsd:enumeration value="documents"/>
|
76
|
+
<!-- isDocumentedBy -->
|
77
|
+
<xsd:enumeration value="isSupplementTo"/>
|
78
|
+
<!-- isSupplememtedBy -->
|
79
|
+
<xsd:enumeration value="isSupplementedBy"/>
|
80
|
+
<!-- isSupplementTo -->
|
81
|
+
<xsd:enumeration value="isContinuedBy"/>
|
82
|
+
<!-- continues -->
|
83
|
+
<xsd:enumeration value="continues"/>
|
84
|
+
<!-- isContinuedBy -->
|
85
|
+
<!-- From Dublin core -->
|
86
|
+
<xsd:enumeration value="isPartOf"/>
|
87
|
+
<!-- hasPart -->
|
88
|
+
<xsd:enumeration value="hasPart"/>
|
89
|
+
<!-- isPartOf -->
|
90
|
+
<xsd:enumeration value="references"/>
|
91
|
+
<!-- isReferencedBy -->
|
92
|
+
<xsd:enumeration value="isReferencedBy"/>
|
93
|
+
<!-- references -->
|
94
|
+
<xsd:enumeration value="isBasedOn"/>
|
95
|
+
<!-- isBasisFor -->
|
96
|
+
<xsd:enumeration value="isBasisFor"/>
|
97
|
+
<!-- isBasedOn -->
|
98
|
+
<xsd:enumeration value="requires"/>
|
99
|
+
<!-- isRequiredBy -->
|
100
|
+
<xsd:enumeration value="isRequiredBy"/>
|
101
|
+
<!-- requires -->
|
102
|
+
<!-- TODO added for Grant testing -->
|
103
|
+
<xsd:enumeration value="finances"/>
|
104
|
+
<!-- isFinancedBy -->
|
105
|
+
<xsd:enumeration value="isFinancedBy"/>
|
106
|
+
<!-- finances -->
|
107
|
+
</xsd:restriction>
|
108
|
+
</xsd:simpleType>
|
109
|
+
</xsd:attribute>
|
110
|
+
<xsd:attributeGroup ref="relations_type.atts"/>
|
111
|
+
</xsd:complexType>
|
112
|
+
</xsd:element>
|
113
|
+
<xsd:element name="intra_work_relation">
|
114
|
+
<xsd:complexType mixed="true">
|
115
|
+
<xsd:attribute name="relationship-type" use="required">
|
116
|
+
<xsd:annotation>
|
117
|
+
<xsd:documentation>Used to define relations between items that are essentially the same work but may differ in some way that impacts citation, for example a difference in format, language, or revision. Assigning different identifers to exactly the same item available in one place or as copies in multiple places can be problematic and should be avoided. </xsd:documentation>
|
118
|
+
</xsd:annotation>
|
119
|
+
<xsd:simpleType>
|
120
|
+
<xsd:restriction base="xsd:string">
|
121
|
+
<!-- Crossref -->
|
122
|
+
<xsd:enumeration value="isTranslationOf"/>
|
123
|
+
<!-- hasTranslation -->
|
124
|
+
<xsd:enumeration value="hasTranslation"/>
|
125
|
+
<!-- isTranslationOf -->
|
126
|
+
<xsd:enumeration value="isPreprintOf"/>
|
127
|
+
<!-- hasPreprint -->
|
128
|
+
<xsd:enumeration value="hasPreprint"/>
|
129
|
+
<!-- isPreprintOf -->
|
130
|
+
<xsd:enumeration value="isManuscriptOf"/>
|
131
|
+
<!-- hasManuscript -->
|
132
|
+
<xsd:enumeration value="hasManuscript"/>
|
133
|
+
<!-- isManuscriptOf -->
|
134
|
+
<xsd:enumeration value="isExpressionOf"/>
|
135
|
+
<!-- hasExpression -->
|
136
|
+
<xsd:enumeration value="hasExpression"/>
|
137
|
+
<!-- isExpressionOf -->
|
138
|
+
<xsd:enumeration value="isManifestationOf"/>
|
139
|
+
<!-- hasManifestation -->
|
140
|
+
<xsd:enumeration value="hasManifestation"/>
|
141
|
+
<!-- isManifestationOf -->
|
142
|
+
<xsd:enumeration value="isReplacedBy"/>
|
143
|
+
<!-- replaces -->
|
144
|
+
<xsd:enumeration value="replaces"/>
|
145
|
+
<!-- isReplacedBy -->
|
146
|
+
<xsd:enumeration value="isSameAs"/>
|
147
|
+
<!-- isSameAs -->
|
148
|
+
<!-- Common with DataCite -->
|
149
|
+
<xsd:enumeration value="isIdenticalTo"/>
|
150
|
+
<!-- isIdenticalTo -->
|
151
|
+
<xsd:enumeration value="isVariantFormOf"/>
|
152
|
+
<!-- isOriginalFormOf -->
|
153
|
+
<xsd:enumeration value="isOriginalFormOf"/>
|
154
|
+
<!-- isVariantFormOf -->
|
155
|
+
<!-- From Dublin core -->
|
156
|
+
<xsd:enumeration value="isVersionOf"/>
|
157
|
+
<!-- hasVersion -->
|
158
|
+
<xsd:enumeration value="hasVersion"/>
|
159
|
+
<!-- isVersionOf -->
|
160
|
+
<xsd:enumeration value="isFormatOf"/>
|
161
|
+
<!-- hasFormat -->
|
162
|
+
<xsd:enumeration value="hasFormat"/>
|
163
|
+
<!-- isFormatOf -->
|
164
|
+
</xsd:restriction>
|
165
|
+
</xsd:simpleType>
|
166
|
+
</xsd:attribute>
|
167
|
+
<xsd:attributeGroup ref="relations_type.atts"/>
|
168
|
+
</xsd:complexType>
|
169
|
+
</xsd:element>
|
170
|
+
<!-- =========================================================== -->
|
171
|
+
<xsd:attributeGroup name="relations_type.atts">
|
172
|
+
<xsd:attribute name="identifier-type" use="required">
|
173
|
+
<xsd:simpleType>
|
174
|
+
<xsd:restriction base="xsd:string">
|
175
|
+
<xsd:enumeration value="doi"/>
|
176
|
+
<xsd:enumeration value="issn"/>
|
177
|
+
<xsd:enumeration value="isbn"/>
|
178
|
+
<xsd:enumeration value="uri"/>
|
179
|
+
<xsd:enumeration value="pmid"/>
|
180
|
+
<xsd:enumeration value="pmcid"/>
|
181
|
+
<xsd:enumeration value="purl"/>
|
182
|
+
<xsd:enumeration value="arxiv"/>
|
183
|
+
<xsd:enumeration value="ark"/>
|
184
|
+
<xsd:enumeration value="handle"/>
|
185
|
+
<xsd:enumeration value="uuid"/>
|
186
|
+
<xsd:enumeration value="ecli"/>
|
187
|
+
<xsd:enumeration value="accession"/>
|
188
|
+
<xsd:enumeration value="other"/>
|
189
|
+
</xsd:restriction>
|
190
|
+
</xsd:simpleType>
|
191
|
+
</xsd:attribute>
|
192
|
+
<xsd:attribute name="namespace">
|
193
|
+
<xsd:annotation>
|
194
|
+
<xsd:documentation>An identifier systems may require a namespace that is needed in addition to the identifer value to provide uniqueness.</xsd:documentation>
|
195
|
+
</xsd:annotation>
|
196
|
+
<xsd:simpleType>
|
197
|
+
<xsd:restriction base="xsd:string">
|
198
|
+
<xsd:maxLength value="1024"/>
|
199
|
+
<xsd:minLength value="4"/>
|
200
|
+
</xsd:restriction>
|
201
|
+
</xsd:simpleType>
|
202
|
+
</xsd:attribute>
|
203
|
+
</xsd:attributeGroup>
|
204
|
+
<xsd:element name="description">
|
205
|
+
<xsd:annotation>
|
206
|
+
<xsd:documentation>A narrative description of the relationship target item</xsd:documentation>
|
207
|
+
</xsd:annotation>
|
208
|
+
<xsd:complexType mixed="true">
|
209
|
+
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
210
|
+
<xsd:group ref="face_markup"/>
|
211
|
+
</xsd:choice>
|
212
|
+
<xsd:attributeGroup ref="language.atts"/>
|
213
|
+
</xsd:complexType>
|
214
|
+
</xsd:element>
|
215
|
+
<xsd:complexType name="xrefFaces" mixed="true">
|
216
|
+
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
217
|
+
<xsd:group ref="face_markup"/>
|
218
|
+
</xsd:choice>
|
219
|
+
</xsd:complexType>
|
220
|
+
<xsd:group name="face_markup">
|
221
|
+
<xsd:annotation>
|
222
|
+
<xsd:documentation>Basic data types for face markup in the target related item</xsd:documentation>
|
223
|
+
</xsd:annotation>
|
224
|
+
<xsd:choice>
|
225
|
+
<xsd:element ref="b"/>
|
226
|
+
<xsd:element ref="i"/>
|
227
|
+
<xsd:element ref="em"/>
|
228
|
+
<xsd:element ref="strong"/>
|
229
|
+
<xsd:element ref="u"/>
|
230
|
+
<xsd:element ref="ovl"/>
|
231
|
+
<xsd:element ref="sup"/>
|
232
|
+
<xsd:element ref="sub"/>
|
233
|
+
<xsd:element ref="scp"/>
|
234
|
+
<xsd:element ref="tt"/>
|
235
|
+
<xsd:element ref="font"/>
|
236
|
+
</xsd:choice>
|
237
|
+
</xsd:group>
|
238
|
+
<xsd:element name="b" type="xrefFaces"/>
|
239
|
+
<xsd:element name="i" type="xrefFaces"/>
|
240
|
+
<xsd:element name="em" type="xrefFaces"/>
|
241
|
+
<xsd:element name="strong" type="xrefFaces"/>
|
242
|
+
<xsd:element name="u" type="xrefFaces"/>
|
243
|
+
<xsd:element name="ovl" type="xrefFaces"/>
|
244
|
+
<xsd:element name="sup" type="xrefFaces"/>
|
245
|
+
<xsd:element name="sub" type="xrefFaces"/>
|
246
|
+
<xsd:element name="scp" type="xrefFaces"/>
|
247
|
+
<xsd:element name="tt" type="xrefFaces"/>
|
248
|
+
<xsd:element name="font" type="xrefFaces"/>
|
249
|
+
<!-- language -->
|
250
|
+
<xsd:attributeGroup name="language.atts">
|
251
|
+
<xsd:annotation>
|
252
|
+
<xsd:documentation>Language attributes are based on ISO 639</xsd:documentation>
|
253
|
+
</xsd:annotation>
|
254
|
+
<xsd:attribute name="language" use="optional">
|
255
|
+
<xsd:simpleType>
|
256
|
+
<xsd:restriction base="xsd:NMTOKEN">
|
257
|
+
<xsd:enumeration value="aa"/>
|
258
|
+
<xsd:enumeration value="ab"/>
|
259
|
+
<xsd:enumeration value="ae"/>
|
260
|
+
<xsd:enumeration value="af"/>
|
261
|
+
<xsd:enumeration value="ak"/>
|
262
|
+
<xsd:enumeration value="am"/>
|
263
|
+
<xsd:enumeration value="an"/>
|
264
|
+
<xsd:enumeration value="ar"/>
|
265
|
+
<xsd:enumeration value="as"/>
|
266
|
+
<xsd:enumeration value="av"/>
|
267
|
+
<xsd:enumeration value="ay"/>
|
268
|
+
<xsd:enumeration value="az"/>
|
269
|
+
<xsd:enumeration value="ba"/>
|
270
|
+
<xsd:enumeration value="be"/>
|
271
|
+
<xsd:enumeration value="bg"/>
|
272
|
+
<xsd:enumeration value="bh"/>
|
273
|
+
<xsd:enumeration value="bi"/>
|
274
|
+
<xsd:enumeration value="bm"/>
|
275
|
+
<xsd:enumeration value="bn"/>
|
276
|
+
<xsd:enumeration value="bo"/>
|
277
|
+
<xsd:enumeration value="br"/>
|
278
|
+
<xsd:enumeration value="bs"/>
|
279
|
+
<xsd:enumeration value="ca"/>
|
280
|
+
<xsd:enumeration value="ce"/>
|
281
|
+
<xsd:enumeration value="ch"/>
|
282
|
+
<xsd:enumeration value="co"/>
|
283
|
+
<xsd:enumeration value="cr"/>
|
284
|
+
<xsd:enumeration value="cs"/>
|
285
|
+
<xsd:enumeration value="cu"/>
|
286
|
+
<xsd:enumeration value="cv"/>
|
287
|
+
<xsd:enumeration value="cy"/>
|
288
|
+
<xsd:enumeration value="da"/>
|
289
|
+
<xsd:enumeration value="de"/>
|
290
|
+
<xsd:enumeration value="dv"/>
|
291
|
+
<xsd:enumeration value="dz"/>
|
292
|
+
<xsd:enumeration value="ee"/>
|
293
|
+
<xsd:enumeration value="el"/>
|
294
|
+
<xsd:enumeration value="en"/>
|
295
|
+
<xsd:enumeration value="eo"/>
|
296
|
+
<xsd:enumeration value="es"/>
|
297
|
+
<xsd:enumeration value="et"/>
|
298
|
+
<xsd:enumeration value="eu"/>
|
299
|
+
<xsd:enumeration value="fa"/>
|
300
|
+
<xsd:enumeration value="ff"/>
|
301
|
+
<xsd:enumeration value="fi"/>
|
302
|
+
<xsd:enumeration value="fj"/>
|
303
|
+
<xsd:enumeration value="fo"/>
|
304
|
+
<xsd:enumeration value="fr"/>
|
305
|
+
<xsd:enumeration value="fy"/>
|
306
|
+
<xsd:enumeration value="ga"/>
|
307
|
+
<xsd:enumeration value="gd"/>
|
308
|
+
<xsd:enumeration value="gl"/>
|
309
|
+
<xsd:enumeration value="gn"/>
|
310
|
+
<xsd:enumeration value="gu"/>
|
311
|
+
<xsd:enumeration value="gv"/>
|
312
|
+
<xsd:enumeration value="ha"/>
|
313
|
+
<xsd:enumeration value="he"/>
|
314
|
+
<xsd:enumeration value="hi"/>
|
315
|
+
<xsd:enumeration value="ho"/>
|
316
|
+
<xsd:enumeration value="hr"/>
|
317
|
+
<xsd:enumeration value="ht"/>
|
318
|
+
<xsd:enumeration value="hu"/>
|
319
|
+
<xsd:enumeration value="hy"/>
|
320
|
+
<xsd:enumeration value="hz"/>
|
321
|
+
<xsd:enumeration value="ia"/>
|
322
|
+
<xsd:enumeration value="id"/>
|
323
|
+
<xsd:enumeration value="ie"/>
|
324
|
+
<xsd:enumeration value="ig"/>
|
325
|
+
<xsd:enumeration value="ii"/>
|
326
|
+
<xsd:enumeration value="ik"/>
|
327
|
+
<xsd:enumeration value="io"/>
|
328
|
+
<xsd:enumeration value="is"/>
|
329
|
+
<xsd:enumeration value="it"/>
|
330
|
+
<xsd:enumeration value="iu"/>
|
331
|
+
<xsd:enumeration value="ja"/>
|
332
|
+
<xsd:enumeration value="jw"/>
|
333
|
+
<xsd:enumeration value="ka"/>
|
334
|
+
<xsd:enumeration value="kg"/>
|
335
|
+
<xsd:enumeration value="ki"/>
|
336
|
+
<xsd:enumeration value="kj"/>
|
337
|
+
<xsd:enumeration value="kk"/>
|
338
|
+
<xsd:enumeration value="kl"/>
|
339
|
+
<xsd:enumeration value="km"/>
|
340
|
+
<xsd:enumeration value="kn"/>
|
341
|
+
<xsd:enumeration value="ko"/>
|
342
|
+
<xsd:enumeration value="kr"/>
|
343
|
+
<xsd:enumeration value="ks"/>
|
344
|
+
<xsd:enumeration value="ku"/>
|
345
|
+
<xsd:enumeration value="kv"/>
|
346
|
+
<xsd:enumeration value="kw"/>
|
347
|
+
<xsd:enumeration value="ky"/>
|
348
|
+
<xsd:enumeration value="la"/>
|
349
|
+
<xsd:enumeration value="lb"/>
|
350
|
+
<xsd:enumeration value="lg"/>
|
351
|
+
<xsd:enumeration value="li"/>
|
352
|
+
<xsd:enumeration value="ln"/>
|
353
|
+
<xsd:enumeration value="lo"/>
|
354
|
+
<xsd:enumeration value="lt"/>
|
355
|
+
<xsd:enumeration value="lu"/>
|
356
|
+
<xsd:enumeration value="lv"/>
|
357
|
+
<xsd:enumeration value="mg"/>
|
358
|
+
<xsd:enumeration value="mu"/>
|
359
|
+
<xsd:enumeration value="mi"/>
|
360
|
+
<xsd:enumeration value="mk"/>
|
361
|
+
<xsd:enumeration value="ml"/>
|
362
|
+
<xsd:enumeration value="mn"/>
|
363
|
+
<xsd:enumeration value="mr"/>
|
364
|
+
<xsd:enumeration value="ms"/>
|
365
|
+
<xsd:enumeration value="mt"/>
|
366
|
+
<xsd:enumeration value="my"/>
|
367
|
+
<xsd:enumeration value="na"/>
|
368
|
+
<xsd:enumeration value="nb"/>
|
369
|
+
<xsd:enumeration value="nd"/>
|
370
|
+
<xsd:enumeration value="ne"/>
|
371
|
+
<xsd:enumeration value="ng"/>
|
372
|
+
<xsd:enumeration value="nl"/>
|
373
|
+
<xsd:enumeration value="nn"/>
|
374
|
+
<xsd:enumeration value="no"/>
|
375
|
+
<xsd:enumeration value="nr"/>
|
376
|
+
<xsd:enumeration value="nv"/>
|
377
|
+
<xsd:enumeration value="ny"/>
|
378
|
+
<xsd:enumeration value="oc"/>
|
379
|
+
<xsd:enumeration value="oj"/>
|
380
|
+
<xsd:enumeration value="om"/>
|
381
|
+
<xsd:enumeration value="or"/>
|
382
|
+
<xsd:enumeration value="os"/>
|
383
|
+
<xsd:enumeration value="pa"/>
|
384
|
+
<xsd:enumeration value="pi"/>
|
385
|
+
<xsd:enumeration value="pl"/>
|
386
|
+
<xsd:enumeration value="ps"/>
|
387
|
+
<xsd:enumeration value="pt"/>
|
388
|
+
<xsd:enumeration value="qu"/>
|
389
|
+
<xsd:enumeration value="rm"/>
|
390
|
+
<xsd:enumeration value="rn"/>
|
391
|
+
<xsd:enumeration value="ro"/>
|
392
|
+
<xsd:enumeration value="ru"/>
|
393
|
+
<xsd:enumeration value="rw"/>
|
394
|
+
<xsd:enumeration value="sa"/>
|
395
|
+
<xsd:enumeration value="sc"/>
|
396
|
+
<xsd:enumeration value="sd"/>
|
397
|
+
<xsd:enumeration value="se"/>
|
398
|
+
<xsd:enumeration value="sg"/>
|
399
|
+
<xsd:enumeration value="si"/>
|
400
|
+
<xsd:enumeration value="sk"/>
|
401
|
+
<xsd:enumeration value="sl"/>
|
402
|
+
<xsd:enumeration value="sm"/>
|
403
|
+
<xsd:enumeration value="sn"/>
|
404
|
+
<xsd:enumeration value="so"/>
|
405
|
+
<xsd:enumeration value="sq"/>
|
406
|
+
<xsd:enumeration value="sr"/>
|
407
|
+
<xsd:enumeration value="ss"/>
|
408
|
+
<xsd:enumeration value="st"/>
|
409
|
+
<xsd:enumeration value="su"/>
|
410
|
+
<xsd:enumeration value="sv"/>
|
411
|
+
<xsd:enumeration value="sw"/>
|
412
|
+
<xsd:enumeration value="ta"/>
|
413
|
+
<xsd:enumeration value="te"/>
|
414
|
+
<xsd:enumeration value="tg"/>
|
415
|
+
<xsd:enumeration value="th"/>
|
416
|
+
<xsd:enumeration value="ti"/>
|
417
|
+
<xsd:enumeration value="tk"/>
|
418
|
+
<xsd:enumeration value="tl"/>
|
419
|
+
<xsd:enumeration value="tn"/>
|
420
|
+
<xsd:enumeration value="to"/>
|
421
|
+
<xsd:enumeration value="tr"/>
|
422
|
+
<xsd:enumeration value="ts"/>
|
423
|
+
<xsd:enumeration value="tt"/>
|
424
|
+
<xsd:enumeration value="tw"/>
|
425
|
+
<xsd:enumeration value="ty"/>
|
426
|
+
<xsd:enumeration value="ug"/>
|
427
|
+
<xsd:enumeration value="uk"/>
|
428
|
+
<xsd:enumeration value="ur"/>
|
429
|
+
<xsd:enumeration value="uz"/>
|
430
|
+
<xsd:enumeration value="ve"/>
|
431
|
+
<xsd:enumeration value="vi"/>
|
432
|
+
<xsd:enumeration value="vo"/>
|
433
|
+
<xsd:enumeration value="wa"/>
|
434
|
+
<xsd:enumeration value="wo"/>
|
435
|
+
<xsd:enumeration value="xh"/>
|
436
|
+
<xsd:enumeration value="yi"/>
|
437
|
+
<xsd:enumeration value="yo"/>
|
438
|
+
<xsd:enumeration value="za"/>
|
439
|
+
<xsd:enumeration value="zh"/>
|
440
|
+
</xsd:restriction>
|
441
|
+
</xsd:simpleType>
|
442
|
+
</xsd:attribute>
|
443
|
+
</xsd:attributeGroup>
|
444
|
+
</xsd:schema>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
+
"$id": "https://data.crossref.org/schemas/crossref_v0.2.json",
|
4
|
+
"title": "Crossref v0.2",
|
5
|
+
"description": "Unofficial JSON representation of the Crossref content registration schema.",
|
6
|
+
"additionalProperties": true,
|
7
|
+
"type": "object",
|
8
|
+
"properties": {
|
9
|
+
"doi": {
|
10
|
+
"description": "The digital object identifier (DOI) of the content.",
|
11
|
+
"type": "string"
|
12
|
+
},
|
13
|
+
"type": {
|
14
|
+
"description": "Content Type describes the type of content registered with Crossref",
|
15
|
+
"enum": [
|
16
|
+
"BookChapter",
|
17
|
+
"BookPart",
|
18
|
+
"BookSection",
|
19
|
+
"BookSeries",
|
20
|
+
"BookSet",
|
21
|
+
"BookTrack",
|
22
|
+
"Book",
|
23
|
+
"Component",
|
24
|
+
"Database",
|
25
|
+
"Dataset",
|
26
|
+
"Dissertation",
|
27
|
+
"EditedBook",
|
28
|
+
"Entry",
|
29
|
+
"Grant",
|
30
|
+
"JournalArticle",
|
31
|
+
"JournalIssue",
|
32
|
+
"JournalVolume",
|
33
|
+
"Journal",
|
34
|
+
"Monograph",
|
35
|
+
"Other",
|
36
|
+
"PeerReview",
|
37
|
+
"PostedContent",
|
38
|
+
"ProceedingsArticle",
|
39
|
+
"ProceedingsSeries",
|
40
|
+
"Proceedings",
|
41
|
+
"ReferenceBook",
|
42
|
+
"ReferenceEntry",
|
43
|
+
"ReportComponent",
|
44
|
+
"ReportSeries",
|
45
|
+
"Report",
|
46
|
+
"Standard"
|
47
|
+
]
|
48
|
+
},
|
49
|
+
"url": {
|
50
|
+
"description": "The URL for the content.",
|
51
|
+
"type": "string",
|
52
|
+
"format": "uri"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"required": [
|
56
|
+
"doi",
|
57
|
+
"type",
|
58
|
+
"url"
|
59
|
+
]
|
60
|
+
}
|