libis-format 0.9.5-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gitignore +18 -0
- data/.travis.yml +41 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +39 -0
- data/Rakefile +8 -0
- data/bin/droid +15 -0
- data/bin/fido +12 -0
- data/bin/pdf_copy +13 -0
- data/data/ISOcoated_v2_eci.icc +0 -0
- data/data/PDFA_def.ps +40 -0
- data/data/ead.xsd +2728 -0
- data/data/eciRGB_v2.icc +0 -0
- data/data/lias_formats.xml +106 -0
- data/data/types.yml +217 -0
- data/lib/libis/format/config.rb +35 -0
- data/lib/libis/format/converter/base.rb +101 -0
- data/lib/libis/format/converter/chain.rb +167 -0
- data/lib/libis/format/converter/image_converter.rb +214 -0
- data/lib/libis/format/converter/office_converter.rb +50 -0
- data/lib/libis/format/converter/pdf_converter.rb +139 -0
- data/lib/libis/format/converter/repository.rb +98 -0
- data/lib/libis/format/converter.rb +11 -0
- data/lib/libis/format/droid.rb +45 -0
- data/lib/libis/format/fido.rb +102 -0
- data/lib/libis/format/identifier.rb +189 -0
- data/lib/libis/format/office_to_pdf.rb +52 -0
- data/lib/libis/format/pdf_copy.rb +40 -0
- data/lib/libis/format/pdf_merge.rb +41 -0
- data/lib/libis/format/pdf_split.rb +39 -0
- data/lib/libis/format/pdf_to_pdfa.rb +76 -0
- data/lib/libis/format/pdfa_validator.rb +61 -0
- data/lib/libis/format/type_database.rb +170 -0
- data/lib/libis/format/version.rb +5 -0
- data/lib/libis/format.rb +23 -0
- data/lib/libis-format.rb +1 -0
- data/libis-format.gemspec +34 -0
- data/spec/converter_spec.rb +212 -0
- data/spec/data/Cevennes2.bmp +0 -0
- data/spec/data/Cevennes2.jp2 +0 -0
- data/spec/data/Cevennes2.ppm +22492 -0
- data/spec/data/test-ead.xml +392 -0
- data/spec/data/test-jpg.tif +0 -0
- data/spec/data/test-lzw.tif +0 -0
- data/spec/data/test-options.jpg +0 -0
- data/spec/data/test.bmp +0 -0
- data/spec/data/test.doc +0 -0
- data/spec/data/test.docx +0 -0
- data/spec/data/test.gif +0 -0
- data/spec/data/test.jpg +0 -0
- data/spec/data/test.ods +0 -0
- data/spec/data/test.odt +0 -0
- data/spec/data/test.pdf +0 -0
- data/spec/data/test.pdf.tif +0 -0
- data/spec/data/test.png +0 -0
- data/spec/data/test.ps +8631 -0
- data/spec/data/test.psd +0 -0
- data/spec/data/test.rtf +1455 -0
- data/spec/data/test.tif +0 -0
- data/spec/data/test.txt +12 -0
- data/spec/data/test.xcf +0 -0
- data/spec/data/test.xls +0 -0
- data/spec/data/test.xlsx +0 -0
- data/spec/data/test.xml +4 -0
- data/spec/data/test_pdfa.pdf +0 -0
- data/spec/identifier_spec.rb +60 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/test_types.yml +12 -0
- data/spec/type_database_spec.rb +140 -0
- data/tools/PdfTool.jar +0 -0
- data/tools/bcpkix-jdk15on-1.49.jar +0 -0
- data/tools/bcprov-jdk15on-1.49.jar +0 -0
- data/tools/droid/DROID_SignatureFile_V82.xml +32681 -0
- data/tools/droid/container-signature-20150307.xml +2235 -0
- data/tools/droid/droid-command-line-6.1.5.jar +0 -0
- data/tools/droid/droid.bat +154 -0
- data/tools/droid/droid.sh +138 -0
- data/tools/droid/lib/XmlSchema-1.4.7.jar +0 -0
- data/tools/droid/lib/activation-1.1.jar +0 -0
- data/tools/droid/lib/antlr-2.7.7.jar +0 -0
- data/tools/droid/lib/antlr-3.2.jar +0 -0
- data/tools/droid/lib/antlr-runtime-3.2.jar +0 -0
- data/tools/droid/lib/aopalliance-1.0.jar +0 -0
- data/tools/droid/lib/asm-2.2.3.jar +0 -0
- data/tools/droid/lib/aspectjrt-1.7.2.jar +0 -0
- data/tools/droid/lib/aspectjweaver-1.7.2.jar +0 -0
- data/tools/droid/lib/bcmail-jdk14-138.jar +0 -0
- data/tools/droid/lib/bcprov-jdk14-138.jar +0 -0
- data/tools/droid/lib/beansbinding-1.2.1.jar +0 -0
- data/tools/droid/lib/byteseek-1.1.1.jar +0 -0
- data/tools/droid/lib/cglib-nodep-2.2.2.jar +0 -0
- data/tools/droid/lib/classmate-1.0.0.jar +0 -0
- data/tools/droid/lib/commons-cli-1.2.jar +0 -0
- data/tools/droid/lib/commons-codec-1.4.jar +0 -0
- data/tools/droid/lib/commons-collections-3.2.1.jar +0 -0
- data/tools/droid/lib/commons-compress-1.4.1.jar +0 -0
- data/tools/droid/lib/commons-configuration-1.8.jar +0 -0
- data/tools/droid/lib/commons-dbcp-1.4.jar +0 -0
- data/tools/droid/lib/commons-httpclient-3.1.jar +0 -0
- data/tools/droid/lib/commons-io-2.4.jar +0 -0
- data/tools/droid/lib/commons-lang-2.6.jar +0 -0
- data/tools/droid/lib/commons-logging-1.1.1.jar +0 -0
- data/tools/droid/lib/commons-pool-1.5.4.jar +0 -0
- data/tools/droid/lib/cxf-api-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-schemas-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-common-utilities-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-soap-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-bindings-xml-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-core-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-databinding-jaxb-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-jaxws-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-frontend-simple-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-transports-http-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-rt-ws-addr-2.2.12.jar +0 -0
- data/tools/droid/lib/cxf-tools-common-2.2.12.jar +0 -0
- data/tools/droid/lib/de.huxhorn.lilith.3rdparty.flyingsaucer.core-renderer-8RC1.jar +0 -0
- data/tools/droid/lib/derby-10.10.2.0.jar +0 -0
- data/tools/droid/lib/dom4j-1.6.1.jar +0 -0
- data/tools/droid/lib/droid-container-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-core-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-core-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-export-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-export-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-help-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-report-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-report-interfaces-6.1.5.jar +0 -0
- data/tools/droid/lib/droid-results-6.1.5.jar +0 -0
- data/tools/droid/lib/ejb3-persistence-1.0.2.GA.jar +0 -0
- data/tools/droid/lib/geronimo-activation_1.1_spec-1.0.2.jar +0 -0
- data/tools/droid/lib/geronimo-annotation_1.0_spec-1.1.1.jar +0 -0
- data/tools/droid/lib/geronimo-javamail_1.4_spec-1.6.jar +0 -0
- data/tools/droid/lib/geronimo-jaxws_2.1_spec-1.0.jar +0 -0
- data/tools/droid/lib/geronimo-stax-api_1.0_spec-1.0.1.jar +0 -0
- data/tools/droid/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar +0 -0
- data/tools/droid/lib/hibernate-commons-annotations-4.0.4.Final.jar +0 -0
- data/tools/droid/lib/hibernate-core-4.3.5.Final.jar +0 -0
- data/tools/droid/lib/hibernate-entitymanager-4.3.5.Final.jar +0 -0
- data/tools/droid/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar +0 -0
- data/tools/droid/lib/hibernate-validator-5.1.0.Final.jar +0 -0
- data/tools/droid/lib/itext-2.0.8.jar +0 -0
- data/tools/droid/lib/jandex-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/javahelp-2.0.05.jar +0 -0
- data/tools/droid/lib/javassist-3.18.1-GA.jar +0 -0
- data/tools/droid/lib/jaxb-api-2.1.jar +0 -0
- data/tools/droid/lib/jaxb-impl-2.1.13.jar +0 -0
- data/tools/droid/lib/jboss-logging-3.1.3.GA.jar +0 -0
- data/tools/droid/lib/jboss-logging-annotations-1.2.0.Beta1.jar +0 -0
- data/tools/droid/lib/jboss-transaction-api_1.2_spec-1.0.0.Final.jar +0 -0
- data/tools/droid/lib/joda-time-1.6.2.jar +0 -0
- data/tools/droid/lib/jra-1.0-alpha-4.jar +0 -0
- data/tools/droid/lib/jta-1.1.jar +0 -0
- data/tools/droid/lib/log4j-1.2.13.jar +0 -0
- data/tools/droid/lib/neethi-2.0.4.jar +0 -0
- data/tools/droid/lib/opencsv-2.3.jar +0 -0
- data/tools/droid/lib/org-netbeans-swing-outline-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-7.2.jar +0 -0
- data/tools/droid/lib/org-openide-util-lookup-7.2.jar +0 -0
- data/tools/droid/lib/poi-3.7.jar +0 -0
- data/tools/droid/lib/saaj-api-1.3.jar +0 -0
- data/tools/droid/lib/saaj-impl-1.3.2.jar +0 -0
- data/tools/droid/lib/slf4j-api-1.4.2.jar +0 -0
- data/tools/droid/lib/slf4j-log4j12-1.4.2.jar +0 -0
- data/tools/droid/lib/spring-aop-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-beans-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-context-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-core-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-expression-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-jdbc-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-orm-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-tx-4.0.3.RELEASE.jar +0 -0
- data/tools/droid/lib/spring-web-2.5.6.jar +0 -0
- data/tools/droid/lib/stax-api-1.0-2.jar +0 -0
- data/tools/droid/lib/stringtemplate-3.2.jar +0 -0
- data/tools/droid/lib/truezip-6.8.4.jar +0 -0
- data/tools/droid/lib/validation-api-1.1.0.Final.jar +0 -0
- data/tools/droid/lib/wsdl4j-1.6.2.jar +0 -0
- data/tools/droid/lib/wstx-asl-3.2.9.jar +0 -0
- data/tools/droid/lib/xercesImpl-2.9.1.jar +0 -0
- data/tools/droid/lib/xml-apis-1.3.04.jar +0 -0
- data/tools/droid/lib/xml-resolver-1.2.jar +0 -0
- data/tools/droid/lib/xz-1.0.jar +0 -0
- data/tools/fido/__init__.py +0 -0
- data/tools/fido/argparselocal.py +2355 -0
- data/tools/fido/conf/DROID_SignatureFile-v81.xml +2 -0
- data/tools/fido/conf/container-signature-20150307.xml +2238 -0
- data/tools/fido/conf/dc.xsd +119 -0
- data/tools/fido/conf/dcmitype.xsd +53 -0
- data/tools/fido/conf/dcterms.xsd +383 -0
- data/tools/fido/conf/fido-formats.xsd +173 -0
- data/tools/fido/conf/format_extension_template.xml +105 -0
- data/tools/fido/conf/format_extensions.xml +498 -0
- data/tools/fido/conf/formats-v81.xml +38355 -0
- data/tools/fido/conf/pronom-xml-v81.zip +0 -0
- data/tools/fido/conf/versions.xml +8 -0
- data/tools/fido/fido.bat +4 -0
- data/tools/fido/fido.py +854 -0
- data/tools/fido/fido.sh +5 -0
- data/tools/fido/prepare.py +616 -0
- data/tools/fido/pronomutils.py +115 -0
- data/tools/fido/toxml.py +52 -0
- data/tools/fido/update_signatures.py +171 -0
- data/tools/pdfbox/pdfbox-app-1.8.10.jar +0 -0
- data/tools/pdfbox/preflight-app-1.8.10.jar +0 -0
- metadata +396 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
xmlns="http://purl.org/dc/elements/1.1/"
|
4
|
+
targetNamespace="http://purl.org/dc/elements/1.1/"
|
5
|
+
elementFormDefault="qualified"
|
6
|
+
attributeFormDefault="unqualified">
|
7
|
+
|
8
|
+
<xs:annotation>
|
9
|
+
<xs:documentation xml:lang="en">
|
10
|
+
DCMES 1.1 XML Schema
|
11
|
+
XML Schema for http://purl.org/dc/elements/1.1/ namespace
|
12
|
+
|
13
|
+
Created 2008-02-11
|
14
|
+
|
15
|
+
Created by
|
16
|
+
|
17
|
+
Tim Cole (t-cole3@uiuc.edu)
|
18
|
+
Tom Habing (thabing@uiuc.edu)
|
19
|
+
Jane Hunter (jane@dstc.edu.au)
|
20
|
+
Pete Johnston (p.johnston@ukoln.ac.uk),
|
21
|
+
Carl Lagoze (lagoze@cs.cornell.edu)
|
22
|
+
|
23
|
+
This schema declares XML elements for the 15 DC elements from the
|
24
|
+
http://purl.org/dc/elements/1.1/ namespace.
|
25
|
+
|
26
|
+
It defines a complexType SimpleLiteral which permits mixed content
|
27
|
+
and makes the xml:lang attribute available. It disallows child elements by
|
28
|
+
use of minOcccurs/maxOccurs.
|
29
|
+
|
30
|
+
However, this complexType does permit the derivation of other complexTypes
|
31
|
+
which would permit child elements.
|
32
|
+
|
33
|
+
All elements are declared as substitutable for the abstract element any,
|
34
|
+
which means that the default type for all elements is dc:SimpleLiteral.
|
35
|
+
|
36
|
+
</xs:documentation>
|
37
|
+
|
38
|
+
</xs:annotation>
|
39
|
+
|
40
|
+
|
41
|
+
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
|
42
|
+
schemaLocation="http://www.w3.org/2001/03/xml.xsd">
|
43
|
+
</xs:import>
|
44
|
+
|
45
|
+
<xs:complexType name="SimpleLiteral">
|
46
|
+
<xs:annotation>
|
47
|
+
<xs:documentation xml:lang="en">
|
48
|
+
This is the default type for all of the DC elements.
|
49
|
+
It permits text content only with optional
|
50
|
+
xml:lang attribute.
|
51
|
+
Text is allowed because mixed="true", but sub-elements
|
52
|
+
are disallowed because minOccurs="0" and maxOccurs="0"
|
53
|
+
are on the xs:any tag.
|
54
|
+
|
55
|
+
This complexType allows for restriction or extension permitting
|
56
|
+
child elements.
|
57
|
+
</xs:documentation>
|
58
|
+
</xs:annotation>
|
59
|
+
|
60
|
+
<xs:complexContent mixed="true">
|
61
|
+
<xs:restriction base="xs:anyType">
|
62
|
+
<xs:sequence>
|
63
|
+
<xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
|
64
|
+
</xs:sequence>
|
65
|
+
<xs:attribute ref="xml:lang" use="optional"/>
|
66
|
+
</xs:restriction>
|
67
|
+
</xs:complexContent>
|
68
|
+
</xs:complexType>
|
69
|
+
|
70
|
+
<xs:element name="any" type="SimpleLiteral" abstract="true"/>
|
71
|
+
|
72
|
+
<xs:element name="title" substitutionGroup="any"/>
|
73
|
+
<xs:element name="creator" substitutionGroup="any"/>
|
74
|
+
<xs:element name="subject" substitutionGroup="any"/>
|
75
|
+
<xs:element name="description" substitutionGroup="any"/>
|
76
|
+
<xs:element name="publisher" substitutionGroup="any"/>
|
77
|
+
<xs:element name="contributor" substitutionGroup="any"/>
|
78
|
+
<xs:element name="date" substitutionGroup="any"/>
|
79
|
+
<xs:element name="type" substitutionGroup="any"/>
|
80
|
+
<xs:element name="format" substitutionGroup="any"/>
|
81
|
+
<xs:element name="identifier" substitutionGroup="any"/>
|
82
|
+
<xs:element name="source" substitutionGroup="any"/>
|
83
|
+
<xs:element name="language" substitutionGroup="any"/>
|
84
|
+
<xs:element name="relation" substitutionGroup="any"/>
|
85
|
+
<xs:element name="coverage" substitutionGroup="any"/>
|
86
|
+
<xs:element name="rights" substitutionGroup="any"/>
|
87
|
+
|
88
|
+
<xs:group name="elementsGroup">
|
89
|
+
<xs:annotation>
|
90
|
+
<xs:documentation xml:lang="en">
|
91
|
+
This group is included as a convenience for schema authors
|
92
|
+
who need to refer to all the elements in the
|
93
|
+
http://purl.org/dc/elements/1.1/ namespace.
|
94
|
+
</xs:documentation>
|
95
|
+
</xs:annotation>
|
96
|
+
|
97
|
+
<xs:sequence>
|
98
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
99
|
+
<xs:element ref="any"/>
|
100
|
+
</xs:choice>
|
101
|
+
</xs:sequence>
|
102
|
+
</xs:group>
|
103
|
+
|
104
|
+
<xs:complexType name="elementContainer">
|
105
|
+
<xs:annotation>
|
106
|
+
<xs:documentation xml:lang="en">
|
107
|
+
This complexType is included as a convenience for schema authors who need to define a root
|
108
|
+
or container element for all of the DC elements.
|
109
|
+
</xs:documentation>
|
110
|
+
</xs:annotation>
|
111
|
+
|
112
|
+
<xs:choice>
|
113
|
+
<xs:group ref="elementsGroup"/>
|
114
|
+
</xs:choice>
|
115
|
+
</xs:complexType>
|
116
|
+
|
117
|
+
|
118
|
+
</xs:schema>
|
119
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
xmlns="http://purl.org/dc/dcmitype/"
|
4
|
+
targetNamespace="http://purl.org/dc/dcmitype/"
|
5
|
+
elementFormDefault="qualified"
|
6
|
+
attributeFormDefault="unqualified">
|
7
|
+
|
8
|
+
<xs:annotation>
|
9
|
+
<xs:documentation xml:lang="en">
|
10
|
+
DCMI Type Vocabulary XML Schema
|
11
|
+
XML Schema for http://purl.org/dc/dcmitype/ namespace
|
12
|
+
|
13
|
+
Created 2008-02-11
|
14
|
+
|
15
|
+
Created by
|
16
|
+
|
17
|
+
Tim Cole (t-cole3@uiuc.edu)
|
18
|
+
Tom Habing (thabing@uiuc.edu)
|
19
|
+
Jane Hunter (jane@dstc.edu.au)
|
20
|
+
Pete Johnston (p.johnston@ukoln.ac.uk),
|
21
|
+
Carl Lagoze (lagoze@cs.cornell.edu)
|
22
|
+
|
23
|
+
This schema defines a simpleType which enumerates
|
24
|
+
the allowable values for the DCMI Type Vocabulary.
|
25
|
+
</xs:documentation>
|
26
|
+
|
27
|
+
|
28
|
+
</xs:annotation>
|
29
|
+
|
30
|
+
|
31
|
+
<xs:simpleType name="DCMIType">
|
32
|
+
<xs:union>
|
33
|
+
<xs:simpleType>
|
34
|
+
<xs:restriction base="xs:Name">
|
35
|
+
<xs:enumeration value="Collection"/>
|
36
|
+
<xs:enumeration value="Dataset"/>
|
37
|
+
<xs:enumeration value="Event"/>
|
38
|
+
<xs:enumeration value="Image"/>
|
39
|
+
<xs:enumeration value="MovingImage"/>
|
40
|
+
<xs:enumeration value="StillImage"/>
|
41
|
+
<xs:enumeration value="InteractiveResource"/>
|
42
|
+
<xs:enumeration value="Service"/>
|
43
|
+
<xs:enumeration value="Software"/>
|
44
|
+
<xs:enumeration value="Sound"/>
|
45
|
+
<xs:enumeration value="Text"/>
|
46
|
+
<xs:enumeration value="PhysicalObject"/>
|
47
|
+
</xs:restriction>
|
48
|
+
</xs:simpleType>
|
49
|
+
</xs:union>
|
50
|
+
</xs:simpleType>
|
51
|
+
|
52
|
+
</xs:schema>
|
53
|
+
|
@@ -0,0 +1,383 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
+
xmlns:dcmitype="http://purl.org/dc/dcmitype/"
|
5
|
+
targetNamespace="http://purl.org/dc/terms/"
|
6
|
+
xmlns="http://purl.org/dc/terms/"
|
7
|
+
elementFormDefault="qualified"
|
8
|
+
attributeFormDefault="unqualified">
|
9
|
+
|
10
|
+
<xs:annotation>
|
11
|
+
<xs:documentation xml:lang="en">
|
12
|
+
DCterms XML Schema
|
13
|
+
XML Schema for http://purl.org/dc/terms/ namespace
|
14
|
+
|
15
|
+
Created 2008-02-11
|
16
|
+
|
17
|
+
Created by
|
18
|
+
|
19
|
+
Tim Cole (t-cole3@uiuc.edu)
|
20
|
+
Tom Habing (thabing@uiuc.edu)
|
21
|
+
Jane Hunter (jane@dstc.edu.au)
|
22
|
+
Pete Johnston (p.johnston@ukoln.ac.uk),
|
23
|
+
Carl Lagoze (lagoze@cs.cornell.edu)
|
24
|
+
|
25
|
+
This schema declares XML elements for the DC elements and
|
26
|
+
DC element refinements from the http://purl.org/dc/terms/ namespace.
|
27
|
+
|
28
|
+
It reuses the complexType dc:SimpleLiteral, imported from the dc.xsd
|
29
|
+
schema, which permits simple element content, and makes the xml:lang
|
30
|
+
attribute available.
|
31
|
+
|
32
|
+
This complexType permits the derivation of other complexTypes
|
33
|
+
which would permit child elements.
|
34
|
+
|
35
|
+
XML elements corresponding to DC elements are declared as substitutable for the abstract element dc:any, and
|
36
|
+
XML elements corresponding to DC element refinements are defined as substitutable for the base elements
|
37
|
+
which they refine.
|
38
|
+
|
39
|
+
This means that the default type for all XML elements (i.e. corresponding to all DC elements and
|
40
|
+
element refinements) is dc:SimpleLiteral.
|
41
|
+
|
42
|
+
Encoding schemes are defined as complexTypes which are restrictions
|
43
|
+
of the dc:SimpleLiteral complexType. These complexTypes restrict
|
44
|
+
values to an appropriates syntax or format using data typing,
|
45
|
+
regular expressions, or enumerated lists.
|
46
|
+
|
47
|
+
In order to specify one of these encodings an xsi:type attribute must
|
48
|
+
be used in the instance document.
|
49
|
+
|
50
|
+
Also, note that one shortcoming of this approach is that any type can be
|
51
|
+
applied to any of the elements or refinements. There is no convenient way
|
52
|
+
to restrict types to specific elements using this approach.
|
53
|
+
|
54
|
+
Changes in 2008-02-11 version:
|
55
|
+
|
56
|
+
Add element declarations corresponding to 15 new dcterms URIs, and amend use of substitutionGroups.
|
57
|
+
|
58
|
+
Add compexType definitions corresponding to ISO639-3, RFC4646.
|
59
|
+
|
60
|
+
</xs:documentation>
|
61
|
+
|
62
|
+
</xs:annotation>
|
63
|
+
|
64
|
+
|
65
|
+
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
|
66
|
+
schemaLocation="http://www.w3.org/2001/03/xml.xsd">
|
67
|
+
</xs:import>
|
68
|
+
|
69
|
+
<xs:import namespace="http://purl.org/dc/elements/1.1/"
|
70
|
+
schemaLocation="dc.xsd"/>
|
71
|
+
|
72
|
+
<xs:import namespace="http://purl.org/dc/dcmitype/"
|
73
|
+
schemaLocation="dcmitype.xsd"/>
|
74
|
+
|
75
|
+
<xs:element name="title" substitutionGroup="dc:title"/>
|
76
|
+
<xs:element name="creator" substitutionGroup="dc:creator"/>
|
77
|
+
<xs:element name="subject" substitutionGroup="dc:subject"/>
|
78
|
+
<xs:element name="description" substitutionGroup="dc:description"/>
|
79
|
+
<xs:element name="publisher" substitutionGroup="dc:publisher"/>
|
80
|
+
<xs:element name="contributor" substitutionGroup="dc:contributor"/>
|
81
|
+
<xs:element name="date" substitutionGroup="dc:date"/>
|
82
|
+
<xs:element name="type" substitutionGroup="dc:type"/>
|
83
|
+
<xs:element name="format" substitutionGroup="dc:format"/>
|
84
|
+
<xs:element name="identifier" substitutionGroup="dc:identifier"/>
|
85
|
+
<xs:element name="source" substitutionGroup="dc:source"/>
|
86
|
+
<xs:element name="language" substitutionGroup="dc:language"/>
|
87
|
+
<xs:element name="relation" substitutionGroup="dc:relation"/>
|
88
|
+
<xs:element name="coverage" substitutionGroup="dc:coverage"/>
|
89
|
+
<xs:element name="rights" substitutionGroup="dc:rights"/>
|
90
|
+
|
91
|
+
<xs:element name="alternative" substitutionGroup="title"/>
|
92
|
+
|
93
|
+
<xs:element name="tableOfContents" substitutionGroup="description"/>
|
94
|
+
<xs:element name="abstract" substitutionGroup="description"/>
|
95
|
+
|
96
|
+
<xs:element name="created" substitutionGroup="date"/>
|
97
|
+
<xs:element name="valid" substitutionGroup="date"/>
|
98
|
+
<xs:element name="available" substitutionGroup="date"/>
|
99
|
+
<xs:element name="issued" substitutionGroup="date"/>
|
100
|
+
<xs:element name="modified" substitutionGroup="date"/>
|
101
|
+
<xs:element name="dateAccepted" substitutionGroup="date"/>
|
102
|
+
<xs:element name="dateCopyrighted" substitutionGroup="date"/>
|
103
|
+
<xs:element name="dateSubmitted" substitutionGroup="date"/>
|
104
|
+
|
105
|
+
<xs:element name="extent" substitutionGroup="format"/>
|
106
|
+
<xs:element name="medium" substitutionGroup="format"/>
|
107
|
+
|
108
|
+
<xs:element name="isVersionOf" substitutionGroup="relation"/>
|
109
|
+
<xs:element name="hasVersion" substitutionGroup="relation"/>
|
110
|
+
<xs:element name="isReplacedBy" substitutionGroup="relation"/>
|
111
|
+
<xs:element name="replaces" substitutionGroup="relation"/>
|
112
|
+
<xs:element name="isRequiredBy" substitutionGroup="relation"/>
|
113
|
+
<xs:element name="requires" substitutionGroup="relation"/>
|
114
|
+
<xs:element name="isPartOf" substitutionGroup="relation"/>
|
115
|
+
<xs:element name="hasPart" substitutionGroup="relation"/>
|
116
|
+
<xs:element name="isReferencedBy" substitutionGroup="relation"/>
|
117
|
+
<xs:element name="references" substitutionGroup="relation"/>
|
118
|
+
<xs:element name="isFormatOf" substitutionGroup="relation"/>
|
119
|
+
<xs:element name="hasFormat" substitutionGroup="relation"/>
|
120
|
+
<xs:element name="conformsTo" substitutionGroup="relation"/>
|
121
|
+
|
122
|
+
<xs:element name="spatial" substitutionGroup="coverage"/>
|
123
|
+
<xs:element name="temporal" substitutionGroup="coverage"/>
|
124
|
+
|
125
|
+
<xs:element name="audience" substitutionGroup="dc:any"/>
|
126
|
+
<xs:element name="accrualMethod" substitutionGroup="dc:any"/>
|
127
|
+
<xs:element name="accrualPeriodicity" substitutionGroup="dc:any"/>
|
128
|
+
<xs:element name="accrualPolicy" substitutionGroup="dc:any"/>
|
129
|
+
<xs:element name="instructionalMethod" substitutionGroup="dc:any"/>
|
130
|
+
<xs:element name="provenance" substitutionGroup="dc:any"/>
|
131
|
+
<xs:element name="rightsHolder" substitutionGroup="dc:any"/>
|
132
|
+
|
133
|
+
<xs:element name="mediator" substitutionGroup="audience"/>
|
134
|
+
<xs:element name="educationLevel" substitutionGroup="audience"/>
|
135
|
+
|
136
|
+
<xs:element name="accessRights" substitutionGroup="rights"/>
|
137
|
+
<xs:element name="license" substitutionGroup="rights"/>
|
138
|
+
|
139
|
+
<xs:element name="bibliographicCitation" substitutionGroup="identifier"/>
|
140
|
+
|
141
|
+
<xs:complexType name="LCSH">
|
142
|
+
<xs:simpleContent>
|
143
|
+
<xs:restriction base="dc:SimpleLiteral">
|
144
|
+
<xs:simpleType>
|
145
|
+
<xs:restriction base="xs:string"/>
|
146
|
+
</xs:simpleType>
|
147
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
148
|
+
</xs:restriction>
|
149
|
+
</xs:simpleContent>
|
150
|
+
</xs:complexType>
|
151
|
+
|
152
|
+
<xs:complexType name="MESH">
|
153
|
+
<xs:simpleContent>
|
154
|
+
<xs:restriction base="dc:SimpleLiteral">
|
155
|
+
<xs:simpleType>
|
156
|
+
<xs:restriction base="xs:string"/>
|
157
|
+
</xs:simpleType>
|
158
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
159
|
+
</xs:restriction>
|
160
|
+
</xs:simpleContent>
|
161
|
+
</xs:complexType>
|
162
|
+
|
163
|
+
<xs:complexType name="DDC">
|
164
|
+
<xs:simpleContent>
|
165
|
+
<xs:restriction base="dc:SimpleLiteral">
|
166
|
+
<xs:simpleType>
|
167
|
+
<xs:restriction base="xs:string"/>
|
168
|
+
</xs:simpleType>
|
169
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
170
|
+
</xs:restriction>
|
171
|
+
</xs:simpleContent>
|
172
|
+
</xs:complexType>
|
173
|
+
|
174
|
+
<xs:complexType name="LCC">
|
175
|
+
<xs:simpleContent>
|
176
|
+
<xs:restriction base="dc:SimpleLiteral">
|
177
|
+
<xs:simpleType>
|
178
|
+
<xs:restriction base="xs:string"/>
|
179
|
+
</xs:simpleType>
|
180
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
181
|
+
</xs:restriction>
|
182
|
+
</xs:simpleContent>
|
183
|
+
</xs:complexType>
|
184
|
+
|
185
|
+
<xs:complexType name="UDC">
|
186
|
+
<xs:simpleContent>
|
187
|
+
<xs:restriction base="dc:SimpleLiteral">
|
188
|
+
<xs:simpleType>
|
189
|
+
<xs:restriction base="xs:string"/>
|
190
|
+
</xs:simpleType>
|
191
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
192
|
+
</xs:restriction>
|
193
|
+
</xs:simpleContent>
|
194
|
+
</xs:complexType>
|
195
|
+
|
196
|
+
<xs:complexType name="Period">
|
197
|
+
<xs:simpleContent>
|
198
|
+
<xs:restriction base="dc:SimpleLiteral">
|
199
|
+
<xs:simpleType>
|
200
|
+
<xs:restriction base="xs:string"/>
|
201
|
+
</xs:simpleType>
|
202
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
203
|
+
</xs:restriction>
|
204
|
+
</xs:simpleContent>
|
205
|
+
</xs:complexType>
|
206
|
+
|
207
|
+
<xs:complexType name="W3CDTF">
|
208
|
+
<xs:simpleContent>
|
209
|
+
<xs:restriction base="dc:SimpleLiteral">
|
210
|
+
<xs:simpleType>
|
211
|
+
<xs:union memberTypes="xs:gYear xs:gYearMonth xs:date xs:dateTime"/>
|
212
|
+
</xs:simpleType>
|
213
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
214
|
+
</xs:restriction>
|
215
|
+
</xs:simpleContent>
|
216
|
+
</xs:complexType>
|
217
|
+
|
218
|
+
<xs:complexType name="DCMIType">
|
219
|
+
<xs:simpleContent>
|
220
|
+
<xs:restriction base="dc:SimpleLiteral">
|
221
|
+
<xs:simpleType>
|
222
|
+
<xs:restriction base="dcmitype:DCMIType"/>
|
223
|
+
</xs:simpleType>
|
224
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
225
|
+
</xs:restriction>
|
226
|
+
</xs:simpleContent>
|
227
|
+
</xs:complexType>
|
228
|
+
|
229
|
+
<xs:complexType name="IMT">
|
230
|
+
<xs:simpleContent>
|
231
|
+
<xs:restriction base="dc:SimpleLiteral">
|
232
|
+
<xs:simpleType>
|
233
|
+
<xs:restriction base="xs:string"/>
|
234
|
+
</xs:simpleType>
|
235
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
236
|
+
</xs:restriction>
|
237
|
+
</xs:simpleContent>
|
238
|
+
</xs:complexType>
|
239
|
+
|
240
|
+
<xs:complexType name="URI">
|
241
|
+
<xs:simpleContent>
|
242
|
+
<xs:restriction base="dc:SimpleLiteral">
|
243
|
+
<xs:simpleType>
|
244
|
+
<xs:restriction base="xs:anyURI"/>
|
245
|
+
</xs:simpleType>
|
246
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
247
|
+
</xs:restriction>
|
248
|
+
</xs:simpleContent>
|
249
|
+
</xs:complexType>
|
250
|
+
|
251
|
+
<xs:complexType name="ISO639-2">
|
252
|
+
<xs:simpleContent>
|
253
|
+
<xs:restriction base="dc:SimpleLiteral">
|
254
|
+
<xs:simpleType>
|
255
|
+
<xs:restriction base="xs:string"/>
|
256
|
+
</xs:simpleType>
|
257
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
258
|
+
</xs:restriction>
|
259
|
+
</xs:simpleContent>
|
260
|
+
</xs:complexType>
|
261
|
+
|
262
|
+
<xs:complexType name="ISO639-3">
|
263
|
+
<xs:simpleContent>
|
264
|
+
<xs:restriction base="dc:SimpleLiteral">
|
265
|
+
<xs:simpleType>
|
266
|
+
<xs:restriction base="xs:string"/>
|
267
|
+
</xs:simpleType>
|
268
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
269
|
+
</xs:restriction>
|
270
|
+
</xs:simpleContent>
|
271
|
+
</xs:complexType>
|
272
|
+
|
273
|
+
<xs:complexType name="RFC1766">
|
274
|
+
<xs:simpleContent>
|
275
|
+
<xs:restriction base="dc:SimpleLiteral">
|
276
|
+
<xs:simpleType>
|
277
|
+
<xs:restriction base="xs:language"/>
|
278
|
+
</xs:simpleType>
|
279
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
280
|
+
</xs:restriction>
|
281
|
+
</xs:simpleContent>
|
282
|
+
</xs:complexType>
|
283
|
+
|
284
|
+
<xs:complexType name="RFC3066">
|
285
|
+
<xs:simpleContent>
|
286
|
+
<xs:restriction base="dc:SimpleLiteral">
|
287
|
+
<xs:simpleType>
|
288
|
+
<xs:restriction base="xs:language"/>
|
289
|
+
</xs:simpleType>
|
290
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
291
|
+
</xs:restriction>
|
292
|
+
</xs:simpleContent>
|
293
|
+
</xs:complexType>
|
294
|
+
|
295
|
+
<xs:complexType name="RFC4646">
|
296
|
+
<xs:simpleContent>
|
297
|
+
<xs:restriction base="dc:SimpleLiteral">
|
298
|
+
<xs:simpleType>
|
299
|
+
<xs:restriction base="xs:language"/>
|
300
|
+
</xs:simpleType>
|
301
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
302
|
+
</xs:restriction>
|
303
|
+
</xs:simpleContent>
|
304
|
+
</xs:complexType>
|
305
|
+
|
306
|
+
<xs:complexType name="Point">
|
307
|
+
<xs:simpleContent>
|
308
|
+
<xs:restriction base="dc:SimpleLiteral">
|
309
|
+
<xs:simpleType>
|
310
|
+
<xs:restriction base="xs:string"/>
|
311
|
+
</xs:simpleType>
|
312
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
313
|
+
</xs:restriction>
|
314
|
+
</xs:simpleContent>
|
315
|
+
</xs:complexType>
|
316
|
+
|
317
|
+
<xs:complexType name="ISO3166">
|
318
|
+
<xs:simpleContent>
|
319
|
+
<xs:restriction base="dc:SimpleLiteral">
|
320
|
+
<xs:simpleType>
|
321
|
+
<xs:restriction base="xs:string"/>
|
322
|
+
</xs:simpleType>
|
323
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
324
|
+
</xs:restriction>
|
325
|
+
</xs:simpleContent>
|
326
|
+
</xs:complexType>
|
327
|
+
|
328
|
+
<xs:complexType name="Box">
|
329
|
+
<xs:simpleContent>
|
330
|
+
<xs:restriction base="dc:SimpleLiteral">
|
331
|
+
<xs:simpleType>
|
332
|
+
<xs:restriction base="xs:string"/>
|
333
|
+
</xs:simpleType>
|
334
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
335
|
+
</xs:restriction>
|
336
|
+
</xs:simpleContent>
|
337
|
+
</xs:complexType>
|
338
|
+
|
339
|
+
<xs:complexType name="TGN">
|
340
|
+
<xs:simpleContent>
|
341
|
+
<xs:restriction base="dc:SimpleLiteral">
|
342
|
+
<xs:simpleType>
|
343
|
+
<xs:restriction base="xs:string"/>
|
344
|
+
</xs:simpleType>
|
345
|
+
<xs:attribute ref="xml:lang" use="prohibited"/>
|
346
|
+
</xs:restriction>
|
347
|
+
</xs:simpleContent>
|
348
|
+
</xs:complexType>
|
349
|
+
|
350
|
+
<xs:group name="elementsAndRefinementsGroup">
|
351
|
+
<xs:annotation>
|
352
|
+
<xs:documentation xml:lang="en">
|
353
|
+
This group is included as a convenience for schema authors
|
354
|
+
who need to refer to all the DC elements and element refinements
|
355
|
+
in the http://purl.org/dc/elements/1.1/ and
|
356
|
+
http://purl.org/dc/terms namespaces.
|
357
|
+
N.B. Refinements available via substitution groups.
|
358
|
+
</xs:documentation>
|
359
|
+
</xs:annotation>
|
360
|
+
|
361
|
+
<xs:sequence>
|
362
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
363
|
+
<xs:element ref="dc:any" />
|
364
|
+
</xs:choice>
|
365
|
+
</xs:sequence>
|
366
|
+
</xs:group>
|
367
|
+
|
368
|
+
<xs:complexType name="elementOrRefinementContainer">
|
369
|
+
<xs:annotation>
|
370
|
+
<xs:documentation xml:lang="en">
|
371
|
+
This is included as a convenience for schema authors who need to define a root
|
372
|
+
or container element for all of the DC elements and element refinements.
|
373
|
+
</xs:documentation>
|
374
|
+
</xs:annotation>
|
375
|
+
|
376
|
+
<xs:choice>
|
377
|
+
<xs:group ref="elementsAndRefinementsGroup"/>
|
378
|
+
</xs:choice>
|
379
|
+
</xs:complexType>
|
380
|
+
|
381
|
+
|
382
|
+
</xs:schema>
|
383
|
+
|