2021-11-02 13:13:27 +00:00
|
|
|
# Attribute definition
|
2021-10-31 11:53:58 +00:00
|
|
|
|
|
|
|
|
A Resource can list attributes related to the document / file.
|
|
|
|
|
|
|
|
|
|
An attribute is a generic definition and conventions are
|
2021-11-02 13:13:27 +00:00
|
|
|
observed in the definitions that are captured here. The attribute
|
|
|
|
|
section is where load quality metrics are defined.
|
2021-10-31 11:53:58 +00:00
|
|
|
|
2021-11-02 13:13:27 +00:00
|
|
|
## Attribute definition
|
2021-10-31 11:53:58 +00:00
|
|
|
|
2021-11-02 13:13:27 +00:00
|
|
|
The Attribute is described by the table below. Recommended
|
|
|
|
|
values are listed but custom values can also be defined, just be
|
|
|
|
|
certain the recipient is able to understand them.
|
2021-10-31 11:53:58 +00:00
|
|
|
|
2021-11-02 13:13:27 +00:00
|
|
|
Name|Description|Values or Default
|
|
|
|
|
---|---|---
|
|
|
|
|
category|A type of attribute|dataset, format
|
|
|
|
|
name|A name for the attribute|records,columns,header,footer,separator,quote, escape
|
|
|
|
|
function|A function to perform|count,sum,unique
|
|
|
|
|
comparison|A comparison value or NA|NA, EQ, NE, GT, GE, LT,LE
|
|
|
|
|
value|The value for the attribute based on the above complex key, excluding comparison|numeric
|
2021-10-31 11:53:58 +00:00
|
|
|
|
|
|
|
|
A sample JSON is shown below which describes the
|
|
|
|
|
number of records in the file for the given format.
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
"attributes": [
|
|
|
|
|
{
|
|
|
|
|
"category": "dataset",
|
|
|
|
|
"name": "records",
|
|
|
|
|
"function": "count",
|
|
|
|
|
"comparison": "EQ",
|
|
|
|
|
"value": "9"
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-11-01 03:29:52 +00:00
|
|
|
```
|