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.
Files changed (76) hide show
  1. commonmeta/__init__.py +96 -0
  2. commonmeta/api_utils.py +77 -0
  3. commonmeta/author_utils.py +260 -0
  4. commonmeta/base_utils.py +121 -0
  5. commonmeta/cli.py +200 -0
  6. commonmeta/constants.py +587 -0
  7. commonmeta/crossref_utils.py +575 -0
  8. commonmeta/date_utils.py +193 -0
  9. commonmeta/doi_utils.py +273 -0
  10. commonmeta/metadata.py +320 -0
  11. commonmeta/readers/__init__.py +1 -0
  12. commonmeta/readers/cff_reader.py +199 -0
  13. commonmeta/readers/codemeta_reader.py +112 -0
  14. commonmeta/readers/commonmeta_reader.py +13 -0
  15. commonmeta/readers/crossref_reader.py +409 -0
  16. commonmeta/readers/crossref_xml_reader.py +505 -0
  17. commonmeta/readers/csl_reader.py +98 -0
  18. commonmeta/readers/datacite_reader.py +390 -0
  19. commonmeta/readers/datacite_xml_reader.py +359 -0
  20. commonmeta/readers/inveniordm_reader.py +218 -0
  21. commonmeta/readers/json_feed_reader.py +420 -0
  22. commonmeta/readers/kbase_reader.py +205 -0
  23. commonmeta/readers/ris_reader.py +103 -0
  24. commonmeta/readers/schema_org_reader.py +506 -0
  25. commonmeta/resources/cff_v1.2.0.json +1827 -0
  26. commonmeta/resources/commonmeta_v0.12.json +601 -0
  27. commonmeta/resources/commonmeta_v0.13.json +559 -0
  28. commonmeta/resources/commonmeta_v0.14.json +573 -0
  29. commonmeta/resources/crossref/AccessIndicators.xsd +47 -0
  30. commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd +10130 -0
  31. commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd +48 -0
  32. commonmeta/resources/crossref/JATS-journalpublishing1-elements.xsd +8705 -0
  33. commonmeta/resources/crossref/JATS-journalpublishing1-mathml3-elements.xsd +8608 -0
  34. commonmeta/resources/crossref/JATS-journalpublishing1-mathml3.xsd +49 -0
  35. commonmeta/resources/crossref/JATS-journalpublishing1.xsd +6176 -0
  36. commonmeta/resources/crossref/clinicaltrials.xsd +61 -0
  37. commonmeta/resources/crossref/common5.3.1.xsd +1538 -0
  38. commonmeta/resources/crossref/crossref5.3.1.xsd +1949 -0
  39. commonmeta/resources/crossref/crossref_query_output3.0.xsd +1097 -0
  40. commonmeta/resources/crossref/fundref.xsd +49 -0
  41. commonmeta/resources/crossref/module-ali.xsd +39 -0
  42. commonmeta/resources/crossref/relations.xsd +444 -0
  43. commonmeta/resources/crossref-v0.2.json +60 -0
  44. commonmeta/resources/csl-data.json +538 -0
  45. commonmeta/resources/datacite-v4.5.json +829 -0
  46. commonmeta/resources/datacite-v4.5pr.json +608 -0
  47. commonmeta/resources/ietf-bcp-47.json +3025 -0
  48. commonmeta/resources/iso-8601.json +3182 -0
  49. commonmeta/resources/spdx/licenses.json +4851 -0
  50. commonmeta/resources/spdx-schema..json +903 -0
  51. commonmeta/resources/styles/apa.csl +1697 -0
  52. commonmeta/resources/styles/chicago-author-date.csl +684 -0
  53. commonmeta/resources/styles/harvard-cite-them-right.csl +321 -0
  54. commonmeta/resources/styles/ieee.csl +468 -0
  55. commonmeta/resources/styles/modern-language-association.csl +341 -0
  56. commonmeta/resources/styles/vancouver.csl +376 -0
  57. commonmeta/schema_utils.py +27 -0
  58. commonmeta/translators.py +47 -0
  59. commonmeta/utils.py +1108 -0
  60. commonmeta/writers/__init__.py +1 -0
  61. commonmeta/writers/bibtex_writer.py +149 -0
  62. commonmeta/writers/citation_writer.py +70 -0
  63. commonmeta/writers/commonmeta_writer.py +68 -0
  64. commonmeta/writers/crossref_xml_writer.py +17 -0
  65. commonmeta/writers/csl_writer.py +79 -0
  66. commonmeta/writers/datacite_writer.py +193 -0
  67. commonmeta/writers/inveniordm_writer.py +94 -0
  68. commonmeta/writers/ris_writer.py +58 -0
  69. commonmeta/writers/schema_org_writer.py +146 -0
  70. {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/METADATA +56 -45
  71. commonmeta_py-0.24.dist-info/RECORD +75 -0
  72. {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/WHEEL +1 -1
  73. commonmeta_py-0.24.dist-info/entry_points.txt +3 -0
  74. commonmeta_py-0.23.dist-info/RECORD +0 -5
  75. /commonmeta_py/__init__.py → /commonmeta/readers/bibtex_reader.py +0 -0
  76. {commonmeta_py-0.23.dist-info/licenses → commonmeta_py-0.24.dist-info}/LICENSE +0 -0
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
+ targetNamespace="http://www.crossref.org/clinicaltrials.xsd"
4
+ xmlns="http://www.crossref.org/clinicaltrials.xsd">
5
+
6
+ <xsd:annotation>
7
+ <xsd:documentation>
8
+ Linked Clinical Trials is a CrossRef initiative helping to connect the published literature to registered clinical trials associated with the research,
9
+
10
+ - version 1.0 (initial release) September 24, 2015
11
+ </xsd:documentation>
12
+ </xsd:annotation>
13
+
14
+ <xsd:element name="program">
15
+ <xsd:annotation>
16
+ <xsd:documentation>Accommodates deposit of linked clincal trials metadata. The clinical-trial-number value will
17
+ be a string that must match a specific pattern appropriate for a given clinical trial registry. The
18
+ registry is identified in the required attribute 'registry' and must be the DOI of a recognized registry
19
+ (see http://dx.doi.org/10.18810/registries)
20
+ </xsd:documentation>
21
+ </xsd:annotation>
22
+
23
+ <xsd:complexType>
24
+ <xsd:sequence>
25
+ <xsd:element ref="clinical-trial-number" minOccurs="0" maxOccurs="unbounded"/>
26
+ </xsd:sequence>
27
+ </xsd:complexType>
28
+ </xsd:element>
29
+
30
+ <xsd:element name="clinical-trial-number">
31
+ <xsd:complexType mixed="true">
32
+ <xsd:attribute name="registry" use="required">
33
+ <xsd:annotation>
34
+ <xsd:documentation> The clinical trial identifier related to the article.
35
+ </xsd:documentation>
36
+ </xsd:annotation>
37
+ <xsd:simpleType>
38
+ <xsd:restriction base="xsd:string">
39
+ <xsd:maxLength value="200"/>
40
+ <xsd:minLength value="12"/>
41
+ <xsd:pattern value="10.18810/[a-z-]+"/>
42
+ </xsd:restriction>
43
+ </xsd:simpleType>
44
+ </xsd:attribute>
45
+ <xsd:attribute name="type" use="optional">
46
+ <xsd:annotation>
47
+ <xsd:documentation> Used to identify the article publication date in relation to the issuance of the trial results
48
+ </xsd:documentation>
49
+ </xsd:annotation>
50
+ <xsd:simpleType>
51
+ <xsd:restriction base="xsd:string">
52
+ <xsd:enumeration value="preResults"/>
53
+ <xsd:enumeration value="results"/>
54
+ <xsd:enumeration value="postResults"/>
55
+ </xsd:restriction>
56
+ </xsd:simpleType>
57
+ </xsd:attribute>
58
+ </xsd:complexType>
59
+ </xsd:element>
60
+
61
+ </xsd:schema>