Purpose:
Each feed entry must contain an Atom "link" element that links to the pre-defined dataset file described by the entry. The value of the "rel" attribute of this element must be "alternate" and a "length" attribute (providing the length of the linked resource in octets *) must be provided if possible. Where a dataset is provided in multiple physical files, additional "link" elements must be provided in the feed entry, one link for each physical file.
* 1 octet = 8 bits (usually synonymous with 1 byte)
Test method
- Test if at least one feed entry is available with at least one link to download a file.
- Resolve all links in the dataset feed and check that fetching them does not result in an error or a zero-length resource. Validators may interrupt the downloads of the resources after receiving enough of the response to determine the above conditions. Validators must not create any errors considering the file format integrity or completeness.
Reference(s):
Test type:
Automated
Notes
[1] this overlaps with TG Requirement 26. This requirement gives more details about how to encode the link.
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression |
---|---|
entry | //atom:entry |
link | //atom:entry/atom:link[(@rel='alternate' and @type!='application/atom+xml' and number(@length) > 0) or (@rel='section')] |