Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/feeds/atom/parse/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ describe('parseEntry', () => {
id: 'urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a',
title: 'Example Entry',
dcterms: {
createds: ['2023-02-01T00:00:00Z'],
licenses: ['MIT License'],
created: '2023-02-01T00:00:00Z',
license: 'MIT License',
},
Expand Down Expand Up @@ -1525,6 +1527,8 @@ describe('parseFeed', () => {
id: 'urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a',
title: 'Example Feed',
dcterms: {
createds: ['2023-01-01T00:00:00Z'],
licenses: ['Creative Commons Attribution 4.0'],
created: '2023-01-01T00:00:00Z',
license: 'Creative Commons Attribution 4.0',
},
Expand Down
132 changes: 116 additions & 16 deletions src/feeds/atom/references/atom-ns.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,64 @@
"rights": "Copyright 2025 Example News Organization"
},
"dcterms": {
"created": "2022-01-01T12:00:00.000Z",
"license": "Creative Commons Attribution 4.0",
"abstracts": ["This article explores advanced concepts in technology"],
"accessRights": ["Public access with attribution required"],
"accrualMethods": ["Single publication"],
"accrualPeriodicities": ["One-time"],
"accrualPolicies": ["Editorial review required"],
"alternatives": ["Alternative Item Title"],
"audiences": ["Technical professionals"],
"availables": ["2022-01-01T12:00:00.000Z"],
"bibliographicCitations": [
"Smith, J. (2022). Example Item. Retrieved from https://example.org/item/1"
],
"conformsTos": ["HTML5 standard"],
"contributors": ["Assistant Editor Mike Thompson"],
"coverages": ["United States technology sector"],
"createds": ["2022-01-01T12:00:00.000Z"],
"creators": ["Jack Jackson"],
"dates": ["2022-01-01T12:00:00.000Z"],
"dateAccepteds": ["2022-01-01T12:00:00.000Z"],
"dateCopyrighteds": ["2022-01-01T12:00:00.000Z"],
"dateSubmitteds": ["2022-01-01T12:00:00.000Z"],
"descriptions": ["Detailed description of the example item content and its significance"],
"educationLevels": ["Advanced"],
"extents": ["Approximately 2500 words"],
"formats": ["text/html"],
"hasFormats": ["https://example.org/item/1.pdf"],
"hasParts": ["https://example.org/item/1/section1"],
"hasVersions": ["1.1"],
"identifiers": ["urn:uuid:item-98765432-9876-9876-9876-987654321def"],
"instructionalMethods": ["Step-by-step tutorial"],
"isFormatOfs": ["https://example.org/item-source"],
"isPartOfs": ["Example Article Series"],
"isReferencedBys": ["https://example.org/item/1/citations"],
"isReplacedBys": ["https://example.org/item/1/updated"],
"isRequiredBys": ["https://example.org/item/1/prerequisites"],
"issueds": ["2022-01-01T12:00:00.000Z"],
"isVersionOfs": ["https://example.org/item/1/original"],
"languages": ["en-US"],
"licenses": ["Creative Commons Attribution 4.0"],
"mediators": ["Editorial Team"],
"mediums": ["Digital"],
"modifieds": ["2022-06-01T12:00:00.000Z"],
"provenances": ["Originally published by Example News Organization"],
"publishers": ["Example News Organization"],
"references": ["https://example.org/item/1/references"],
"relations": ["https://example.org/related-article"],
"replaces": ["https://example.org/item/1/previous"],
"requires": ["Basic understanding of web technologies"],
"rights": ["Copyright 2025 Example News Organization"],
"rightsHolders": ["Example News Organization"],
"sources": ["https://example.org/item-source"],
"spatials": ["United States"],
"subjects": ["Article, Tutorial, Example"],
"tableOfContents": ["Introduction, Main Content, Conclusion"],
"temporals": ["2022"],
"titles": ["Dublin Core Terms Enhanced Item Title"],
"types": ["Article"],
"valids": ["2025-12-31T23:59:59.000Z"],
"abstract": "This article explores advanced concepts in technology",
"accessRights": "Public access with attribution required",
"accrualMethod": "Single publication",
"accrualPeriodicity": "One-time",
"accrualPolicy": "Editorial review required",
Expand All @@ -37,6 +91,7 @@
"conformsTo": "HTML5 standard",
"contributor": "Assistant Editor Mike Thompson",
"coverage": "United States technology sector",
"created": "2022-01-01T12:00:00.000Z",
"creator": "Jack Jackson",
"date": "2022-01-01T12:00:00.000Z",
"dateAccepted": "2022-01-01T12:00:00.000Z",
Expand All @@ -59,21 +114,17 @@
"issued": "2022-01-01T12:00:00.000Z",
"isVersionOf": "https://example.org/item/1/original",
"language": "en-US",
"license": "Creative Commons Attribution 4.0",
"mediator": "Editorial Team",
"medium": "Digital",
"modified": "2022-06-01T12:00:00.000Z",
"provenance": "Originally published by Example News Organization",
"publisher": "Example News Organization",
"references": "https://example.org/item/1/references",
"relation": "https://example.org/related-article",
"replaces": "https://example.org/item/1/previous",
"requires": "Basic understanding of web technologies",
"rights": "Copyright 2025 Example News Organization",
"rightsHolder": "Example News Organization",
"source": "https://example.org/item-source",
"spatial": "United States",
"subject": "Article, Tutorial, Example",
"tableOfContents": "Introduction, Main Content, Conclusion",
"temporal": "2022",
"title": "Dublin Core Terms Enhanced Item Title",
"type": "Article",
Expand Down Expand Up @@ -712,10 +763,62 @@
"rights": "Copyright 2025 Example Publishing Company"
},
"dcterms": {
"created": "2022-01-01T12:00:00.000Z",
"license": "Creative Commons Attribution 4.0",
"abstracts": ["This is an abstract of the feed content"],
"accessRights": ["Public access with attribution required"],
"accrualMethods": ["Regular updates"],
"accrualPeriodicities": ["Daily"],
"accrualPolicies": ["Content added based on editorial calendar"],
"alternatives": ["Alternative Feed Title"],
"audiences": ["General technology audience"],
"availables": ["2022-01-01T12:00:00.000Z"],
"bibliographicCitations": ["Example Feed. (2022). Retrieved from https://example.org"],
"conformsTos": ["RSS 2.0 Specification"],
"contributors": ["Jane Smith"],
"coverages": ["Global technology topics"],
"createds": ["2022-01-01T12:00:00.000Z"],
"creators": ["John Doe"],
"dates": ["2022-01-01T12:00:00.000Z"],
"dateAccepteds": ["2022-01-01T12:00:00.000Z"],
"dateCopyrighteds": ["2022-01-01T12:00:00.000Z"],
"dateSubmitteds": ["2022-01-01T12:00:00.000Z"],
"descriptions": ["Detailed description of the feed content and purpose"],
"educationLevels": ["Intermediate to advanced"],
"extents": ["Approximately 1000 words per article"],
"formats": ["application/atom+xml"],
"hasFormats": ["https://example.org/feed.atom"],
"hasParts": ["https://example.org/category/tutorials"],
"hasVersions": ["2.0"],
"identifiers": ["urn:uuid:feed-12345678-1234-1234-1234-123456789abc"],
"instructionalMethods": ["Practical examples and tutorials"],
"isFormatOfs": ["https://example.org/original-content"],
"isPartOfs": ["Example Media Network"],
"isReferencedBys": ["https://example.org/references"],
"isReplacedBys": ["https://example.org/new-feed"],
"isRequiredBys": ["https://example.org/dependent-feeds"],
"issueds": ["2022-01-01T12:00:00.000Z"],
"isVersionOfs": ["https://example.org/original-feed"],
"languages": ["en-US"],
"licenses": ["Creative Commons Attribution 4.0"],
"mediators": ["Content Management System"],
"mediums": ["Digital"],
"modifieds": ["2023-01-01T12:00:00.000Z"],
"provenances": ["Originally created by Example Publishing Company"],
"publishers": ["Example Publishing Company"],
"references": ["https://example.org/referenced-sources"],
"relations": ["https://example.org/related-feeds"],
"replaces": ["https://example.org/old-feed"],
"requires": ["RSS 2.0 compatible reader"],
"rights": ["Copyright 2025 Example Publishing Company"],
"rightsHolders": ["Example Publishing Company"],
"sources": ["https://example.org/original-source"],
"spatials": ["Global"],
"subjects": ["Technology, Programming, Web Development"],
"tableOfContents": ["Latest articles, tutorials, and news"],
"temporals": ["2022-present"],
"titles": ["Dublin Core Terms Enhanced Feed Title"],
"types": ["Text"],
"valids": ["2025-12-31T23:59:59.000Z"],
"abstract": "This is an abstract of the feed content",
"accessRights": "Public access with attribution required",
"accrualMethod": "Regular updates",
"accrualPeriodicity": "Daily",
"accrualPolicy": "Content added based on editorial calendar",
Expand All @@ -726,6 +829,7 @@
"conformsTo": "RSS 2.0 Specification",
"contributor": "Jane Smith",
"coverage": "Global technology topics",
"created": "2022-01-01T12:00:00.000Z",
"creator": "John Doe",
"date": "2022-01-01T12:00:00.000Z",
"dateAccepted": "2022-01-01T12:00:00.000Z",
Expand All @@ -748,21 +852,17 @@
"issued": "2022-01-01T12:00:00.000Z",
"isVersionOf": "https://example.org/original-feed",
"language": "en-US",
"license": "Creative Commons Attribution 4.0",
"mediator": "Content Management System",
"medium": "Digital",
"modified": "2023-01-01T12:00:00.000Z",
"provenance": "Originally created by Example Publishing Company",
"publisher": "Example Publishing Company",
"references": "https://example.org/referenced-sources",
"relation": "https://example.org/related-feeds",
"replaces": "https://example.org/old-feed",
"requires": "RSS 2.0 compatible reader",
"rights": "Copyright 2025 Example Publishing Company",
"rightsHolder": "Example Publishing Company",
"source": "https://example.org/original-source",
"spatial": "Global",
"subject": "Technology, Programming, Web Development",
"tableOfContents": "Latest articles, tutorials, and news",
"temporal": "2022-present",
"title": "Dublin Core Terms Enhanced Feed Title",
"type": "Text",
Expand Down
4 changes: 4 additions & 0 deletions src/feeds/rdf/parse/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ describe('parseItem', () => {
title: 'Example Entry',
link: 'http://example.com',
dcterms: {
createds: ['2023-02-01T00:00:00Z'],
licenses: ['MIT License'],
created: '2023-02-01T00:00:00Z',
license: 'MIT License',
},
Expand Down Expand Up @@ -1016,6 +1018,8 @@ describe('parseFeed', () => {
},
],
dcterms: {
createds: ['2023-01-01T00:00:00Z'],
licenses: ['Creative Commons Attribution 4.0'],
created: '2023-01-01T00:00:00Z',
license: 'Creative Commons Attribution 4.0',
},
Expand Down
Loading