commonmeta-py 0.106__py3-none-any.whl → 0.108__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 +12 -3
- commonmeta/api_utils.py +3 -2
- commonmeta/base_utils.py +186 -3
- commonmeta/cli.py +114 -34
- commonmeta/constants.py +20 -0
- commonmeta/file_utils.py +112 -0
- commonmeta/metadata.py +102 -42
- commonmeta/readers/codemeta_reader.py +1 -1
- commonmeta/readers/crossref_reader.py +23 -10
- commonmeta/readers/crossref_xml_reader.py +1 -1
- commonmeta/readers/datacite_reader.py +6 -4
- commonmeta/readers/{json_feed_reader.py → jsonfeed_reader.py} +12 -12
- commonmeta/resources/crossref/common5.4.0.xsd +1264 -0
- commonmeta/resources/crossref/{crossref5.3.1.xsd → crossref5.4.0.xsd} +286 -88
- commonmeta/resources/crossref/doi_resources5.4.0.xsd +117 -0
- commonmeta/resources/crossref/fundingdata5.4.0.xsd +59 -0
- commonmeta/resources/crossref/fundref.xsd +29 -19
- commonmeta/resources/crossref/languages5.4.0.xsd +8119 -0
- commonmeta/resources/crossref/mediatypes5.4.0.xsd +2207 -0
- commonmeta/resources/crossref/module-ali.xsd +14 -6
- commonmeta/resources/crossref/standard-modules/mathml3/mathml3-common.xsd +101 -0
- commonmeta/resources/crossref/standard-modules/mathml3/mathml3-content.xsd +683 -0
- commonmeta/resources/crossref/standard-modules/mathml3/mathml3-presentation.xsd +2092 -0
- commonmeta/resources/crossref/standard-modules/mathml3/mathml3-strict-content.xsd +186 -0
- commonmeta/resources/crossref/standard-modules/mathml3/mathml3.xsd +9 -0
- commonmeta/resources/crossref/standard-modules/mathml3/module-ali.xsd +47 -0
- commonmeta/resources/crossref/standard-modules/module-ali.xsd +47 -0
- commonmeta/resources/crossref/standard-modules/xlink.xsd +100 -0
- commonmeta/resources/crossref/standard-modules/xml.xsd +287 -0
- commonmeta/resources/crossref/xml.xsd +287 -0
- commonmeta/schema_utils.py +25 -0
- commonmeta/utils.py +90 -15
- commonmeta/writers/bibtex_writer.py +5 -5
- commonmeta/writers/citation_writer.py +10 -5
- commonmeta/writers/commonmeta_writer.py +5 -17
- commonmeta/writers/crossref_xml_writer.py +1032 -4
- commonmeta/writers/csl_writer.py +6 -6
- commonmeta/writers/datacite_writer.py +11 -6
- commonmeta/writers/inveniordm_writer.py +286 -10
- commonmeta/writers/ris_writer.py +3 -3
- commonmeta/writers/schema_org_writer.py +10 -5
- {commonmeta_py-0.106.dist-info → commonmeta_py-0.108.dist-info}/METADATA +5 -2
- {commonmeta_py-0.106.dist-info → commonmeta_py-0.108.dist-info}/RECORD +46 -32
- commonmeta/crossref_utils.py +0 -583
- commonmeta/resources/crossref/common5.3.1.xsd +0 -1538
- {commonmeta_py-0.106.dist-info → commonmeta_py-0.108.dist-info}/WHEEL +0 -0
- {commonmeta_py-0.106.dist-info → commonmeta_py-0.108.dist-info}/entry_points.txt +0 -0
- {commonmeta_py-0.106.dist-info → commonmeta_py-0.108.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,13 @@
|
|
1
1
|
<?xml-stylesheet href="xsd.xsl" type="text/xsl"?>
|
2
|
-
<xsd:schema xmlns:mtl="http://www.mulberrytech.com/taglib"
|
2
|
+
<xsd:schema xmlns:mtl="http://www.mulberrytech.com/taglib"
|
3
|
+
xmlns:c="http://www.w3.org/ns/xproc-step"
|
4
|
+
xmlns:ali="http://www.niso.org/schemas/ali/1.0/"
|
5
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
6
|
+
targetNamespace="http://www.niso.org/schemas/ali/1.0/">
|
7
|
+
|
3
8
|
<xsd:import/>
|
4
|
-
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
|
9
|
+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
|
10
|
+
<!--* Some imports may need to be added manually *-->
|
5
11
|
<xsd:element name="free_to_read">
|
6
12
|
<xsd:annotation>
|
7
13
|
<xsd:documentation>
|
@@ -16,7 +22,7 @@
|
|
16
22
|
<xsd:attribute name="id" use="optional" type="xsd:ID"/>
|
17
23
|
<xsd:attribute name="specific-use" use="optional" type="xsd:string"/>
|
18
24
|
<xsd:attribute name="start_date" use="optional" type="xsd:string"/>
|
19
|
-
|
25
|
+
<!-- <xsd:attribute ref="xml:base" use="optional"/> -->
|
20
26
|
</xsd:complexType>
|
21
27
|
</xsd:element>
|
22
28
|
<xsd:element name="license_ref">
|
@@ -27,13 +33,15 @@
|
|
27
33
|
</div>
|
28
34
|
</xsd:documentation>
|
29
35
|
</xsd:annotation>
|
30
|
-
<xsd:complexType mixed="true"
|
36
|
+
<xsd:complexType mixed="true">
|
37
|
+
<!-- <xsd:group ref="license-ref-model"/>-->
|
31
38
|
<xsd:attribute name="content-type" use="optional" type="xsd:string"/>
|
32
39
|
<xsd:attribute name="id" use="optional" type="xsd:ID"/>
|
33
40
|
<xsd:attribute name="specific-use" use="optional" type="xsd:string"/>
|
34
41
|
<xsd:attribute name="start_date" use="optional" type="xsd:string"/>
|
35
|
-
|
42
|
+
<!-- <xsd:attribute ref="xml:base" use="optional"/> -->
|
36
43
|
</xsd:complexType>
|
37
44
|
</xsd:element>
|
38
45
|
<xsd:annotation/>
|
39
|
-
</xsd:schema>
|
46
|
+
</xsd:schema>
|
47
|
+
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
4
|
+
elementFormDefault="qualified"
|
5
|
+
targetNamespace="http://www.w3.org/1998/Math/MathML">
|
6
|
+
<xs:element name="math">
|
7
|
+
<xs:complexType>
|
8
|
+
<xs:group minOccurs="0" maxOccurs="unbounded" ref="m:MathExpression"/>
|
9
|
+
<xs:attributeGroup ref="m:math.attributes"/>
|
10
|
+
</xs:complexType>
|
11
|
+
</xs:element>
|
12
|
+
<xs:attributeGroup name="CommonDeprecatedAtt">
|
13
|
+
<xs:attribute name="other"/>
|
14
|
+
</xs:attributeGroup>
|
15
|
+
<xs:attributeGroup name="CommonAtt">
|
16
|
+
<xs:attribute name="id" type="xs:ID"/>
|
17
|
+
<xs:attribute name="xref"/>
|
18
|
+
<xs:attribute name="class" type="xs:NMTOKENS"/>
|
19
|
+
<xs:attribute name="style" type="xs:string"/>
|
20
|
+
<xs:attribute name="href" type="xs:anyURI"/>
|
21
|
+
<xs:attributeGroup ref="m:CommonDeprecatedAtt"/>
|
22
|
+
<xs:anyAttribute namespace="##other" processContents="skip"/>
|
23
|
+
</xs:attributeGroup>
|
24
|
+
<xs:attributeGroup name="math.deprecatedattributes">
|
25
|
+
<xs:attribute name="mode" type="xs:string"/>
|
26
|
+
<xs:attribute name="macros" type="xs:string"/>
|
27
|
+
</xs:attributeGroup>
|
28
|
+
<xs:attributeGroup name="name">
|
29
|
+
<xs:attribute name="name" use="required" type="xs:NCName"/>
|
30
|
+
</xs:attributeGroup>
|
31
|
+
<xs:attributeGroup name="cd">
|
32
|
+
<xs:attribute name="cd" use="required" type="xs:NCName"/>
|
33
|
+
</xs:attributeGroup>
|
34
|
+
<xs:attributeGroup name="src">
|
35
|
+
<xs:attribute name="src" type="xs:anyURI"/>
|
36
|
+
</xs:attributeGroup>
|
37
|
+
<xs:element name="annotation">
|
38
|
+
<xs:complexType mixed="true">
|
39
|
+
<xs:attributeGroup ref="m:annotation.attributes"/>
|
40
|
+
</xs:complexType>
|
41
|
+
</xs:element>
|
42
|
+
<xs:complexType name="annotation-xml.model">
|
43
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
44
|
+
<xs:group ref="m:MathExpression"/>
|
45
|
+
<xs:group ref="m:anyElement"/>
|
46
|
+
</xs:choice>
|
47
|
+
</xs:complexType>
|
48
|
+
<xs:group name="anyElement">
|
49
|
+
<xs:choice>
|
50
|
+
<xs:any namespace="##other" processContents="skip"/>
|
51
|
+
<xs:any namespace="##local" processContents="skip"/>
|
52
|
+
</xs:choice>
|
53
|
+
</xs:group>
|
54
|
+
<xs:element name="annotation-xml">
|
55
|
+
<xs:complexType>
|
56
|
+
<xs:complexContent>
|
57
|
+
<xs:extension base="m:annotation-xml.model">
|
58
|
+
<xs:attributeGroup ref="m:annotation.attributes"/>
|
59
|
+
</xs:extension>
|
60
|
+
</xs:complexContent>
|
61
|
+
</xs:complexType>
|
62
|
+
</xs:element>
|
63
|
+
<xs:attributeGroup name="annotation.attributes">
|
64
|
+
<xs:attributeGroup ref="m:CommonAtt"/>
|
65
|
+
<xs:attribute name="cd" type="xs:NCName"/>
|
66
|
+
<xs:attribute name="name" type="xs:NCName"/>
|
67
|
+
<xs:attributeGroup ref="m:DefEncAtt"/>
|
68
|
+
<xs:attributeGroup ref="m:src"/>
|
69
|
+
</xs:attributeGroup>
|
70
|
+
<xs:attributeGroup name="DefEncAtt">
|
71
|
+
<xs:attribute name="encoding" type="xs:string"/>
|
72
|
+
<xs:attribute name="definitionURL" type="xs:anyURI"/>
|
73
|
+
</xs:attributeGroup>
|
74
|
+
<xs:group name="semantics">
|
75
|
+
<xs:sequence>
|
76
|
+
<xs:element name="semantics">
|
77
|
+
<xs:complexType>
|
78
|
+
<xs:sequence>
|
79
|
+
<xs:group ref="m:MathExpression"/>
|
80
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
81
|
+
<xs:element ref="m:annotation"/>
|
82
|
+
<xs:element ref="m:annotation-xml"/>
|
83
|
+
</xs:choice>
|
84
|
+
</xs:sequence>
|
85
|
+
<xs:attributeGroup ref="m:semantics.attributes"/>
|
86
|
+
</xs:complexType>
|
87
|
+
</xs:element>
|
88
|
+
</xs:sequence>
|
89
|
+
</xs:group>
|
90
|
+
<xs:attributeGroup name="semantics.attributes">
|
91
|
+
<xs:attributeGroup ref="m:CommonAtt"/>
|
92
|
+
<xs:attributeGroup ref="m:DefEncAtt"/>
|
93
|
+
<xs:attribute name="cd" type="xs:NCName"/>
|
94
|
+
<xs:attribute name="name" type="xs:NCName"/>
|
95
|
+
</xs:attributeGroup>
|
96
|
+
<xs:simpleType name="length">
|
97
|
+
<xs:restriction base="xs:string">
|
98
|
+
<xs:pattern value="\s*((-?[0-9]*(\.[0-9]*)?(e[mx]|in|cm|mm|p[xtc]|%)?)|(negative)?((very){0,2}thi(n|ck)|medium)mathspace)\s*"/>
|
99
|
+
</xs:restriction>
|
100
|
+
</xs:simpleType>
|
101
|
+
</xs:schema>
|