add details of license fields and fix a few errors
[objavi2.git] / tests / metadata.result
blob18283d40ca36b37d57437c5d9d58b0e73051ce5f
1 #-*- mode: python-*-
4 #dc: prefix follows given URL
5 {'http://not.dublin.core/': {'creator': [('Karl Marx', ())],
6                              'date': [('2008-08-30', ())],
7                              'identifier': [('web-books-1053',
8                                              (('id', 'BookId'),))],
9                              'title': [('The Eighteenth Brumaire of Louis Bonaparte',
10                                         ())]},
11  'http://www.idpf.org/2007/opf': {}},
13 #opf and dc namespaces changed; None and opf namespaces differ
14 #two definitions for language, one using 'xsi:type="dcterms:RFC3066"'
15 #DC.relation.isFormatOf and cover defined in <meta>
17 {'hmm': {'creator': [('McGibbon, Ian', ())],
18          'date': [('2007-08-07T21:18:11',
19                    (('{http://www.w3.org/2001/XMLSchema-instance}type',
20                      'dcterms:W3CDTF'),))],
21          'description': [(None, ())],
22          'identifier': [('http://www.nzetc.org/tm/scholarly/tei-McGSome.html',
23                          (('{not.what.you.think}scheme', 'URI'),
24                           ('id', 'dcidid')))],
25          'language': [('en',
26                        (('{http://www.w3.org/2001/XMLSchema-instance}type',
27                          'dcterms:RFC3066'),)),
28                       ('en', ())],
29          'publisher': [('New Zealand Electronic Text Centre', ())],
30          'rights': [('Creative Commons (see front page)', ())],
31          'subject': [('New Zealand World War II History', ())],
32          'title': [("'Something of Them Is Here Recorded': Official History in New Zealand",
33                     ())]},
34  'http://purl.org/dc/terms/': {},
35  'http://www.idpf.org/2007/opf': {'DC.relation.isFormatOf': [('http://www.nzetc.org/tm/scholarly/tei-McGSome.html',
36                                                              ())],
37                                   'cover': [('cover', ())]},
38  'http://www.w3.org/2001/XMLSchema-instance': {},
39  'not.what.you.think': {}},
41 #next few have wrapper declaring dc: namespace
43 # 2 language, 2 subject, meta tags
45 {'http://purl.org/dc/elements/1.1/': {'creator': [('Cowan, James', ())],
46                                       'date': [('2007-08-07T21:17:56',
47                                                 (('{http://www.w3.org/2001/XMLSchema-instance}type',
48                                                   'dcterms:W3CDTF'),))],
49                                       'description': [(None, ())],
50                                       'identifier': [('http://www.nzetc.org/tm/scholarly/tei-Fil001.html',
51                                                       (('scheme', 'URI'),
52                                                        ('id', 'dcidid')))],
53                                       'language': [('en',
54                                                     (('{http://www.w3.org/2001/XMLSchema-instance}type',
55                                                       'dcterms:RFC3066'),)),
56                                                    ('en', ())],
57                                       'publisher': [('New Zealand Electronic Text Centre',
58                                                      ())],
59                                       'rights': [('Creative Commons (see front page)',
60                                                   ())],
61                                       'subject': [('Autobiography; Biography; Journals; Correspondence',
62                                                    ()),
63                                                   (u'Historical M\u0101ori and Pacific Islands',
64                                                    ())],
65                                       'title': [('Letter from James Cowan to Horace Fildes',
66                                                  ())]},
67  'http://purl.org/dc/terms/': {},
68  'http://www.idpf.org/2007/opf': {'DC.relation.isFormatOf': [('http://www.nzetc.org/tm/scholarly/tei-Fil001.html',
69                                                               ())],
70                                   'cover': [('cover', ())]},
71  'http://www.w3.org/2001/XMLSchema-instance': {}},
73 # 1 meta tag
74 {'http://purl.org/dc/elements/1.1/': {'creator': [('Hicks, Frank G., 1982-',
75                                                    ())],
76                                       'subject': [('Macomb Industry & Littleton Railway (Ill.)',
77                                                    ())],
78                                       'title': [('The little road : the story of the Macomb Industry & Littleton Railway',
79                                                  ())],
80                                       'type': [('Text', ())]},
81  'http://www.idpf.org/2007/opf': {'cover': [('cover-image1', ())]}},
83 # x-metadata and dc-metadata (2 subjects)
84 {'http://purl.org/dc/elements/1.1/': {'subject': [('Arctic regions -- Description and travel',
85                                                    ()),
86                                                   ('Iceland -- Description and travel',
87                                                    ())],
88                                       'title': [('Half hours in the far north / life amid snow and ice',
89                                                  ())],
90                                       'type': [('Text',
91                                                 ())]},
92  'http://www.idpf.org/2007/opf': {'cover': [('cover-image1', ())]}},
94 # 2 dates and a meta
95 {'http://calibre.kovidgoyal.net/2009/metadata': {'series_index': [('1', ())]},
96  'http://purl.org/dc/elements/1.1/': {'contributor': [('calibre (0.4.143) [http://calibre.kovidgoyal.net]',
97                                                        (('role', 'bkp'),
98                                                         ('file-as',
99                                                          'calibre')))],
100                                       'creator': [('Robert Louis Stevenson',
101                                                    (('role', 'aut'),
102                                                     ('file-as',
103                                                      'Stevenson, Robert Louis')))],
104                                       'date': [('2009-09-07T08:07:09', ()),
105                                                ('2009-09-07T08:07:09', ())],
106                                       'identifier': [('2',
107                                                       (('scheme',
108                                                         'calibre'),
109                                                        ('id',
110                                                         'calibre_id')))],
111                                       'language': [('UND', ())],
112                                       'publisher': [('M.A. Donohue & Co.',
113                                                      ())],
114                                       'title': [('Treasure Island', ())]},
115  'http://www.idpf.org/2007/opf': {}},