Browse Source

Tests for DC qualified dates

master
J. King 4 years ago
parent
commit
f3eee75fff
  1. 45
      tests/cases/XML/entry-rss1.yaml
  2. 168
      tests/cases/XML/feed-rss1.yaml

45
tests/cases/XML/entry-rss1.yaml

@ -89,3 +89,48 @@ Dublin Core dates:
- dateCreated: '2020-01-01T00:00:00Z'
dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T01:00:00+01:00'
Dublin Core terms dates:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<item><dc:available>2020-03-03T00:00:00Z</dc:available></item>
<item><dc:created>2020-03-03T00:00:00Z</dc:created></item>
<item><dc:date>2020-03-03T00:00:00Z</dc:date></item>
<item><dc:dateAccepted>2020-03-03T00:00:00Z</dc:dateAccepted></item>
<item><dc:dateCopyrighted>2020-03-03T00:00:00Z</dc:dateCopyrighted></item>
<item><dc:dateSubmitted>2020-03-03T00:00:00Z</dc:dateSubmitted></item>
<item><dc:issued>2020-03-03T00:00:00Z</dc:issued></item>
<item><dc:modified>2020-03-03T00:00:00Z</dc:modified></item>
<item><dc:valid>2020-03-03T00:00:00Z</dc:valid></item>
<item><term:available>2020-03-03T00:00:00Z</term:available></item>
<item><term:created>2020-03-03T00:00:00Z</term:created></item>
<item><term:date>2020-03-03T00:00:00Z</term:date></item>
<item><term:dateAccepted>2020-03-03T00:00:00Z</term:dateAccepted></item>
<item><term:dateCopyrighted>2020-03-03T00:00:00Z</term:dateCopyrighted></item>
<item><term:dateSubmitted>2020-03-03T00:00:00Z</term:dateSubmitted></item>
<item><term:issued>2020-03-03T00:00:00Z</term:issued></item>
<item><term:modified>2020-03-03T00:00:00Z</term:modified></item>
<item><term:valid>2020-03-03T00:00:00Z</term:valid></item>
</rdf:RDF>
output:
format: rdf
version: '1.0'
entries:
- dateModified: '2020-03-03T00:00:00Z'
- dateCreated: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateCreated: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'
- dateModified: '2020-03-03T00:00:00Z'

168
tests/cases/XML/feed-rss1.yaml

@ -296,6 +296,174 @@ Multiple Dublin Core dates:
version: '1.0'
dateModified: '2020-03-03T00:00:00-04:00'
Dublin Core terms date 1:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:available>2020-03-03T00:00:00Z</dc:available></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 2: # Creation date does not count as modification date
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:created>2020-03-03T00:00:00Z</dc:created></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
Dublin Core terms date 3:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:dateAccepted>2020-03-03T00:00:00Z</dc:dateAccepted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 4:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:dateCopyrighted>2020-03-03T00:00:00Z</dc:dateCopyrighted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 5:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:dateSubmitted>2020-03-03T00:00:00Z</dc:dateSubmitted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 6:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:issued>2020-03-03T00:00:00Z</dc:issued></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 7:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:modified>2020-03-03T00:00:00Z</dc:modified></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 8:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><dc:valid>2020-03-03T00:00:00Z</dc:valid></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 9:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:available>2020-03-03T00:00:00Z</term:available></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 10: # Creation date does not count as modification date
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:created>2020-03-03T00:00:00Z</term:created></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
Dublin Core terms date 11:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:date>2020-03-03T00:00:00Z</term:date></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 12:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:dateAccepted>2020-03-03T00:00:00Z</term:dateAccepted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 13:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:dateCopyrighted>2020-03-03T00:00:00Z</term:dateCopyrighted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 14:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:dateSubmitted>2020-03-03T00:00:00Z</term:dateSubmitted></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 15:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:issued>2020-03-03T00:00:00Z</term:issued></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 16:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:modified>2020-03-03T00:00:00Z</term:modified></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Dublin Core terms date 17:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:term="http://purl.org/dc/terms/">
<channel><term:valid>2020-03-03T00:00:00Z</term:valid></channel>
</rdf:RDF>
output:
format: rdf
version: '1.0'
dateModified: '2020-03-03T00:00:00Z'
Feed channel image:
input: >
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/">

Loading…
Cancel
Save